• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 371
  • Last Modified:

Apache + php3 + mysql

Using RedHat Linux 6.0 .  Trying to use php3 applications with Apache.  When I run http://localhost/php3application.php3 , all I get is an output of the script .  I uncommented all the php3 statements in httpd.conf .  Someone suggested in httpd.conf to insert :
AddType application/x-httpd-php3 .php3 .  There is no application directory in my httpd tree and also it still did not work.  Please help !
0
remin
Asked:
remin
  • 3
  • 2
1 Solution
 
reminAuthor Commented:
Happy if you can answer question .
0
 
j2Commented:
have you actually INSTALLED php3 it is NOT installed by default.

look at http://www.php.net/FAQ.php3 and note item 3.3

but basically you need:

httpd.conf:LoadModule php3_module        modules/libphp3.so in httpd.conf

httpd.conf:AddModule mod_php3.c in httpd.conf

and

srm.conf:AddType application/x-httpd-php3 .php3
srm.conf:AddType application/x-httpd-php3-source .phps
srm.conf:#AddType application/x-httpd-php .phtml

in srm.conf

also updating DirectoryIndex index.html index.php3 index.htm default.html index.cgi in srm.conf is useful.
0
 
j2Commented:
GAH!. strip everything before and including the :

(meaning srm.conf:AddType application/x-httpd-php3 .php3
 should in fact be AddType application/x-httpd-php3 .php3) i just pasted the output of my grep by misstake.
0
 
reminAuthor Commented:
srm.conf:AddType application/x-httpd-php3 .php3
Is application a directory located on the httpd directory .  I could not find it .
0
 
j2Commented:
it isnt a path, it's a MIME definition.

remember to strip the srm.conf:
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now