Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error using php5 with apache2
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
Calandra
n00b
n00b


Joined: 05 Sep 2006
Posts: 38
Location: Gubbio (PG)

PostPosted: Wed Jan 17, 2007 5:46 pm    Post subject: Error using php5 with apache2 Reply with quote

Hi to all!

I use a local installation of apache/php to do some tests when creating application; i have this problem:

If i set -D PHP5 in /etc/conf.d/apache2, apache starts fine, but it doesn't work. In the log i don't see the
classic
Quote:

Apache configured -- resuming normal operations


but just this line:
Quote:

[Wed Jan 17 18:35:34 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)


The strange things, is that if i try to stop or restart it,got this error:

Code:

localhost etc # /etc/init.d/apache2 restart
 * Stopping apache2 ...
httpd (no pid file) not running                                                                                            [ ok ]
 * Starting apache2 ...
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs


But the pid is there:
Code:

localhost etc # ps -A | grep apache
26811 ?        00:00:00 apache2


If i remove -D PHP5 all come back to normal.

I use all stable version from portage

Thanks
Luca
Back to top
View user's profile Send private message
mallytheelder
n00b
n00b


Joined: 25 Apr 2006
Posts: 32
Location: Omaha, NE

PostPosted: Wed Jan 17, 2007 6:00 pm    Post subject: Reply with quote

I am having much of the same problems, except my webserver won't display php pages at all... just the Code. See my post.

Webserver not displaying php pages, just displaying the code
_________________
[img]http://dcsig.liquidninjas.com/store/dcsig_1642_3993.png[/img]
Back to top
View user's profile Send private message
bitwise
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 104
Location: seattle

PostPosted: Wed Jan 17, 2007 6:14 pm    Post subject: Reply with quote

not sure if this is it, but sometimes when I restart apache there wouldn't be enough entropy for it to start. When apache is actually running, if a do a ps ax | grep apache there is a large number of processes spawned by apache. When it doesn't work, there's just one (waiting on more entropy)

You can create entropy by doing anything that takes cpu cycles, I usually just do some sort of find on tmp files, or grep large files or something.
Back to top
View user's profile Send private message
dspahn
Guru
Guru


Joined: 22 Jun 2006
Posts: 392

PostPosted: Wed Jan 17, 2007 6:44 pm    Post subject: Don't think this problem is entropy-related.... Reply with quote

I have seen this, and I don't think it's an entropy problem. I have had this occur on servers that had been up for days, doing things.... I read somewhere in my travels how to either tweak the entropy source or how sensitive Apache is to how much entropy is there...
Back to top
View user's profile Send private message
Calandra
n00b
n00b


Joined: 05 Sep 2006
Posts: 38
Location: Gubbio (PG)

PostPosted: Thu Jan 18, 2007 8:02 am    Post subject: Reply with quote

Thanks for your answers mates...

I really don't understand this entropy things; can this be related to the fact that if i set -D PHP5 apache stops working?


I have reinstalled both php and apache and, if i enable php in the /etc/conf.d/apache2 happen this things:
Code:

localhost geko # /etc/init.d/apache2 start
 * Starting apache2 ...                                                   [ ok ]
localhost geko # /etc/init.d/apache2 stop
 * Stopping apache2 ...
httpd (no pid file) not running                                           [ ok ]
localhost geko #


Of course, also if starting is fine, apache doesn't work.

Thanks

Luca
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