FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can anyone help me please, i have just installed Fedora Core 5 and im a complete beginner. I have previously used Mandriva, albeit for a very short period of time.
In mandriva i used the command :
service httpd restart
to restart apache. In Fedora Core 5 however trying to run this command gives me the error :
bash: service: command not found
I have tried running this commmand as both my normal user and as root, but get the same error regardless of the user. Running the command :
/etc/rc.d/init.d/httpd restart
does work however, and so i am wondering how it is i can set this up so that i can restart apache just like i used to in Mandriva, is this possible?
I should also say that i havent yet modified any apache files (httpd.conf) or made any modifications to the system, basically just installed FC5 and have been trying to get familiar with it.
Thankyou for your time and patience, sorry if this topic/ subject has been posted before.
Last edited by akuma_linux; 08-21-2006 at 04:20 PM.
Thankyou for the reply. Im not sure how i could have removed this to be honest, however is there a way to resolve this which will not result in me having to reinstall Fedora?
I tried the command as root using su (i had also added my user to the sudoers file as well and tried the command using 'sudo service httpd restart') so i dont think this was the cause of the problem. Although i am new to linux this is one of the very few things i know how to do so far, however your reply is very much appreciated, thankyou.
I havent had a chance to try the advice given by macemoneta yet, but will reply once i have to confirm if it worked.
If you are using su, remember the '-' option to get the target user's environment (make it a login shell). Otherwise, you are running with your PATH, instead of root's PATH, and the privileged commands will not be found (/sbin/ is not part of a normal user's command search PATH).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.