Last active
August 29, 2015 14:02
-
-
Save damiann/b5ebf594188a7fff76ee to your computer and use it in GitHub Desktop.
CentOS 6 (VirtualBox)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# network | |
Go to VirtualBox → Preferences → select Network tab and create a Host-Only Network adapter (Adapter 1) | |
Go to VirtualBox → Preferences → select Network tab and create a NAT Network adapter (Adapter 2) | |
Boot up the VM | |
Open Terminal | |
ifconfig // should see eth0 and eth1 | |
# allow the host to see web server | |
sudo system-config-firewall | |
enable www(tcp), SSH, www secure | |
# install apache, php, mysql | |
sudo yum install httpd | |
sudo service httpd start | |
# navigate to browser and type in the ip address found by running ifconfig | |
# apache page should load | |
sudo yum install mysql-server | |
sudo service mysqld start | |
sudo /usr/bin/mysql_secure_installation | |
sudo yum install php php-mysql php-xml php-curl php-gd php-mcrypt php-common | |
# yum install zip ftp | |
# any other php modules | |
yum search php- | |
# yum info {name of the module} | |
# sudo yum {install name of the module} | |
# restart apache to make everything take effect | |
sudo service httpd restart | |
# change permissions if needed | |
sudo find foldername -type d -exec chmod 755 {} ";" | |
sudo find foldername -type f -exec chmod 644 {} ";" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment