[Legion Leak] How To Set Up a Web Server on CentOS 07-28-2013, 06:47 PM
#1
This post is leaked from the premium section of "Legion" on the competing hack forum. There will be 5 new leaks a day. There may be some format problems due to UTF8 character encoding.
(07-22-2013, 09:46 AM)~Tom~ Wrote:
I will show you how to set up a Web Server on CentOS
There will be 3 parts
Installing MySQL
Installing Apache
Installing PHP
Installing MySQL.
1. First you'll want to login as root and type
Code:yum install mysql mysql-server
2. You'll want to configure Apache so that it's added to start up and will start up on boot.
Code:chkconfig --levels 235 httpd on
3. Now you'll want to start MySQL.
Code:/etc/init.d/mysqld start
4. Now to make sure you're MySQL is a little secure you'll want to set a password.
Code:mysql_secure_installation
Now you will get a load of text on screen. First of it will ask you :
Spoiler:
MySQL is now installed and a little more secure.
Installing Apache.
You'll only need one command to install Apache as it's actually a CentOS package.
Now you'll want to make sure Apache starts on boot.Code:Yum install httpd
Now you'll want to start up ApacheCode:chkconfig --levels 235 httpd on
Code:/etc/init.d/httpd start
which if done correctly will bring up a blue screen similar to this:
Something worth noting
Apache's default root directory is /var/www/html
The configuration file is /etc/httpd/conf/httpd.conf.
Additional configuration files directory: /etc/httpd/conf.d/
Installing PHP.
PHP is probably the easiest thing you'll install.
It's a CentOS package therefore it can be simply installed by:
Code:yum install php
Now restart Apache
Code:/etc/init.d/httpd restart
To test it you can install nano by typing
Spoiler:
PHP is now installed.
I didn't have a CentOS server to carry this out on so I can't provide screen shots if someone wants to let me use one then I'd be happy to update it. I'm also going to update it more when I get back.