LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-21-2012, 11:21 PM   #1
laks
Member
 
Registered: Feb 2012
Posts: 34

Rep: Reputation: Disabled
Apache 2 not running


Hi All,

I want to install and run apache on my suse linux 10 system. I got apache2 installed on my machine, and now I have /usr/local/apache2 folder and subdirectories present in my filesystem. But, how do I get my apache to run? I checked /etc/init.d and apache2 is not present there. Could any one help me out pleasee..
 
Old 02-21-2012, 11:39 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
HOW did you install apache ?
normally i recommend that for the first 12 or so server installs you install EVERYTHING ( Apache,php,phpmyadmin,mysql,...) from source
BUT
seeing as, i am guessing this is SELS10, and NOT OpenSUSE 10, you are paying novell a lot of cash for access to the SELS repos
-- if OpenSUSE 10 then it has been unsupported for a VERY long time - do not use

so
you have a support contract with novell
you might want to use it and install apache from the novell repo
Code:
su -
zypper in apache2

the reason i recommend building from source( ALL the NEEDED programs ) for about 12 installs is that you LEARN how to set it up and configure it
Apache2
PHP
mysql
PhpMyAdmin

And on suse configuring
app-armor and the firewall

Quote:
But, how do I get my apache to run
the Apache documentation
from the INSTALL instructions
http://httpd.apache.org/docs/2.4/invoking.html

but is everything setup and configured ?
 
Old 02-21-2012, 11:50 PM   #3
laks
Member
 
Registered: Feb 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
Thanks John for the quick reply.
Yes, you are correct, it is sles10 and I have just installed apachehttpdsoftware.
Now I ran 'apachectl2 start' and it seems it has started some httpd process. I can see 3-4 lines when i run 'ps -aef | grep httpd'. But still I cannot see httpd in /etc/init.d. What my understanding of apache is that it starts httpd service when it is starts. So does this mean my apache is still not running?
 
Old 02-22-2012, 12:07 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
For the old SELS 10 the rpm should have installed the service scripts

if you did not use the rpm install then you have to write it

is a gui installed on this server or is it text only

currently i do not have a Apache server running on an older SELS10 install

for 10 you might want to start on the novell page
http://www.novell.com/support/microsites/microsite.do
and search for apache

you are paying novell for support so you might as well use it
 
1 members found this post helpful.
Old 02-22-2012, 12:24 AM   #5
laks
Member
 
Registered: Feb 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
Thanks John, So I need to get the service scripts copied from somewhere and edit for my settings. Is that what you meant? I did not installed from rpm, I installed from source using make and make install.
 
Old 02-22-2012, 04:17 AM   #6
m1qe
LQ Newbie
 
Registered: Jan 2006
Location: Sweden
Distribution: SLES, Opensuse, CentOS
Posts: 21

Rep: Reputation: 13
Is there a special reason for installing from source?
If not I would recommend you to install via Yast2 or zypper and use the Apache2 that comes with SLES10 instead. By doing this you also get support from Novell.
You also get a Yast2 module for configuring Apache modules, autostart etc.

Good luck.
 
Old 02-22-2012, 09:42 PM   #7
laks
Member
 
Registered: Feb 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
Hmm...Thanks guys..there was no special reason to install from source, only thing that I was not aware that installation from source and rpm makes a huge difference.

Now I have decided to uninstall my apache2(In fact I also installed nagios on apache2, so I will first need to uninstall nagios followed by apache2). Since the installation was from source, I suppose uninstallation is to recursively delete all the folders created by apache2. Is there anything that needs to be taken care while uninstalling?.

Thanks heaps for these valuable tips.
 
Old 02-23-2012, 01:46 AM   #8
laks
Member
 
Registered: Feb 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
Finally I uninstalled apache2 and Nagios(by running rm -rf) and now I am installing apache2 from rpms that came with suse linux CD. However I am stuck on a weird problem.

nn63u-dw0514:/SUSE/x86_64 # rpm -ivh apache2-2.2.3-16.9.x86_64.rpm
error: Failed dependencies:
apache2-MPM is needed by apache2-2.2.3-16.9.x86_64

And when i run apache2-prefork to fix MPM issue, it is aking for apache2-2.2.3.

inn63u-dw0514:/SUSE/x86_64 # rpm -ivh apache2-prefork-2.2.3-16.9.x86_64.rpm
error: Failed dependencies:
apache2 = 2.2.3 is needed by apache2-prefork-2.2.3-16.9.x86_64

Looks like I am in some deadlock. Is there any other rpm files that I need to run.
 
Old 02-23-2012, 04:24 PM   #9
m1qe
LQ Newbie
 
Registered: Jan 2006
Location: Sweden
Distribution: SLES, Opensuse, CentOS
Posts: 21

Rep: Reputation: 13
I think you should try the software tools that comes with SLES, either the GUI based via Yast2 or CLI based zypper command. They both handle failed dependencies, version mismatches etc. If you have added update repositories and patched your system you should not install rpm's from original media.

Good luck.
 
1 members found this post helpful.
Old 02-23-2012, 09:48 PM   #10
laks
Member
 
Registered: Feb 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
Thanks, the issue got resolved after using GUI based installation. Now I have both apache2 and nagios running on my machine.
 
  


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
Where is apache running? your_shadow03 Linux - Newbie 1 11-29-2009 02:50 AM
Failed to start apache : Apache does not appear to be running : number11 Slackware 9 02-11-2005 09:51 AM
How to tell what Apache is running as? cadkins Linux - Newbie 2 11-09-2004 11:06 AM
running apache gtgoku Slackware 1 10-29-2003 08:05 PM
Running Apache Ruth Linux - General 6 03-26-2001 06:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:31 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