The following describes how to configure the php development environment on ubuntu9.10 and win7 respectively, and attach the Web to share with you.
1. It is relatively simple to configure lamp in Ubuntu.
Reference http://www.linuxidc.com/Linux/2009-11/22595.htm
1. Enter sudo apt-Get install apache2 in the terminal
Sudo apt-Get install libapache2-mod-php5 PhP5
Sudo apt-Get install php5-mysql
Sudo apt-Get install mysql-server-5.0 for MySQL-common mysql-Admin
2. configuration file PHP. ini
3. Modify the/var/WWW directory permission sudo chmod 777/var/WWW at this time/var/WWW is the root directory of the server.
4. Create test. php content in/var/WWW as <? PHP phpinfo ()?> Test
2. Configure Wamp in win7
Go to http://tech.163.com/06/0206/11/299amblt0009159k.html, and modify your situation.
Prepare the software first:
Apache official: http://apache.freelamp.com/httpd/binaries/win32/httpd-2.2.15-win32-x86-no_ssl.msi
More versions are available here;
PHP official: http://cn2.php.net/get/php-5.2.13-Win32.zip/from/this/mirror
More images, more version downloads;
MySQL official: http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-essential-5.1.45-win32.msi/from/http://mysql.cdpa.nsysu.edu.tw/
More images and more versions.
1. install Apache. A common website server is successfully configured.
Note: It is best to copy the downloaded image to the C drive (System Disk) for installation. Otherwise, you will not be authorized to install the image.
1. According to the installation wizard, the green icon below should appear in the status bar in the lower right corner, indicating that the apache service has started running. You can enter 127.0.0.1 in the address bar for testing.
2. configure the Apache server so that it can better serve us. In fact, if not configured, The apache2/htdocs folder under your installation directory is the default root directory of the website, put the file in it. Open edit the Apache httpd. conf configuration file
Note: Change the file address "/" to "/" in Apache.
(1) You can change DocumentRoot to your working directory.
(2) Set directoryindex (default file name) to index. php index.html
(3) Remove "#" in front of "# defaultlanguage nl" and change "NL" to the language you want to force the output. The Chinese name is "ZH-CN". Save and close the language.
2. PHP installation and module-based integration of PHP and Apache enables your website server to support PHP server scriptsProgram
Right-click and decompress the downloaded PHP installation file.
Rename the "php. ini-Dist" file to "php. ini", and remove ";" before "; Extension = php_mysql.dll" and other required modules.
Add the PHP root directory and ext directory to the path of the environment variable.
Open the Apache configuration file and write
Loadmodule php5_module D:/softwaretool/php-5.2.13-Win32/php5apache2_2.dll
Phpinidir "D:/softwaretool/php-5.2.13-Win32"
Addtype application/X-httpd-PHP. php
(My PHP root directory is D:/softwaretool/php-5.2.13-Win32)
Iii. MySQL installation, combined with PHP and Apache
Open the downloaded mysqlinstallation file, decompress it, and run “setup.exe. The installation and configuration are complete according to the wizard.
4. Install phpMyAdmin or MySQL-Gui-tools as needed
5. Configure the development environment Zend studio + Aptana in win7
ReferenceHttp://www.zendstudio.net /? P = 837
Download and install Zend stutio http://downloads.zend.com/studio-eclipse/7.1.2/ZendStudio-7.1.2.exe
Download Aptana plug-in http://d3lq98emif3szr.cloudfront.net/tools/studio/plugin/install/studio/2.0.4.1268158907/com.aptana.ide.feature.studio-2.0.4.1268158907-5-7757FJ5398991HN1HIHtdfxN7r.zip
Open Zend studio 7.1, select install new software under the Help menu, click Add, click archive in the pop-up dialog box, And Then browse the downloaded ZIP file, complete the installation according to the wizard.
Go to preferences and change all the default editors of JavaScript, CSS, and HTML to Aptana, so that you can easily use Aptana!