In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install and configure Apache+PHP+Mysql+Zend on Windows XP". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install and configure Apache+PHP+Mysql+Zend on Windows XP.
Required software:
Apache_2.0.58-win32-x86-no_ssl.msi > http://archive.apache.org/dist/httpd/ is available in all versions.
Php-5.1.6-Win32.zip
ZendStudioServer-5.1.0a-Windows-i386.exe
Mysql-5.0.19-win32
PhpMyAdmin-2.9.1
Installation:
Apahce+PHP+MySQL installation configuration
1. Install apache_2.0.58-win32-x86-no_ssl and follow the prompts to set the program installation path as needed (my path is d:/usr/). After the installation is completed, if you move the APACHE directory, the parameters under apache2 must be changed. Modify the configuration file httpd.conf under the apache configuration directory CONF. This example is d:/usr/apache2/conf/httpd.conf.
(1) Program directory of ServerRoot:apche (d:/usr/apache2 in this example)
(2) ServerAdmin: E-MAIL of the server administrator
(3) port: service port. Default is 80.
(4) ServerName: the network identity of the computer must be consistent with the reality, otherwise some unexpected problems may occur.
(5) DocumentRoot: default webpage file directory (d:/usr/www in this example)
(6) DirectoryIndex: default page, add php support, (this example is as follows)
DirectoryIndex index.html index.htm index.php index.php3 index.php4
(7) ScriptAlias (script alias), directory of the CGI program
ScriptAlias / cgi-bin "d:/usr/apache2/cgi-bin"
two。 Install php-5.1.6-Win32 to decompress and customize the decompression path (in this case, d:/usr/php5).
3. Configure PHP and Apache to parse the php program.
PHP configuration:
Rename "php.ini-dist" in the PHP directory to "php.ini" and set the
The php.ini is modified as follows:
(1) doc_root: it is the same as APACHE's HTDOCS. This example is d:/usr/www.
(2) extension_dir in this case is d:/usr/php5/ext
(3) include_path in this case is d:/usr/php5/includes
(4) remove the semicolon before extension=php_mysql.dll and copy the LIBMYSQL.DLL file in the php directory to c:\ winnt\ system32
Apache configuration:
Add the following statement at the end of the APACHE configuration file to support the php program:
ADDlanguage zh-cn .cn
Defaultlanguage zh-cn
AddDefaultCharset GB2312
ScriptAlias / php/ "d:/usr/php5/"
LoadFile d:/usr/php5/php5ts.dll
LoadModule php5_module d:/usr/php5/php5apache2.dll
PHPINIDir d:/usr/php5/php.ini
AddType application/x-httpd-php .php .php3 .php4 .phtml
AddType application/x-httpd-php-source .phps
Modify the contents above if they are inconsistent with the actual contents.
4. Restart the Apache server and write the following statement in the editor:
Save the file name "test.php" to the user's home directory (d:/usr/www in this case), then open the browser and browse to: http://localhost/test.php. The basic information of PHP indicates that the configuration is successful.
5. To install MySQL-5.0.19-win, press "next" all the time to install successfully, then execute "winmysqladmin.exe" in the C:\ mysql\ bin directory, and the initial information surface of mysql appears, indicating that the installation is successful.
6. Install phpMyAdmin
Extract phpMyAdmin-2.6.0-pl2.zip to a directory. This example is d:/usr/phpMyAdmin, and enter the directory configuration file config.inc.php.
Change $cfg ['PmaAbsoluteUri'] to http://localhost/phpMyAdmin
Modify $cfg ['blowfish_secret'] =' admin'
Modify $cfg ['Servers'] [$I] [' auth_type'] = 'cookie'
Modify $cfg ['Servers'] [$I] [' user'] to MySQL user
Change $cfg ['Servers'] [$I] [' password'] to MySQL password
The above are the basic contents of phpMyAdmin configuration, and other configurations are carried out as needed.
Edit the apache configuration file httpd.conf to add the following statement at the end:
Php_admin_flag engine on
Php_admin_flag safe_mode off
Alias / phpMyAdmin "d:/usr/phpMyAdmin"
DirectoryIndex index.php
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
Php_admin_flag engine on
Php_admin_flag safe_mode off
Php_admin_value open_basedir none
Php_admin_value open_basedir "d:/usr/phpMyAdmin"
The above directory path part is modified according to the actual need.
7. Test apache+php+mysql
Enter http://localhost/phpMyAdmin in the ie address bar. If the phpMyAdmin message appears, the configuration is successful.
8. Finally install ZendStudioServer-5.1.0a-Windows-i386.exe
Thank you for reading, the above is the content of "how to install and configure Apache+PHP+Mysql+Zend on Windows XP". After the study of this article, I believe you have a deeper understanding of how to install and configure Apache+PHP+Mysql+Zend on Windows XP, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.