LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-30-2009, 02:27 PM   #1
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Rep: Reputation: 33
Apache Loading Failed!!


So.. Listen at this..

i uninstall the apache2 from my debian box typing :

Quote:
apt-get remove --purge apache2
Then i install it again typing :

Quote:
apt-get install apache2
When now im trying to run apache returns me this error :
Code:
Starting web server (apache2)...apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory
 failed!
invoke-rc.d: initscript apache2, action "start" failed.

So.. i go to

Code:
/usr/share/doc/apache2.2-common/examples
and take a copy of apache2.conf into the /etc/apache2 directory.

Also the directories : sites-enabled ,sites-available, conf.d .. are empty.

Running now the apache i just take back this :
Code:
server:/etc/apache2# /etc/init.d/apache2 start
Starting web server (apache2)... failed!
How can i install back the defaults files in the above directories? (sites-enabled ,sites-available, conf.d)

Think to install apache2.2-common but it is already in :

Code:
server:/etc/apache.old/apache2/conf.d# apt-get install apache2.2-common
Reading package lists... Done
Building dependency tree... Done
apache2.2-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.

Please!!! Any Idea ?? I must make apache work... :-(


Thanks in advance!!
 
Old 06-30-2009, 03:12 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Did you try forcing the install? apt-get install -f apache2

Last edited by pljvaldez; 06-30-2009 at 03:13 PM.
 
Old 06-30-2009, 03:12 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
apt-get remove --purge apache2 apache2-common

apt-get install apache2 apache2-common
 
Old 06-30-2009, 03:41 PM   #4
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
farslayer Thanks a lot dude !!! maybe the trick was in remove and install it together..

Thanks again.. both of you guyz!!
 
Old 06-30-2009, 03:53 PM   #5
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
Hmmm.. why when im visiting a .php page server tells me to download the page and doesn't open it ?

I have install php...btw
 
Old 06-30-2009, 03:58 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Did you also install the php mod for apache2 ?


apt-get install libapache2-mod-php5
 
Old 06-30-2009, 04:07 PM   #7
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
Quote:
server:/etc/apache2/mods-available# apt-get install libapache2-mod-php5
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libapache2-mod-php5: Depends: php5-common (= 5.2.0+dfsg-8+etch15) but 5.2.10.dfsg.1-1 is to be installed
E: Broken packages
server:/etc/apache2/mods-available# apt-get install libapache2-mod-php4
Reading package lists... Done
Building dependency tree... Done
libapache2-mod-php4 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
As you can see... it says that libapache2-mod-php5 is broken in this repo. So i had install php version 4 . It still make this... with .php files
 
Old 06-30-2009, 04:10 PM   #8
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Original Poster
Rep: Reputation: 33
ook .. i restart.. the apache service.. and now works.. fine Thanks again..!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Autofs ( loading autofs4 failed) thinker Linux - Software 0 04-19-2007 06:54 AM
Loading USB printer failed fiomba Linux - Hardware 4 10-26-2005 05:22 PM
Failed to start apache : Apache does not appear to be running : number11 Slackware 9 02-11-2005 09:51 AM
a problem which cause loading module failed kira Linux - Newbie 1 12-30-2004 06:56 AM
lOading spec packet failed brunsodj Linux - Newbie 4 07-25-2002 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration