In this tutorial I am going to show you step-by-step how to install Windows Server.

Explanation Screenshot
First lets update your CentOS server, by switching to Super User and using the command: yum install update Update CentOS
Now install httpd, using the command: yum install httpd Install httpd
Now lets install the mod_ssl package using the command: yum install mod_ssl install mod_ssl
Finally we can install php, use the command: yum install php-mysql php-devel php-gd php-pecl-memche php-pspell php-snmp php install php
No lets move to html directory, located in the /var/www/html Move to HTML directory
Now we can make a test file. In this case I just used echo to place some html code into a file called test.html. Once done creating the file, you need to give everyone READ permissions. You can ddo this by using the command chmod a+r <Your File Name> change permissions
Once you have the file set up, go a head and start your http server by using the command: sudo service httpd start start httpd
Now type in the IP address of your server, and press enter, the screen pictured right will appear. Enter ip address
To ensure you can see your test file, enter /<Your file's name>.html directly after your IP address. You should now see your test file. Find

These next steps are optional



Now we can enable user directories. Open the file, /etc/httpd/conf/httpd.conf in the text editor of your choice. And scroll down to the usr dir.c and comment, using the # sign, and uncomment userDir public_html Save and exit the file when you are done.
Update CentOS
Restart HTTPD using the command: sudo service httpd restart Update CentOS
Now make a Directory call public_html, and then go to the top of your file tree, and make everything from home to public_html readble by everyone, by using the command: chomod a+r <h;directory name> As pictured right Update CentOS
Now go back into public_html and create a test file. I just echoed some text into a php file. Update CentOS
Now you need to allow Apache to access your home directory, use this command to enable it (NOTE: Let the command run, it takes about a minute to work, DO NOT stop the command, you will have to restart the machine) setsebool -P httpd_enable_homedirs on; Update CentOS
Next, ensuring you are above the public_html file, run the command: chcon -t httpd_user_content_t public_html Update CentOS
Now you test it using both http and https. You can access it localy by enterting your IP address, to access it though https enter https://<you IP address> Update CentOS
Finally go to your filewall and ensure http (port 80) and https (port 443) are open and are allowing traffic. No Image Available