First off, i’m new to this forum, and i’ve tried to search for a
solution but can’t find what i’m looking for. So sorry in advance if
this has been dealt with somewhere here.
I’m trying to setup a LAMP server, and it seems to be working but still
can’t get any PHP code to display (Object not found!)
I installed LAMP using
YAST > Software Man > Filter (Patterns) -> Web and LAMP server,
then tested Apache and its working, started php with a2enmod php5,
saved the folder of the test site in /srv/www/htdocs, and it still
doesnt work.
What else am i not doing, or skipped? Any help appreciated.
I have restarted APache after starting PHP, but still the same problem,
which is not an error message per se, my browsers just can’t open them.
And neither can Kdevelop, which gives the Object not found error - a
404. When i click on the link to the localhost, it’s running just fine.
As for the error code, this is the bit from trying to run the simple
program in the top directory.
> [Tue Feb 03 04:52:23 2009] [error] [client ::1] script
> ‘/srv/www/htdocs/test1.php’ not found or unable to stat
> [Tue Feb 03 04:53:33 2009] [notice] caught SIGTERM, shutting down
> [Tue Feb 03 04:53:37 2009] [notice] mod_python: Creating 8 session
> mutexes based on 150 max processes and 0 max threads.
> [Tue Feb 03 04:53:37 2009] [notice] mod_python: using mutex_directory
> /tmp
> [Tue Feb 03 04:53:37 2009] [notice] Apache/2.2.10 (Linux/SUSE)
> PHP/5.2.6 with Suhosin-Patch mod_python/3.3.1 Python/2.6 mod_perl/2.0.4
> Perl/v5.10.0 configured – resuming normal operations
> [Tue Feb 03 05:28:26 2009] [error] [client ::1] script
> ‘/srv/www/htdocs/test1.php’ not found or unable to stat
> [Tue Feb 03 05:36:54 2009] [error] [client ::1] script
> ‘/srv/www/htdocs/test1.php’ not found or unable to stat
>
unfortunately that doesn’t seem to work either. Same error message:
> [Tue Feb 03 05:59:27 2009] [notice] caught SIGTERM, shutting down
> [Tue Feb 03 05:59:28 2009] [notice] mod_python: Creating 8 session
> mutexes based on 150 max processes and 0 max threads.
> [Tue Feb 03 05:59:28 2009] [notice] mod_python: using mutex_directory
> /tmp
> [Tue Feb 03 05:59:28 2009] [notice] Apache/2.2.10 (Linux/SUSE)
> PHP/5.2.6 with Suhosin-Patch mod_python/3.3.1 Python/2.6 mod_perl/2.0.4
> Perl/v5.10.0 configured – resuming normal operations
> [Tue Feb 03 06:04:23 2009] [error] [client ::1] script
> ‘/srv/www/htdocs/test1.php’ not found or unable to stat
> [Tue Feb 03 06:04:37 2009] [error] [client ::1] script
> ‘/srv/www/htdocs/test1.php’ not found or unable to stat
> [Tue Feb 03 06:09:49 2009] [error] [client ::1] script
> ‘/srv/www/htdocs/test1.php’ not found or unable to stat
>
BTW, that log shows something I hadn’t noticed before, that the web
browser is trying to use IPv6 for the connection and while Apache is
capable of it, the permissions do not allow access to the IPv6
localhost. This is due to the line
Code:
::1 localhost
in /etc/hosts. Comment that out, and that should improve things.
The other way is to Allow ::1 in the Apache config. IPv6 for browsing
actually does work, but your app may not be ready for it.