View previous topic :: View next topic |
Author |
Message |
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2383 Location: Kentucky
|
Posted: Tue Jan 10, 2006 3:01 am Post subject: how do I enable php4? SOLVED |
|
|
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 |
|
|
jcampbell n00b
Joined: 24 Sep 2005 Posts: 40
|
Posted: Tue Jan 10, 2006 4:18 am Post subject: |
|
|
Open /etc/conf.d/apache2... find APACHE2_OPTS="..." and add "-D PHP4". Save and restart apache. |
|
Back to top |
|
|
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2383 Location: Kentucky
|
Posted: Tue Jan 10, 2006 4:27 am Post subject: |
|
|
That was easy. Thank you very much! _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|
Back to top |
|
|
|