Click to See Complete Forum and Search --> : my pathetic PHP-Apache setup problem
Atealtha
05-21-2003, 12:02 AM
I did emerge apache php (or install for you non-gentoo users) and setup by the dot on the php.net documentation. When I loadup galeon and goto http://localhost/phpinfo.php (my php test page) I get the MIME dialog. I cancel, remove the MIME type for php files in my galeon settings, and STILL get that dialog!
I tried with both binary php and module.
Atealtha
05-21-2003, 09:29 AM
ack can someone hlep me out please?
btw I can browse any other php site online just fine
(you may or may not have already done this)
you have to edit your apache config file so it knows what to do with php files.
I run php on my Debian box and in the httpd.conf file I have the following:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-tar .tgz
AddType image/bmp .bmp
Also, you will need to make sure that the module gets loaded in your httpd.conf i.e.
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
Atealtha
05-21-2003, 09:56 AM
mine uses apache.conf and commonapache.conf
in apache.conf I added:
LoadModule php4_module /usr/lib/apache-extramodules/libphp4.so
in commonapache I have:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
still doesnt work
have you tried asking on the #gentoo irc channel on freenode?
DJBanaan
05-21-2003, 10:50 AM
You might have to add this line to your mime.types files:
application/x-httpd-php php
Atealtha
05-21-2003, 11:24 AM
didn't help