Apache HTTP Server is a free software/open source web server for Unix-like systems and other operating systems.
Apache features configurable error messages, DBMS-based authentication databases, and content negotiation. It is also supported by several graphical user interfaces (GUIs) which permit easier, more intuitive configuration of the server.
Use rpm command to install the Apache server under Linux. You can also use up2date or yum command to install the same.
Task: Install Apache/httpd under Fedroa Core/Cent OS Linux
Type the following command if you are using Fedora / RHEL / Cent OS Linux, run:
# yum install httpd
To start the Apache/httpd, run:
# chkconfig httpd on
# /etc/init.d/httpd start
Task: Install Apache/httpd under Red Hat Enterprise Linux
Type the following command:
# up2date httpd
OR
# yum install httpd
To start the Apache/httpd, run:
# chkconfig httpd on
# /etc/init.d/httpd start
Task: Debian Linux httpd/Apache installation
Use the apt-get command:
# apt-get install apache2
# /etc/init.d/apache2 start
Task: Verify that port 80 is open
# netstat -tulpn | grep :80
You can also install httpd from CDROM with rpm command:
# rpm -ivh httpd*
Task: Store files / upload files for your web site
- You need to upload files at /var/www/html under RHEL / CentOS / Fedora Linux operating system.
- You need to upload files at /var/www/ under Debian or Ubuntu Linux operating system.
Apache Server configuration
Your server is started, but you need to configure and use Apache as per your requirement. /etc/httpd/conf/httpd.conf (RHEL/Cent OS/Fedora Core Linux) or /etc/apache2/httpd.conf (Debian / Ubuntu Linux) configuration file. Use a text editor such as vi to edit a file. This file is very well documented or read official Apache configuration documentation for more information.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












{ 27 comments… read them below or add one }
i have installed apache server by using this document
+1. Works like a charm. Thx.
i could install httpd.it was very good
good but when you try of add a file, access denied message invokes :(
it works, tks :)
good but when you try of add a file, access denied message . for root
pl say proplay
this could really use some more obvious points that noobs need, every cmd i typed in, that i found in this article, all i got was “command not found” im using centos 5.
Nice One
Can I ask what about the integration with PHP and My SQL?
I use debian base…
u saved my ass
hai sir i want to use all windows softwear in linux !
so what can i do for use .exe file in linux pleas sir
tell me about this
thnks
Why would you want to use Windows based applications in Linux?, it defeats the object of open source and there is no benifit to this at all.
If you really do have a need though, you can use wine to run your windows applications in Unix, and something like Samba for mounting files held on other MS servers
This sounds beyond your current level of experience though from what I can see
Sir
I want to install wine but i can`t install. So can you send me how to install wine in linux 5.4 pleas sir
Thanks
very useful post. thanks. i never knew that there is no httpd on debian..but now it’s clear. how to install “service” ..so that we can do service apache2 restart? instead /etc/init.d…
./configure –prefix=/opt/apps/metatax/apache –with-mpm=worker –enable-so –enable-mods-shared=all –enable-ssl –enable-rewrite –enable-proxy
compile with it
Great and very helpful thanks for sharing
Thank you …
Good Luck ….
This is priceless information! I’ve only just begun using Linux Fedora ver.16 and I wanted to get my hands dirty with Apache……now….thanks to your article I can actually say “Yes….I HAVE installed / built an Apache server” that should do wonders for my resume….now if I can just figure out exactly where the hosts file is for setting up a web-site…..LoL!
Thanx Again! You guys rock!!
/var/www/html
@ijat: Thanks so much!
Cheers!
EGO II
Gracias conciso y eficiente
Hi,
how i can use it as reverse proxy ?
ok but these is a temperuary solution
Thank You……………..
i have installed apache server by using this document
Nice tutorial ..
I have new VPS server tried to make Apache work
but page still not loading could this be related to CSF Firewall setting .
hello,
my problem is…
that i want to kaunch the website (JAVA/Mysql) and i have purchased the VPS 1
Plan but not proved apache and mysql s/w (Only proved empty sever with cpanel)
so how cant launch my this web site
please guide me
my server console
[root@vps ~]#