Skip to content

Instantly share code, notes, and snippets.

@damiann
Last active August 29, 2015 14:02
Show Gist options
  • Save damiann/b5ebf594188a7fff76ee to your computer and use it in GitHub Desktop.
Save damiann/b5ebf594188a7fff76ee to your computer and use it in GitHub Desktop.
CentOS 6 (VirtualBox)
# 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