Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
installing/running php
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
p3nguin
Apprentice
Apprentice


Joined: 01 Jul 2003
Posts: 188
Location: ~/

PostPosted: Sun Jan 25, 2004 6:51 am    Post subject: installing/running php Reply with quote

I just recently tried installing php using emerge mod_php. I then added these lines to my apache2.conf file
Code:
LoadModule php4_module                   /etc/php/apache2-php4/lib/libphp4.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

Tried restarting my webserver and got this error
Code:
* Starting apache2...
/sbin/runscript.sh: line 527: 30886 Segmentation fault      start-stop-daemon --quiet --start --startas /usr/sbin/apache2 --pidfile /var/run/apache2.pid -- -k start ${APACHE2_OPTS}

What am I doing wrong here? thanks in advance.
Back to top
View user's profile Send private message
p3nguin
Apprentice
Apprentice


Joined: 01 Jul 2003
Posts: 188
Location: ~/

PostPosted: Mon Jan 26, 2004 3:05 am    Post subject: Reply with quote

no one has any idea what this error is?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Jan 26, 2004 10:29 am    Post subject: Reply with quote

You should back that change out and edit /etc/conf.d/apache

There is info in there about enabling PHP to start up
Back to top
View user's profile Send private message
p3nguin
Apprentice
Apprentice


Joined: 01 Jul 2003
Posts: 188
Location: ~/

PostPosted: Tue Jan 27, 2004 4:46 am    Post subject: Reply with quote

well I added
Code:
LoadModule php4_module                   /etc/php/apache2-php4/lib/libphp4.so
to the /etc/conf.d/apache2 file and temoved it from the apache2.conf file. The webserver starts up but i get
Code:
/etc/init.d/apache2 restart
/sbin/runscript.sh: line 28: LoadModule: command not found
 * Starting apache2...                                                    [ ok ]
So im not sure what im doing wrong. The php guide told me in the first place to put that line in the apache2.conf file. Please some one help....thanks
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