Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- install apache web server:
- yum install httpd
- start at boot:
- chkconfig httpd on
- start web server:
- service httpd start
- allow webserver in the firewall:
- nano /etc/sysconfig/iptables
- --------------------------------------------------------
- -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
- --------------------------------------------------------
- restart firewall:
- service iptables restart
- install mysql server:
- yum install mysql mysql-server
- start at boot:
- chkconfig mysqld on
- start mysql server:
- service mysqld start
- configure some directory structures and create some management system tables:
- mysql_install_db
- harden installation by changing defaults:
- mysql_secure_installation
- to login mysql:
- mysql -u root -p
- install php:
- yum install php php-mysql
- nano /var/www/html/testphp.php
- --------------------------------------------------------
- <?php
- phpinfo();
- ?>
- --------------------------------------------------------
- add EPEL repository:
- wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
- rpm -ivh epel-release*
- yum repolist
- install phpmyadmin:
- yum install phpMyAdmin
- edit config files:
- nano /etc/httpd/conf.d/phpMyAdmin.conf
- --------------------------------------------------------
- Alias /phpMyAdmin /usr/share/phpMyAdmin
- Alias /phpmyadmin /usr/share/phpMyAdmin
- #<Directory /usr/share/phpMyAdmin/>
- # <IfModule mod_authz_core.c>
- # # Apache 2.4
- # Require local
- # </IfModule>
- # <IfModule !mod_authz_core.c>
- # # Apache 2.2
- # Order Deny,Allow
- # Deny from All
- # Allow from 127.0.0.1
- # Allow from ::1
- # </IfModule>
- #</Directory>
- --------------------------------------------------------
- cp /usr/share/phpMyAdmin/config.sample.inc.php /usr/share/phpMyAdmin/config.inc.php
- nano /usr/share/phpMyAdmin/config.inc.php
- --------------------------------------------------------
- /* Authentication type */
- $cfg['Servers'][$i]['auth_type'] = 'http';
- --------------------------------------------------------
- service httpd restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement