LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2007, 05:14 PM   #1
lin_myworld
Member
 
Registered: Oct 2007
Location: India
Distribution: Ubuntu 8.04
Posts: 93

Rep: Reputation: 15
How to start localhost service in suse????


i have installed apache 2 webserver on suse but i dont know how to start the localhost service and also tell me where is my www root folder.
 
Old 12-22-2007, 06:43 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You star apache by doing
Code:
#/etc/init.d/httpd start
If you want apache to start at boot time, you need to do
Code:
#chkconfig httpd on
The www directory is /srv/www/htdocs/.
 
Old 12-22-2007, 07:00 PM   #3
lin_myworld
Member
 
Registered: Oct 2007
Location: India
Distribution: Ubuntu 8.04
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
You star apache by doing
#/etc/init.d/httpd start
I couldnt find the httpd start file....
 
Old 12-22-2007, 07:08 PM   #4
lin_myworld
Member
 
Registered: Oct 2007
Location: India
Distribution: Ubuntu 8.04
Posts: 93

Original Poster
Rep: Reputation: 15
it got the solution..
i go to init.d dierctory in /etc and in terminal i typed ./apache2 start and it starts...
 
Old 12-22-2007, 07:18 PM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You probably inserted the "#" in the command I showed you above. That just indicates roots command prompt and should not be entered as part of the command. If the command had a "$", then it means run it as a normal user.
 
  


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
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
service does not start Aljaber Fedora 11 12-01-2005 07:07 PM
service could not start LinuxRam Linux - Newbie 4 08-26-2004 06:03 AM
Service start-up n.antonio Linux - Software 2 05-02-2003 09:57 PM
Start service HiGate Linux - General 3 01-25-2003 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 AM.

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