Hi,
I have been running a SME 6.01 system over a year which worked flawlessly.
A few days ago, I decided to upgrade the server using the latest upgrade scripts.
Because of the warnings, I started from scratch at the same hardware, thus running the upgrade on a clean system.
After putting back all the websites and so, everything worked ok except for one thing: PHP includes.
On my "old" system I had put all my PHP includes outside the Apache document roots in /usr/share/php like this:
• Create directory php under /usr/share
• Chown admin php, chgrp shared php
• Put includes in /usr/share/php
• cd ./php
• Chown admin *, chgrp shared *
• mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
• cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays
• Change the line reading "php_admin_value open_basedir $basedir\n"; to "php_admin_value open_basedir $basedir:/usr/share/php\n";
• /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
• apachectl restart
• vi /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
o adding to the line starting with “include_path” directory “/usr/share/php”
• /sbin/e-smith/expand-template /etc/php.ini
This worked, like I said, flawlessly.
However, after having done the same on my "new" system, PHP can't connect to the databases.
If I copy the PHP includes in the same directory on the webserver as where the PHP pages are, then all works fine.
I have checked /etc/php.ini and /etc/httpd/conf/httpd.conf and the "/usr/share/php" is listed as an include directory, so the expanding of the custom templates has worked ok.
The problem has something to do with the includes not being found in the right directory. But how it comes that it previously worked and now not puzzles me greatly.
I have searched this site and the Internet but could not anything helpfull.
So, I hope that someone here can shed some light on this matter. Any help is greatly appreciated !