Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Apache + PHP -- How????
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
dargosch
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2003
Posts: 101

PostPosted: Tue Feb 26, 2008 8:28 pm    Post subject: [SOLVED] Apache + PHP -- How???? Reply with quote

Hi,


I just want a simple setup with Apache + PHP. How do I do this????

I install it all, and I get this:

Code:

no listening sockets available, shutting down
Unable to open logs
Syntax OK
no listening sockets available, shutting down
Unable to open logs
Syntax OK
no listening sockets available, shutting down
Unable to open logs
Syntax OK
no listening sockets available, shutting down
Unable to open logs
Syntax OK
no listening sockets available, shutting down
Unable to open logs
Syntax OK
no listening sockets available, shutting down
Unable to open logs
Syntax OK
no listening sockets available, shutting down
Unable to open logs
Syntax OK
no listening sockets available, shutting down
Unable to open logs




in /var/log/apache2/startuperror.log when i start the server.

How do I fix this??

/Fredrik
_________________
Registered Linux user #163029 http://counter.li.org/
My Gentoo + PVR-350 + IVTV + MythTV blog is on
http://gentoomythtv.blogspot.com/


Last edited by dargosch on Fri Feb 29, 2008 6:54 am; edited 1 time in total
Back to top
View user's profile Send private message
bytenirvana
Apprentice
Apprentice


Joined: 10 Jun 2006
Posts: 218
Location: Volksstaat Hessen

PostPosted: Tue Feb 26, 2008 9:53 pm    Post subject: Reply with quote

did you

Code:
emerge php apache


?
_________________
Linux User #422770
Back to top
View user's profile Send private message
timbo
Apprentice
Apprentice


Joined: 29 Jul 2002
Posts: 231
Location: New Zealand

PostPosted: Wed Feb 27, 2008 2:11 am    Post subject: Reply with quote

I too have a problem with apache, I can get it to start from the command line but it does not serve php pages locally or over my wee network. If I try to start apache via the init.d script nothing, no errors no [OK] nothing.

I've read through the upgrade guide and even removed it all and started again, rebuild php/apache apache/php everything but still pounding my head.

Biggest problem I have is mythweb I use a lot to schedule recordings.

Regards
Tim
8)
_________________
Linux User: 303160
Back to top
View user's profile Send private message
JC99
l33t
l33t


Joined: 06 Aug 2003
Posts: 709
Location: Toronto

PostPosted: Wed Feb 27, 2008 2:37 am    Post subject: Reply with quote

Make sure you have the "apache2" USE flag set when you compile PHP or else your server will just serve up the code when you visit a .php file via your browser.
Back to top
View user's profile Send private message
jtp755
l33t
l33t


Joined: 01 Sep 2003
Posts: 691
Location: USA

PostPosted: Wed Feb 27, 2008 3:36 am    Post subject: Reply with quote

also make sure that in your /etc/conf.d/apache2 you have added the PHP5 tag.

whats the output of emerge -av php apache2?
_________________
www.EternalFireProof.com
Registered Linux User #334610
Back to top
View user's profile Send private message
dargosch
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2003
Posts: 101

PostPosted: Fri Feb 29, 2008 6:53 am    Post subject: Reply with quote

jtp755 wrote:
also make sure that in your /etc/conf.d/apache2 you have added the PHP5 tag.

whats the output of emerge -av php apache2?



Thank you alll!

It seems that it was the mod_unique_id that failed to resolve my hostname. Uncommenting it made it all work.
What that has to do with being able to write to logs, I don't know.. but hey.. it works :-)

Thanks!
_________________
Registered Linux user #163029 http://counter.li.org/
My Gentoo + PVR-350 + IVTV + MythTV blog is on
http://gentoomythtv.blogspot.com/
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