Regarding /var/www – remember that you really did solve a problem by moving things to /home. PHP scripts are going to be run by SuExec, making them run as the user who owns the file. And SuExec only will work on /home.
What I did on my box was to make a dir under /home for those sorts of things – along the lines of /home/apache. Then I set that up as the DocumentRoot for the default VirtualHost, rather than /var/www.
As to why the php.ini files are missing?
My best guess is that those are copied over when the users homedir is created. Since they didn’t exist at that point, it wasn’t able to copy them.
I was wondering if that was the case with /var/www not now the default doc root. So will now have to use /home as the web directory, thats nothing major. Will just have to copy over those apps which were there.
But those are minor changes, at least things seem to be working now.
Getting loads and loads of,
Cron <xxxx@xxxxx> /etc/webmin/virtual-server/collectinfo.pl e-mails stating:
sh: line 1: 26161 Segmentation fault /usr/bin/php5-cgi -v 2>&1 </dev/null
all with different seg fault numbers
Would this be something to do with the problem I have had? And does it mean there is still something amiss?
I was getting loads of them awhile back, but ignored them, thinking them non important. But since my recent problems, i think I should have took heed earlier.
Excellent, that will save all that mail coming thank you.
Still problems with final install of for instance gallery tho. It goes, or went to step 5, mysql php not installed. But it is cuz I have checked apt-get and it is installed. No listing in php modules in server config tho of php5-mysql. Strange.
As I have deleted all servers and started from scratch again to cancel out any misconfiguration, but some problems are still popping up.
Have noted some discrepencies in /etc/apache2/mods-available and /etc/apache2/mods-enabled.
Looks like not everything has installed or installed to the desired directories? Will missing or non loaded mods in this directory cause php to not fully function?
This is driving me potty, one problem solved, just leads to another. I suppose this is what real computing is all about
For whatever reason, some ini files are missing from /etc/php5/conf.d, it looks like.
I created 2 of those, gd.ini and mysql.ini, which should get your gallery install going. Those ini files simply load the mysql and gd extensions.
-Eric