It looks like you're new here. If you want to get involved, click one of these buttons!
(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}
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.dand/etc/php5/cli/conf.dare 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.
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme