How to determining whether Apache is already installed?

If you are running Linux system, high chance Apache is already installed by default. In case, you can use the following commands to determining whether Apache is already installed. In RPM system like Fedora Core Issue httpd -v or /usr/sbin/httpd -v [root@snake init.d]# httpd -v Server version: Apache/2.2.11 (Unix) Server built: Mar 6 2009 09:12:25 …

Read more

Apache error – (13)Permission denied: make_sock: could not bind to address

I hit the Apache server error (13)Permission denied: make_sock in my console, while i try to start the Apache http server with the ./apache2 start script under init.d folder. mkyong@mkyong-desktop:/etc/init.d$ ./apache2 start * Starting web server apache2 apache2: Could not reliably determine the server fully qualified domain name, using 127.0.0.1 for ServerName (13)Permission denied: make_sock: …

Read more

How to restart apache services in unix?

Often times, as server administrator, have to telnet or SSH to their server to restart the Apache Http services. The Apache http services are usually located at the following location, 1) init.d start script folder. issue “./apache restart” to restart it debian:/etc/init.d# ./apache restart Forcing reload of web server (apache)… waiting . debian:/etc/init.d# 2) usr/local/apache/bin …

Read more

How to install Apache Http server in Windows

Installing Apache Http server in Windows is more easier than Linux. See my following posts for installing Apache http server in Linux system 1) How to install Apache Http server in Fedora Core 2) How to install Apache Http server in Ubuntu The steps are quite straight forward, download the binary installation and install it. …

Read more

How to install Apache Http server in Fedora Core

There are two ways to install Apache Http server in Fedora Core, either with yum command to install automatically and manual install it by compiling the source. Steps to install automatically 1) Search Apache package with yum search command yum search httpd P.S Apache http server in fedora is called httpd 2) Get the Apache …

Read more

How to install Apache Http server on Ubuntu

There is two ways to install Apache Http server on Ubuntu : Use apt command to install it automatically. Configure and build the source code, and install it manually. 1. Install it automatically 1. Search Apache package with “apt-cache search” command apt-cache search apache 2. Get Apache package name “apache2”, issue the “apt-get” install command. …

Read more

PhP file display as downloading instead of interpreted by Apache

Problem While accessing the PHP file, it display as “application/x-httpd-php” downloading instead of interpreted properly by Apache. See figure below : Solution The PHP downloading issue is caused by the Apache didn’t load the PHP module properly. 1. Find and edit Apache configuration file, which should be able to find at $APACHE_PATH/conf/httpd.conf. 2. Make sure …

Read more

How to set / change default page in Apache

Here i will show how to set or change default page in Apache. Apache default page is very easy to configure, we just need to configure Apache conf file in following location Apache file path/conf/httpd.conf Make the following changes in httpd.conf file. Change index.html or index.php to whatever default page you want. # # DirectoryIndex: …

Read more