sudo apt-get install mysql-server 数据库用户:root, 密码:Abc123 sudo apt-get install phpmyadmin
sudo vi /etc/apache2/sites-available/000-default.conf
ServerName pepstack.com
ServerAdmin webmaster@pepstack.com
DocumentRoot /var/www/html
...
新建test.php在/var/www/html/下面,内容如下:
<?php phpinfo(); ?>
cd /etc/apache2/sites-enabled sudo ln -s /etc/phpmyadmin/apache.conf ./phpmyadmin.conf
sudo /usr/sbin/apache2ctl restart
访问:
http://www.pepstack.com/test.php
http://www.pepstack.com/phpmyadmin
填入数据库用户root,密码Abc123