LAMP configuration after ubuntu16installation
|
sudo apt-get update //1.LAMP sudo apt-get install apache2 sudo apt-get install php php -v sudo apt-get install libapache2-mod-php //php libs for apache2 sudo apt-get install mysql-servermysql-secure-installation //install mysql server mysql -hlocalhost -uroot -ppwd //check sudo apt-get install php7.0-mysql //php support mysql sudo service mysql restart sudo service apache2 restart sudo apt-get install php-mcrypt php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc php-gettext //php modules sudo chmod 777 /var/www/html // aparche2 html root dir permissions sudo apt-get install phpmyadin //gui mysql manager and need php-mbstring php and php-gettext sudo gedit /etc/apache2/apache2.conf //add 'ServerName server_domain_or_ip'in apache2.conf sudo gedit /etc/apache2/mods-enabled/dir.conf //modify default page from index.html to index.php sudo systemctl restart apache2 sudo systemctl status apache2 //check on the status of apache2 service sudo apache2ctl configtest //syntax ok verity server name sudo ufw app list //firwall app list sudo ufw app info "Apache2 Full" //watch ports 80,443/tcp sudo ufw allow in "Apache2 Full" //allow apache2 in firwall (编辑:日照站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- ubuntu16.04下安装TensorFlow(GPU加速)----详细图
- Ubuntu常见错误--Could not get lock /var/lib/d
- 详解Ubuntu 16.04 pycharm设置桌面快捷启动方式
- 【问题收录】[ubuntu]startx doesnt work
- laravel – 启动Ubuntu Server时,Supervisor不会
- 如何在没有X的情况下在ubuntu上安装mercurial
- Ubuntu上安装SSH
- ubuntu – 这些错误在riak安装中意味着什么?
- python在ubuntu中的几种安装方法(小结)
- ubuntu-12.04 – 与Librarian-Puppet Broken的Va
