In this guide we will create our own web server on Centos 6.
We will use Apache (httpd with mysql and php -most common needs for most CMS) as web server and it's necessary to install mysql and php. So, let's install packets:yum install httpd httpd-devel php php-mysql mysql
Set Apache to autostart at boot:chkconfig httpd on
You can print installed httpd modules with the command httpd -l:[root@webserver]# httpd -lCompiled in modules:core.cprefork.chttp_core.cmod_so.c
Start apache:service httpd start
Apache config file: /etc/httpd/conf/httpd.conf
Default location for web pages: /var/www/html/
So if you have a site on local machine in folder "mysite" and you want to put it on the web server you must copy the files (not the directory) in /var/www/html/.
Now you can open your browser and go to your webpage http://yourwebserver.domain/
Was this answer helpful?
How to configure OpenVPN client on Windows: First download and install the client. Then...
In Centos: 1. Edit old mac HWADDR=XX:XX:XX:XX:XX:XX in the file...
If you concerned about network speed of your vps you can test it by downloading some test...
How to install nginx on Centos Add nginx repo first. To add it, create the file...
§ Install OpenVPN Access Server Be sure that you are using a clean system and no...