Setting up a PHP Web environment on Ubuntu 10.04

Source: Internet
Author: User
Tags php website
Ubuntu 10.04 under the Environment of building PHP Web site
Ubuntu 10.04 under the premise of building a PHP website environment: To open the root permissions sudo password [here to fill in the root password] 1, the first step to install ubuntu10.042, update the source sudo apt-get update3, After installing the Lighttpdsudo apt-get install lighttpd Check if LIGHTTPD is successfully started, open url:http://localhost/in the browser if it is displayed as it's works The surface has been successful. If not, end the process of LIGHTTPD program and then enter the sudo lighttpd-f/etc/lighttpd/lighttpd.conf4, install Phpsudo apt-get installation PHP5 finish after continuing sudo apt-get install php5-cli finish after continuing sudo apt-get install php5-cgi finish after continuing sudo apt-get install php5-mysql let LIGHTTPD Support CGI mode # lighttpd-enable-mod fastcgi restart lighttpd#/etc/init.d/lighttpd restart5, will/var/ The WWW folder owner changes to the current user (some may not need this step) Sodu Chown-r xu2006:xu2006/var/www so that the owner of the WWW folder is xu2006, so you can write to the file 6, open www folder (var/ WWW) Right---create document---The empty file file is named: Test.php writes the following contents and saves <? php//This file would test to see if php//is enabled a nd functiona;phpinfo ();? > then open http://localhost/test.php you will see PHP information in the Web page 7, install Mysqlsudo Apt-get installed mysql-server-5.1 mysql-client-5.1 in this installation process will prompt you to enter the management password 8, install phpMyAdmin used to manage Mysqlsudo apt-get install phpMyAdmin when it prompts you to choose that kind of Web server, Do not choose anything, then OK AnnJust move the phpMyAdmin to the/var/www, and we'll be able to manage MySQL with phpMyAdmin. # sudo mv/usr/share/phpadmin/var/www open http://localhost/ phpMyAdmin See if you can manage MySQL to this, PHP site running environment is equipped! You can now download some PHP type of website program installation test See, check your own labor results PHP program has: Discuz WordPress and so on. Root folder permissions sudo chmod-r 0777/home/1.txtsudo chmod-r "Permissions" "Directories or Files" sudo chwon-r root:root/var/wwwsudo chown-r [user name: User Group] "item Record or document "

?

  • Related Article

    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.