Build the php website runtime environment on ubuntu10.04

Source: Internet
Author: User
Tags php website
In Ubuntu, we set up the php website runtime environment. in Ubuntu, we set up the php website runtime environment. prerequisites: to open the root permission sudopassword [enter the root password here] 1, the first step to install ubuntu10.042, update the source sudoapt-getupdate3, install l ubuntu 10.04 to build a php website runtime environment
Prerequisites for setting up a php website running environment in ubuntu 10.04: to enable the root permission sudo password [enter the root password here] 1. install ubuntu10.042, update the source sudo apt-get update3, install lighttpdsudo apt-get install lighttpd, and check whether lighttpd is installed. started successfully, open the URL in the browser: http://localhost/ If the display is successful on the it's works surface, if not, end the lighttpd program process and then enter sudo lighttpd-f/etc/lighttpd. conf4, install PHPsudo apt-get install php5 complete continue sudo apt-get install php5-cli complete continue sudo apt-get install after php5-cgi complete continue sudo apt-get install php5-mysql let lighttpd support cgi mode # lighttpd-enable-mod fastcgi restart Lighttpd #/etc/init. d/lighttpd restart5: change the owner of the/var/www folder to the current user (some may not need this step ). The owner is xu2006, so that the file can be written. 6. right-click the www folder (var/www) and choose Create Document --- empty file. the file name is test. php writes the following content and saves it. <? Php // this file will test to see if php // is enabled and functiona; phpinfo ();?> Then open http://localhost/ Test. php you will see PHP information in the web page 7, install mysqlsudo apt-get install mysql-server-5.1 in this installation process will prompt you enter the management password 8, install phpmyadmin to manage mysqlsudo apt-get install phpmyadmin when it prompts you to select the web server, do not select anything, and then click OK to install phpmyadmin and move phpmyadmin to/var/www. we can use phpmyadmin to manage mysql # sudo mv/usr/share/phpadmin/var/www to open http://localhost/ Phpmyadmin: Check if you can manage mysql. The php website runtime environment is ready! Now you can download some php-type website programs for installation and testing, and check the results of your work. php programs include discuz wordpress. Root folder permission sudo chmod-R 0777/home/1.txt sudo chmod-R [permission] [Directory or file] sudo chwon-R root: root/var/wwwsudo chown-R [user name: User Group] [Directory or file]

?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.