Lamp-Linux, Apache, MySQL, PHP

Source: Internet
Author: User
1.install apache2.install mysql3.and create a PHP folder on the C drive to decompress the downloaded PHP package (php-5.1.6-win32.zip. 4. set path "C:/PHP" "C:/PHP/EXT" 5. configure PHP. INI: Put PHP in the C:/PHP folder. ini-recommended: renamed PHP. INI open PHP. INI, find extension_dir = ". /"extension_dir =" C:/PHP/EXT ", find; Extension = php_gd2.dll,; Extension = php_mbstring.dll,; Extension = php_mysql.dll, put the three rows before "; "Remove all, make these three lines take effect, that is, let your PHP support MySQL components. find the session in the C:/PHP/create folder session_tmp. the row save_path is set to session. save_path = "C:/PHP/session_tmp" is used to store the generated session files in your directory c:/PHP/session_tmp to save PHP. ini6. configure the Apache configuration file httpd. in the conf file, find DocumentRoot "C:/programfile/Apache/apache2/htdocs" (Note: This is the default web document folder of Apache, now we set it to the Web file read by Apache in E:/httproot we just created.) Change C:/programfile/Apache/apache2/htdocs to E: /httproot find <directory "C:/programfile/Apache/apache2/htdocs"> and change C:/programfile/Apache/apache2/htdocs to E:/httproot to find directoryindex index.html. vaR adds index.htm index. PHP adds LoadFile C:/PHP/php5ts at the end. dllloadfile C:/PHP/libmysql. dllloadmodule php5_module C:/PHP/php5apache2_2.dlladdtype application/X-httpd-PHP. phpphpinidir C:/PHP
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.