HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Wiki needs updated installation instructions
http://vanillaforums.org/page/InstallationInstructions is a shorter version of http://vanillaforums.org/page/installation, but doesn't link to it.
The longer instructions would be more useful if they listed the commands necessary to setup Vanilla for users who have shell access:
(for Ubuntu)
Also, the installation instructions should mention which permissions need to be set for which directories.
I'm an experienced wiki editor and I'd be up for adding these to the wiki, but it looks like the wiki is not editable by the community.
The longer instructions would be more useful if they listed the commands necessary to setup Vanilla for users who have shell access:
(for Ubuntu)
(It could be argued that those with shell access would already know these commands. Alas, they might use PostgreSQL instead of MySQL and would have to look up the MySQL information; I wasted a good half hour figuring out how to install the MySQL PDO for Ubuntu 11).
sudo aptitude install mysql-server php5-curl php5-gd # core requirements
sudo aptitude install php5-mysql # install the MySQL PDO
# for some reason, php5-mysql doesn't add the 'extension=pdo_mysql.so' line to any PHP INI files
sudo bash -c 'echo extension=pdo_mysql > /etc/php5/cli/conf.d/pdo_mysql.ini'
mysql -u root -p
CREATE DATABASE vanilla CHARACTER SET utf8;
GRANT ALL ON vanilla.* TO vanilla_user@localhost IDENTIFIED BY 'password';
\q
sudo chmod -R 777 /path/to/vanilla/{cache,conf,uploads}
Also, the installation instructions should mention which permissions need to be set for which directories.
I'm an experienced wiki editor and I'd be up for adding these to the wiki, but it looks like the wiki is not editable by the community.
Tagged:
0
Comments
And you're adding pdo_mysql to the "cli" part of php5, that's not used by the one for apache nor if running via cgi. Hence, not very useful.
chmod 777 is not a secure way to do it.
Not sure I understand the "cli" part. After adding that line, Vanilla no longer complained about the missing MySQL PDO, and I could proceed with the installation. I'm running PHP with nginx via CGI as described on the nginx wiki.
The chmod 777 is exactly what the installation screen has you run:
It's to be sure there's no issue with the permissions. Also, it all depends about which user owns the directory and under which user runs the php process.
For instance, I own all the vanilla directories, and www-data (the usual user and group for web stuff on debian/ubuntu) as a group owns the conf/uploads and cache dir and have write access to it.
Hence, it's 775 (IIRC, maybe just 770) permissions. If all is own (user and group) by www-data, normally just 755 is enough. Even, the 750 should be Ok, as the user running php has the right to write in those directories.
/etc/php5/cgi/conf.d
and/etc/php5/cli/conf.d
are both symlinks to/etc/php5/conf.d
. This is the default setup on Ubuntu 11 aftersudo aptitude install php5
.Maybe you can edit the wiki yourself if the guys will let you.
There was an error rendering this rich post.