View previous topic :: View next topic |
Author |
Message |
p3nguin Apprentice
Joined: 01 Jul 2003 Posts: 188 Location: ~/
|
Posted: Sun Jan 25, 2004 6:51 am Post subject: installing/running php |
|
|
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 |
|
|
p3nguin Apprentice
Joined: 01 Jul 2003 Posts: 188 Location: ~/
|
Posted: Mon Jan 26, 2004 3:05 am Post subject: |
|
|
no one has any idea what this error is? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Mon Jan 26, 2004 10:29 am Post subject: |
|
|
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 |
|
|
p3nguin Apprentice
Joined: 01 Jul 2003 Posts: 188 Location: ~/
|
Posted: Tue Jan 27, 2004 4:46 am Post subject: |
|
|
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 |
|
|
|