View previous topic :: View next topic |
Author |
Message |
The Shadow Surfer Tux's lil' helper
Joined: 08 Jun 2002 Posts: 102 Location: Denmark
|
Posted: Sat Nov 23, 2002 5:20 pm Post subject: php problem on apache |
|
|
I have installed apache and php some ting like 100000 time... never before had a problem... but this time around, it didn't work
/etc/apache/conf/apache.conf has the lines:
Quote: |
<IfDefine PHP4>
LoadModule php4_module extramodules/libphp4.so
</IfDefine>
<IfDefine PHP4>
AddModule mod_php4.c
</IfDefine>
|
/etc/con.d/apache has the line:
Quote: |
APACHE_OPTS="-D SSL -D PHP4"
|
I have restarted, stoped, started, rebooted, shutdown, booted.............
But it just don work.... |
|
Back to top |
|
|
bradcarter n00b
Joined: 12 Nov 2002 Posts: 53
|
Posted: Sat Nov 23, 2002 11:59 pm Post subject: |
|
|
In order to find the modules I had to:
/etc/init.d/apache stop
then
/etc/init.d/apache start
other then that the changes you made were enough for me. the other apache startup script (cant remember which it is anymore) just didnt do it for me. |
|
Back to top |
|
|
The Shadow Surfer Tux's lil' helper
Joined: 08 Jun 2002 Posts: 102 Location: Denmark
|
Posted: Sun Nov 24, 2002 12:05 pm Post subject: |
|
|
bradcarter wrote: | In order to find the modules I had to:
/etc/init.d/apache stop
then
/etc/init.d/apache start
|
don that ....
I even remage mod_php and apache, just in cause that some.... |
|
Back to top |
|
|
catfeelx n00b
Joined: 27 Nov 2002 Posts: 6 Location: Essen, Germany
|
Posted: Thu Nov 28, 2002 11:30 am Post subject: |
|
|
Hy There...
I'm new , but I had actually the same problems.
I used the DESKTOP-HOWTO to install apache php and SSL.
What I did wrong is simple.. I did not follow the exact steps the howto did.
Code listing 7.1
# emerge net-www/apache dev-lang/php net-www/mod_ssl
->># ebuild /var/db/pkg/dev-lang/php-4.1.2-r7/php-4.1.2-r7.ebuild config
->># ebuild /var/db/pkg/net-www/mod_ssl-2.8.8/mod_ssl-2.8.8.ebuild config
# nano -w /etc/apache/conf/apache.conf
I did not do that ebuild stuff.
So finally I did emerge it all that way and it worked...
I used
emerge apache mod_ssl mod_php <<<<<<<<<<<<
I had emerged php before ....
I hope that helps
catfeelx
Lucky me.... |
|
Back to top |
|
|
splooge l33t
Joined: 30 Aug 2002 Posts: 636
|
Posted: Thu Nov 28, 2002 2:14 pm Post subject: |
|
|
I had this same issue. My problem was that apache wasn't picking up -D PHP4 from the apache_opts line. So I went into my apache.conf (or is it httpd.conf omg) and deleted the lines surrounding the code that loads the php modules. They looked something liek this:
<IfDefinedPHP>
load php_modules...
</IfDefinedPHP>
I believe there were two instances in the conf file I had to do this.
HTH. |
|
Back to top |
|
|
Messiah Tux's lil' helper
Joined: 30 Apr 2002 Posts: 139
|
Posted: Thu Nov 28, 2002 8:43 pm Post subject: |
|
|
I always "hardcode" mod_ssl and mod_php in the apache.conf file. I do not want apache to run if php is not installed or broken or whatever. That does solve a lot of problems for me |
|
Back to top |
|
|
|