Open /etc/sysconfig/network-scripts/ifcfg-xxxx file and replace line
ONBOOT=no
with
ONBOOT=yes
save and exit the file, and restart the Centos 7.
7/02/2015
Configure PHP-5.5+MySQL-5.6+apache-2.4+CentOS-7 on VirtualBox-4.3
0. Download and install VirtualBox 4.3
https://www.virtualbox.org/wiki/Downloads
1. Download CentOS 7
http://www.centos.org/download/
2. Install + configure Network
3. Update yum
$sudo yum update
$sudo yum install gcc kernel-devel kernel-headers
$sudo reboot
4. Install Virtual LinuxAddtions
If you meet error with[Building the OpenGL support module [FAILED]] , please use the following command
$sudo export MAKE='/usr/bin/gmake -i'
$sudo ./VBoxLinuxAdditions.run
if you still have errors, please try
$sudo /etc/init.d/vboxadd setup
5. Install apache 2.4
$sudo yum install httpd
$sudo systemctl start httpd.service
$sudo systemctl enable httpd
$sudo systemctl list-unit-files|grep httpd
httpd.service enabled
6. Install Remi Repo
$sudo yum install http://ftp.riken.jp/Linux/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
$sudo yum install http://rpms.famillecollet.com/enterprise/7/remi/x86_64/php55-2.0-2.el7.remi.x86_64.rpm
7. Open 80 port
$sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
$sudo firewall-cmd --reload
8. Confirm the httpd from browser
http://127.0.0.1
9. Install PHP5.5
$sudo yum install --enablerepo=remi-php55 php php-common php-mbstring php-xml php-mysqlnd php-pdo php-devel php-mcrypt
10. Restart the apache
$sudo systemctl restart httpd.service
11. Install MySQL 5.6
$sudo yum install http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
$sudo yum install mysql mysql-server
$sudo chkconfig mysqld on
$sudo chkconfig --list mysqld
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
12. Restart Apache
$sudo systemctl restart httpd.service
https://www.virtualbox.org/wiki/Downloads
1. Download CentOS 7
http://www.centos.org/download/
2. Install + configure Network
3. Update yum
$sudo yum update
$sudo yum install gcc kernel-devel kernel-headers
$sudo reboot
4. Install Virtual LinuxAddtions
If you meet error with[Building the OpenGL support module [FAILED]] , please use the following command
$sudo export MAKE='/usr/bin/gmake -i'
$sudo ./VBoxLinuxAdditions.run
if you still have errors, please try
$sudo /etc/init.d/vboxadd setup
5. Install apache 2.4
$sudo yum install httpd
$sudo systemctl start httpd.service
$sudo systemctl enable httpd
$sudo systemctl list-unit-files|grep httpd
httpd.service enabled
6. Install Remi Repo
$sudo yum install http://ftp.riken.jp/Linux/fedora/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
$sudo yum install http://rpms.famillecollet.com/enterprise/7/remi/x86_64/php55-2.0-2.el7.remi.x86_64.rpm
7. Open 80 port
$sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
$sudo firewall-cmd --reload
8. Confirm the httpd from browser
http://127.0.0.1
9. Install PHP5.5
$sudo yum install --enablerepo=remi-php55 php php-common php-mbstring php-xml php-mysqlnd php-pdo php-devel php-mcrypt
10. Restart the apache
$sudo systemctl restart httpd.service
11. Install MySQL 5.6
$sudo yum install http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
$sudo yum install mysql mysql-server
$sudo chkconfig mysqld on
$sudo chkconfig --list mysqld
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
12. Restart Apache
$sudo systemctl restart httpd.service
Subscribe to:
Posts (Atom)