upgrading to php 5.3 – "database connection failed"
-
in order to secure the functionality of one plugin that requires php 5.3, i tried to change the php accordingly.
my host provides instruction on how to do it:On our servers the following php versions are running:
– PHP 4.4.9 [.php4]
– PHP 5.2.17 [.php5]
– PHP 5.3.6 [php53]with the respective suffixes the according php version is used as parser.
to use a special php version for all files with .php suffix you can create a .htaccess files with the following content:# List of file suffixes to use with php5
AddHandler php-fastcgi5 .phpor
# List of file suffixes to use with php4
AddHandler php-fastcgi4 .phpor
# List of file suffixes to use with php3
AddHandler php-fastcgi5.3 .phpsince there already exists a .htaccess file in my wordpress installation, i was not sure where to add these lines (the one for php 5). so in my first try i put it right before everything that already existed in the .htaccess file.
this caused wordpress to show a blank page with the message “database connection failed”.
then i put the lines right after everything that already was written in the .htacces file with the same result.does anybody have an idea what i can do to upgrade my php version? did i do it wrong?
- The topic ‘upgrading to php 5.3 – "database connection failed"’ is closed to new replies.