Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
php problem on apache
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
The Shadow Surfer
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2002
Posts: 102
Location: Denmark

PostPosted: Sat Nov 23, 2002 5:20 pm    Post subject: php problem on apache Reply with quote

I have installed apache and php some ting like 100000 time... never before had a problem... but this time around, it didn't work :cry:

/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
View user's profile Send private message
bradcarter
n00b
n00b


Joined: 12 Nov 2002
Posts: 53

PostPosted: Sat Nov 23, 2002 11:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
The Shadow Surfer
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2002
Posts: 102
Location: Denmark

PostPosted: Sun Nov 24, 2002 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
catfeelx
n00b
n00b


Joined: 27 Nov 2002
Posts: 6
Location: Essen, Germany

PostPosted: Thu Nov 28, 2002 11:30 am    Post subject: Reply with quote

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
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Thu Nov 28, 2002 2:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Messiah
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2002
Posts: 139

PostPosted: Thu Nov 28, 2002 8:43 pm    Post subject: Reply with quote

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
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