After posting the httpd.conf file contents and viewing them in a bit more detail , it did appear that the extra virtualhost setting was being ignored (as I now see in an earlier posting by Growler).
To test this I copied the following lines:
and placed them in the DEFAULT WEBSITE settings:
Code: Select all
# DEFAULT WEBSITE
# It is wise to use your IP address as the hostname of the default website
# and give it a blank webpage. By doing so, automated webscanners won't find
# your possible vulnerable website.
#
Hostname = 192.168.0.76
WebsiteRoot = /root/httpd/hiawatha
StartFile = index.html
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
ExecuteCGI = yes
FastCGI = PHP5
rebooted. And now PHP is working.
So, my understanding is that the DEFAULT WEBSITE cannot contain the IP address that is the same for a VirtualHost setting (which does kind of make sense now and reflects an earlier posting - amazing how that earlier posting didn't mean anything until after hitting the problem, overcoming it and then re-reading the post!).
Okay - excellent news
I can finish off migrating a PHP-Fusion + Mysql website that was running on Windoze onto Puppy Linux.
(If I had a tail, I'd be wagging it)
phpinfo() returns the following now:
Code: Select all
PHP Version 5.2.8
System Linux puppypc 2.6.21.7 #1 Sat Aug 30 18:33:20 GMT-8 2008 i586
Build Date Feb 22 2009 11:39:48
Configure Command ./configure --prefix=/usr/local --without-pear --enable-fastcgi --enable-ftp --with-bz2 --with-gd --with-gettext --with-mysql=/usr/local --with-mysqli --enable-wddx --enable-mbstring --with-mcrypt=/usr/lib
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib
Loaded Configuration File /etc/php.ini
Scan this dir for additional .ini files (none)
additional .ini files parsed (none)
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.bzip2
Registered Stream Socket Transports tcp, udp, unix, udg
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*
etc...