Pursuing a dream to build a website ubuntu16.04 source configuration steps
ubuntu 16.04 based systems, using apache be deployed, Ali cloud cloud server
Ali cloud server
- Creating a server selection ubuntu16.04 64-bit operating system
- Configuration rules to a security group, add 80 ports
Related environmental configuration
- Related to update apt source
sudo apt-get update
- mysql installation
apt-get install mysql-server
apt-get install mysql-client
apt-get install libmysqlclient-dev
- apache installation
apt-get install apache2
/etc/init.d/apache2 start #启动
/etc/init.d/apache2 restart #重启
/etc/init.d/apache2 stop #停止
- php installation
apt-get install php7
- php module mounted with mysql
apt-get install php-mysql
Permission settings
- Read, write, execute permissions
chmod 777 /var/www/html/...
chmod 777 /var/www/html/data/common.inc.php #数据库文件权限
- Background menu does not display
chmod 777 /var/www/html/data/tplcache
And delete all the cache files except index.php