LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /etc/init.d/apache2 start ---> permission denied (http://www.linuxquestions.org/questions/linux-newbie-8/etc-init-d-apache2-start-permission-denied-682889/)

david008 11-12-2008 08:46 AM

/etc/init.d/apache2 start ---> permission denied
 
Hi,


I am a newbie and i need to setup LAMP for my school in my computer - however so far i have failed in installing and setting up the apache server

i am using opnsuse 11

i installed the LAMP from YAST2. filtered Pattern and selected Web and LAMP - i believe its installed

however when i go to the firefox browser and type http://localhost - it gives and error saying page not found

in the terminal i typed in the following

/etc/init.d/apache2 start

it gives an error saying permission denied
i tried other commands as well

/etc/init.d/rcapache2 start
says that rcapache2 command not found


please help me out in getting the apache server up and running - my labworks are pending .

thanks in advance for any help

Bdfy 11-12-2008 08:56 AM

Quote:

/etc/init.d/apache2 start

it gives an error saying permission denied
i tried other commands as well
which user ? root ?
type "id" in terminal and show result

david008 11-12-2008 09:01 AM

yes i am the root user

atleast administrator

david008 11-12-2008 09:02 AM

yes i am the root user

atleast administrator

farslayer 11-12-2008 11:13 AM

rather than using the init scripts directly I would use the apache2ctl script as root.

apache2ctl start
apache2ctl stop
apache2ctl status
apache2ctl restart




How to Apache MySQL PHP on Suse


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