View Full Version : Apache
carlwill
22nd September 2004, 12:40 AM
So I finally sat down and I seem to have appache installed on Fedora Core 2.
Now my question is how do I know if appache manually starts with the system boot up process?
I did a google search and found this LINK (http://www.linuxgazette.com/issue12/server.html)
and it says:
Starting/Running the Web Server
To make a long story short, you simply to need to execute the binary "httpd". Typically, this is done when the system starts up, in one of the rc files.
In Red Hat 4.0, it has more of a System V'ish startup style. In /etc/rc.d/init.d resides httpd.init, which is the script used to start and stop httpd. You can also execute this by hand if you find the need.
For other systems (or a manual install), I suggest starting httpd after most other services have started (i.e.: put it in rc.local). A simple line such as
/usr/sbin/httpd &
will suffice.
Obviously, it must start after tcp/ip networking has been started
Is there a way in Gnome using FC2 to figure this out?
imdeemvp
22nd September 2004, 02:50 AM
i dont knwo about configuring apache in fc but they have FAQ: http://httpd.apache.org/docs/misc/FAQ.html
superbnerd
22nd September 2004, 02:53 AM
to make it startup at boot, just enable the service in system-config-services, system settings -> server settings -> services. check httpd, and save your config.
carlwill
22nd September 2004, 07:03 AM
to make it startup at boot, just enable the service in system-config-services, system settings -> server settings -> services. check httpd, and save your config.
I don't have an httpd option there???
superbnerd
22nd September 2004, 07:41 AM
you need to make sure you have httpd installed rpm -q httpd if you don't you will need to install it via yum (ftp://limestone.uoregon.edu/fedora/test/2.91/i386/iso/FC3-test2-i386-disc4.isohttp://www.fedorafaq.org/#installsoftware) yum install httpd
carlwill
22nd September 2004, 04:53 PM
http://httpd.apache.org/docs/misc/FAQ.html
I just installed Apache using YUM (which I don't like because now I have no idea where YUM installed all the files and things I may need to access manually) and I started this and looks like it is working since I can typoe localhost and get to a generic apache page saying it works.
Now I guess I am trying to figure out my next course of action? Where do I go to start modifying the file so I can set up a generic website?
Is there something I can use if I just want a plain old index page with links to pictures? I don't want a HTML site coded for Flash and all this crazy stuff boucning off the wall but yet a simple looking index page with a white background. Do I need special tools to do this?
superbnerd
22nd September 2004, 08:54 PM
you should learn to love yum. it your best friend when it comes to managing software. if you need to know where things are installed, use rom to query the package rpm -q <pakage> if you have a question, always read the man pages first.
in fedora and linux in general, setting files go in the /etc directory. the apache files are in /etc/httpd
you put you webpages in you documentroot (read you /etc/httpd/conf/httpd.conf). it defaults to /var/www/html. creat an index.html and voila.
carlwill
22nd September 2004, 09:27 PM
in fedora and linux in general, setting files go in the /etc directory. the apache files are in /etc/httpd
you put you webpages in you documentroot (read you /etc/httpd/conf/httpd.conf). it defaults to /var/www/html. creat an index.html and voila.
wow, I feel so stupid :o
I guess I need to take a web development class or apache crash course or something :(
kosmosik
22nd September 2004, 11:23 PM
% chkconfig --list httpd
httpd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
%
this means that httpd (Apache) runs in runlevels 3,4,5 - meaning that it is started autmagicaly for all user runlevels, meaning that yes it runs :)
gablaxian
29th September 2004, 11:48 AM
Hey all,
I'm having a similar problem, but with a twist. I decided not to use the apache rpm package that either comes with FC1, or one i could get from yum, instead opting for the newest version 2.0.52, which i got from the apache.org site.
I configured it, along with mysql and php and the only problem i have now is that I can't get it to load on startup.
There is no httpd service available for me to use.
To manually start my apache, I have to type # /usr/local/apache2/bin/apachectl start
I tried to put the apachectl file into the services using #chkconfig --add apachectl but I get a nice error message saying 'service apachectl does not support chkconfig'.
Can anyone tell me how to get it to auto load?
savudin
11th February 2005, 02:37 PM
Can anyone tell me how to get it to auto load?
a bit late :))
http://f2o.org/forum/index.php?showtopic=2154&pid=12428&st=0&#entry12428
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.