View previous topic :: View next topic |
Author |
Message |
Strom n00b
Joined: 01 Mar 2003 Posts: 36 Location: Estonia, Tallinn
|
Posted: Fri Mar 26, 2004 11:25 am Post subject: *FIXED* Yet another Apache2 problem |
|
|
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 |
|
|
kitana_ann Tux's lil' helper
Joined: 04 Sep 2003 Posts: 117
|
Posted: Fri Mar 26, 2004 1:51 pm Post subject: |
|
|
Check if you have mod_php installed and what version it is. You might need to recompile it too. |
|
Back to top |
|
|
Strom n00b
Joined: 01 Mar 2003 Posts: 36 Location: Estonia, Tallinn
|
Posted: Fri Mar 26, 2004 9:54 pm Post subject: |
|
|
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 |
|
|
Nossie Apprentice
Joined: 19 Apr 2002 Posts: 181
|
Posted: Fri Mar 26, 2004 10:10 pm Post subject: |
|
|
Are there any clues in the apache logfiles ? |
|
Back to top |
|
|
Strom n00b
Joined: 01 Mar 2003 Posts: 36 Location: Estonia, Tallinn
|
Posted: Sat Mar 27, 2004 11:34 am Post subject: |
|
|
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 |
|
|
Strom n00b
Joined: 01 Mar 2003 Posts: 36 Location: Estonia, Tallinn
|
Posted: Sat Apr 03, 2004 12:03 am Post subject: |
|
|
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 |
|
|
Immortal Q Apprentice
Joined: 14 Sep 2003 Posts: 241 Location: Silicone Valley
|
Posted: Sat Apr 03, 2004 5:02 am Post subject: |
|
|
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 |
|
|
|