Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
*FIXED* Yet another Apache2 problem
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
Strom
n00b
n00b


Joined: 01 Mar 2003
Posts: 36
Location: Estonia, Tallinn

PostPosted: Fri Mar 26, 2004 11:25 am    Post subject: *FIXED* Yet another Apache2 problem Reply with quote

Hello!
When I upgraded my apache to version 2.0.49 I couldn't get it to work normaly again.
At first I had lots of problems .. but I have managed to fix most of them. Now there are just a few left what needs to be fixed.

When i type:
Code:
nest conf.d # /etc/init.d/apache2 start
 * Starting apache2...                                                    [ !! ]
then it just wont start .. it will thorw me those !! signs :(

When I just type apache2 then it will start and I can access the web server, but PHP doesn't work.
When I view a .php file then it will show me the source of the .php file .. treats the file as a normal text file.

The error_log files shows:
Code:
[warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?


My /etc/conf.d/apache2 config file:
Code:
APACHE2_OPTS="-D SSL -D PHP4"
PIDFILE=/var/run/apache2.pid
RESTARTSTYLE="graceful"


So to make it short I would like to get PHP working and also would like to start apache with the init script.
Hope someone can help me out :)
_________________
This is my signature.


Last edited by Strom on Sat Apr 03, 2004 12:00 am; edited 1 time in total
Back to top
View user's profile Send private message
kitana_ann
Tux's lil' helper
Tux's lil' helper


Joined: 04 Sep 2003
Posts: 117

PostPosted: Fri Mar 26, 2004 1:51 pm    Post subject: Reply with quote

Check if you have mod_php installed and what version it is. You might need to recompile it too.
Back to top
View user's profile Send private message
Strom
n00b
n00b


Joined: 01 Mar 2003
Posts: 36
Location: Estonia, Tallinn

PostPosted: Fri Mar 26, 2004 9:54 pm    Post subject: Reply with quote

I have dev-php/mod_php-4.3.4-r4 installed. I also tried to recomplie, it didn't fix anything :(
_________________
This is my signature.
Back to top
View user's profile Send private message
Nossie
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 181

PostPosted: Fri Mar 26, 2004 10:10 pm    Post subject: Reply with quote

Are there any clues in the apache logfiles ?
Back to top
View user's profile Send private message
Strom
n00b
n00b


Joined: 01 Mar 2003
Posts: 36
Location: Estonia, Tallinn

PostPosted: Sat Mar 27, 2004 11:34 am    Post subject: Reply with quote

Nossie wrote:
Are there any clues in the apache logfiles ?


As I said before .. error_log shows only the following:
Code:
[Sat Mar 27 13:33:12 2004] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Mar 27 13:33:12 2004] [notice] Apache/2.0.49 (Gentoo/Linux) configured -- resuming normal operations

_________________
This is my signature.
Back to top
View user's profile Send private message
Strom
n00b
n00b


Joined: 01 Mar 2003
Posts: 36
Location: Estonia, Tallinn

PostPosted: Sat Apr 03, 2004 12:03 am    Post subject: Reply with quote

Finally I got it fixed, well it fixed itself. :)
My power company played a little april fools joke and I lost power.
About 80 days of uptime was gone, but for my suprise after the reboot everything was back to normal.
My apache runs as nothing ever happend. :)
_________________
This is my signature.
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Sat Apr 03, 2004 5:02 am    Post subject: Reply with quote

If this happens next time, you may want to check out the "zap" function provided by the init scripts. That can help with running/not confusion - though you may have had somewhat different issues.
_________________
Osmos.org
Now with 20% fewer rabid primates.
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