sudo apt-get install mysql-server 数据库用户:root, 密码:Abc123sudo apt-get install phpmyadmin2)更改配置apache2
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(); ?>3) 配置phpmyadmin
cd /etc/apache2/sites-enabledsudo ln -s /etc/phpmyadmin/apache.conf ./phpmyadmin.conf4) 启动apache2
sudo /usr/sbin/apache2ctl restart访问:
http://www.pepstack.com/test.php
http://www.pepstack.com/phpmyadmin
填入数据库用户root,密码Abc123
新闻热点
疑难解答
图片精选