在Ubuntu上安装搭建LAMP(Linux+Apache+MySQL+PHP)PHPWind论坛.docVIP

  • 9
  • 0
  • 约3.01千字
  • 约 3页
  • 2017-07-23 发布于河南
  • 举报

在Ubuntu上安装搭建LAMP(Linux+Apache+MySQL+PHP)PHPWind论坛.doc

在Ubuntu上安装搭建LAMP(LinuxApacheMySQLPHP)PHPWind论坛

Install LAMP(Linux+Apache+MySQL+PHP) PHPWind on Ubuntu 1.To start with, youd better update the system # apt-get update # apt-get upgrade 2.Install the Apache # apt-get install apache2 Input to the web browser when you finish it, if it shows it works, it means you have installed Apache successfully. 3.Install MySQL # apt-get install mysql-server Set password for MYSQL root user during the installation. #mysql -u root -p Enter the password you have just set for the MYSQL root user when it asks password, youll go into the mysql, then input as below: grant all privileges on *.* to root@localhost identified by mypassword with grant option; mypassword is your password for mysql, you should enter it the next time when you go into the mysql. Exit 4.Install PHP # apt-get install php5 libapache2-mod-php5 This is a way to test whether you have installed PHP successfully or not: # touch /var/www/html/test.php # gedit /var/www/html/test.php Write code as below in the test.php you have just opened: ?php phpinfo();? Save and exit. # /etc/init.d/mysql restart # /etc/init.d/apache2 restart Input localhost/test.php to the web browser, if there shows some relevant information, it means you have set an available environment in terms of this job successfully. 5.Install PhpMyAdmin # apt-get install phpmyadmin Choosing apache2 when it shows web server to reconfigure automatically. Choosing YES when it asks Configure database for phpmyadmin with dbconfig-common? Entering password you have set in step 3 for the mysql when it asks password of the databases administrative user. # cp -r /usr/share/phpmyadmin /var/www/html 6.Configure the PhpMyAdmin # vim /var/www/html/phpmyadmin/libraries/config.default.php Find out sentence as below in line 40 $cfg[PmaAbsoluteUri] = ; and change it into: $cfg[PmaAbsoluteUri] = http://localhost/phpMyAdmin/; Find out sentence as below in line 81 $cfg[blowfish_secret] = ; and change it into: $cfg[blowfish_secret] = ; Find out sentence as below in line

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档