Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

installing/running php

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
p3nguin
Apprentice
Apprentice
Posts: 188
Joined: Tue Jul 01, 2003 1:12 am
Location: ~/

installing/running php

  • Quote

Post by p3nguin » Sun Jan 25, 2004 6:51 am

I just recently tried installing php using emerge mod_php. I then added these lines to my apache2.conf file

Code: Select all

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: Select all

* 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.
Top
p3nguin
Apprentice
Apprentice
Posts: 188
Joined: Tue Jul 01, 2003 1:12 am
Location: ~/

  • Quote

Post by p3nguin » Mon Jan 26, 2004 3:05 am

no one has any idea what this error is?
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Mon Jan 26, 2004 10:29 am

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

There is info in there about enabling PHP to start up
Top
p3nguin
Apprentice
Apprentice
Posts: 188
Joined: Tue Jul 01, 2003 1:12 am
Location: ~/

  • Quote

Post by p3nguin » Tue Jan 27, 2004 4:46 am

well I added

Code: Select all

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: Select all

/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
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic