[RESOLVED] Apache + PHP + Linux
I have no idea what I am doing here. I hate this too much...:)
But I have Apache 2 up and running. I have tried to compile PHP as a module. Doing this:
Code:
./configure --with-mysql=/home/noteme/mydoc/apps/mysql \
--with-xml \
--enable-track-vars \
--with-apxs2=/usr/local/apache/bin/apxs
and then added this line to the httpd.conf file:
Code:
LoadModule php4_module modules/libphp4.so
But when I try to look at a php file using my browser and localhost. Apache doesn't parse it. It just prints the PHP files as it was a text file.
Any ideas where I should start looking?
I can't see anything wrong in the error log. This is the last entries:
Quote:
[Thu Jul 28 11:01:46 2005] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/favicon.ico
[Thu Jul 28 11:02:00 2005] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/favicon.ico
[Thu Jul 28 11:17:03 2005] [notice] caught SIGTERM, shutting down
[Thu Jul 28 11:17:16 2005] [notice] mod_python: Creating 32 session mutexes based on 150 max processes and 0 max threads.
[Thu Jul 28 11:17:16 2005] [notice] Apache/2.0.54 (Unix) mod_python/3.1.4 Python/2.3.5 PHP/4.4.0 configured -- resuming normal operations
[Thu Jul 28 11:17:20 2005] [notice] mod_python: (Re)importing module 'test'
[Thu Jul 28 11:17:20 2005] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/favicon.ico
[Thu Jul 28 11:17:23 2005] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/favicon.ico
[Thu Jul 28 11:17:25 2005] [error] [client 127.0.0.1] File does not exist: /usr/local/apache/htdocs/favicon.ico
Thanks
- ØØ -
Re: [RESOLVED] Apache + PHP + Linux
Yes, thanks..just shoot me now..:)
I remembered to load the PHP module...but I forgot to add the php type..:D
AddType application/x-httpd-php .php
fixed it..:D
- ØØ -