Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how do I enable php4? SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2383
Location: Kentucky

PostPosted: Tue Jan 10, 2006 3:01 am    Post subject: how do I enable php4? SOLVED Reply with quote

I have a working apache2 installation that has been up for a long time. I did an emerge dev-php/mod_php last night, and after poking around in the apache config files, I found the following in /etc/apache2/httpd.conf:
Code:
#
# Extra Modules
#
# We Include extra .conf files from /etc/apache2/modules.d
# This is used to load things like PHP and mod_ssl.
#
Include /etc/apache2/modules.d/*.conf

This led me to /etc/apache2/modules.d/70_mod_php.conf, where I found:
Code:
# vim: ft=apache sw=4 ts=4
<IfDefine PHP4>

   # Load the module first
   <IfModule !sapi_apache2.c>
      LoadModule php4_module    modules/libphp4.so
   </IfModule>

   # Set it to handle the files
   <IfModule mod_mime.c>
      AddType application/x-httpd-php .php
      AddType application/x-httpd-php .phtml
      AddType application/x-httpd-php .php3
      AddType application/x-httpd-php .php4
      AddType application/x-httpd-php-source .phps
   </IfModule>

   AddDirectoryIndex index.php index.phtml
</IfDefine>

Now if I only knew how to define PHP4, I think I would be up and running.

Or am I going about this all wrong?

How do I get my newly installed php4 to actually run under apache2? Yes, I did the apache3 restart.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.


Last edited by Moriah on Tue Jan 10, 2006 4:27 am; edited 1 time in total
Back to top
View user's profile Send private message
jcampbell
n00b
n00b


Joined: 24 Sep 2005
Posts: 40

PostPosted: Tue Jan 10, 2006 4:18 am    Post subject: Reply with quote

Open /etc/conf.d/apache2... find APACHE2_OPTS="..." and add "-D PHP4". Save and restart apache.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2383
Location: Kentucky

PostPosted: Tue Jan 10, 2006 4:27 am    Post subject: Reply with quote

That was easy. Thank you very much! :D
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum