LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to start localhost service in suse???? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-start-localhost-service-in-suse-608618/)

lin_myworld 12-22-2007 06:14 PM

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.

reddazz 12-22-2007 07:43 PM

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/.

lin_myworld 12-22-2007 08:00 PM

Quote:

You star apache by doing
#/etc/init.d/httpd start
I couldnt find the httpd start file....

lin_myworld 12-22-2007 08:08 PM

it got the solution..
i go to init.d dierctory in /etc and in terminal i typed ./apache2 start and it starts...

reddazz 12-22-2007 08:18 PM

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.


All times are GMT -5. The time now is 03:35 AM.