How to install Apache (PWS) php4mysqlphpmyadmin under Windows 98

Source: Internet
Author: User
Tags copy execution ini mysql php file php3 file require phpmyadmin
Author: Tony Reeves ()
Publish Date: 08/08 16:52
1. Install PHP4

The software obtains: The foreign http://www.php.net, the domestic http://www.phpchina.com,http://phpuser.com and so on obtains the compression package to extract after the C:\PHP4 directory.

Copy Php4ts.dll,msvcrt.dll to C:\windows\system
Rename php.ini-dist to php.ini copy to C:\windows\
Editing this file is simple, just change a few options.
Extension_dir = C:\PHP4
Extension =php_ldap.dll
Extension =php_zlib.dll
Extension =php_calendar.dll
Extension =php_exif.dll
Extension =php_ftp.dll
Extension =php_mssql70.dll
Extension =php_imap.dll
Have to remove the front semicolon, did not add themselves. It is recommended that you do not change this section first, or you will be prone to errors.
Here appears:

x-powered-by:php/4.0.0
Content-type:text/html

Just because you specified that an invalid or nonexistent Php_*.dll file is loaded in the php.ini file, loading these error messages can also cause the browser to not find the server. After a long and arduous wait, ie said to you:
Brother! Unable to find the server! Ha ha!
It's as simple as that.
If you use a Web server that is PWS, change a place!
Browscap = C:\windows\system\inetsrv\browscap.ini
and modify the Pws-php4.reg file.
". php" = "[Put PATH Here]\\php4isapi.dll"]
To
". php" = "C:\\php4\\php4isapi.dll"
Just point to the location of the Php4isapi.dll file
You can also add to the other suffix name, the specific file is:
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
\w3svc\parameters\script Map]
". php" = "C:\\php4\\php4isapi.dll"
". PhP3" = "C:\\php4\\php4isapi.dll"
". PhP4" = "C:\\php4\\php4isapi.dll"
". phtml" = "C:\\php4\\php4isapi.dll"

Save exit, double-click Execute, write to registry!
Other detail settings:
Asp_tags = on; Allows you to use ASP-style markup <%%>
Upload_max_filesize = 2097152; maximum bytes of uploaded file
Mysql.default_host = localhost;
Mysql.default_user = root;
Mysql.default_password= yourpasswd;
The above settings for MySQL can be done in my.cnf. Here only give a few parts, the other content of the setting depends on everyone to explore!
include_path = \path1;\path2;\path3 ....
When you use the Include function, only files in the specified directory can be included.
About the method of setting up Doc_root and User_dir.
After setting the Doc_root, only the PHP files below the Doc_root directory can be executed!
Like Doc_root=c:\php4\test.
Then the PHP file can only be interpreted and executed under this directory.
When User_dir is not set, the controlled file reads the doc_root.
such as http://localhost/doc.php3 this URL, open the c:\php4\test\ below doc.php3 file, not c:\program
Files\....\htdocs\ the doc.php3 file below. About the setting of User_dir, I still did not get clear, hope Master advice!
2. Install APACHE1.3.12

Software acquisition: Http://www.apache.org;http://www.phpchina.com;http://phpuser.com;http://www.phpsite.net.

Software installation is very simple, download after the direct double-click to perform the installation.
Configure the httpd.conf file in the Conf directory.
#BindAddress * Changed to bindaddress 127.0.0.1
#Servername new.host.name changed to Servername localhost
A similar error may occur because the ServerName is not specified.
"Cannot determine local host name,use servername to set it manually"

Well, your Apache is ready to run!
Run your Apache. Should show:
apache/1.3.12 (WIN32) running ...
Note that this assumes that your Apache is installed in the default directory:
C:/Program Files/apache Group/apache
Otherwise, ServerRoot and Docmentroot in the document will be changed as well. For example, you are installed under the C:\apache.
ServerRoot = C:/apache Docmentroot = C:/apache/htdocs
Other options by analogy
If your machine also has other server programs installed, and you want them to work together for you then you have to change port, the default is 80, you can change to 81 or 8080. Do not use other commonly used ports such as 21, 23,
25 and so on (nonsense ^_^).

OK, here's your Apache to support PHP4. Add the following so a few words, basically can!

scriptalias/php4/"c:/php4/"
AddType application/x-httpd-php4. php
AddType APPLICATION/X-HTTPD-PHP4. php3
AddType APPLICATION/X-HTTPD-PHP4. PhP4
Action application/x-httpd-php4 "/php4/php.exe"

; Don't write
; Action application/x-httpd-php4 "C:/php4/php.exe"
, otherwise there will be an error.
Find similar rows in httpd.conf, add them in, so it's easier to maintain some. About the default startup document: Apache's default startup document is Index.html DirectoryIndex
Index.html change it to the default startup document you want.
Want to support more documents like this:
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex INDEX.PHP4
It's done! Write a test file:

?
Phpinfo ();
?>
Save As Info.php

Enter http://localhost/info.php in the browser
Don't forget to run Apache first!
3. Install PWS
Software obtained: WIN98 CD ADD-ONS\PWS directory. Oh, direct setup on it, no need to configure! After installation, run PWS, point advanced to set up a virtual directory, click Edit Properties to modify its properties. Default to read and script in the middle there is an execution, tick on the front, and select it. The PHP4 file below this directory can be run!

Note Set in the php.ini file
Browscap = C:\windows\system\inetsrv\browscap.ini
If not set, PHP4 is impossible to run.
4. Install MySQL (mysql-3.23.21-beta-win)

Software acquisition: Foreign http://www.mysql.com, domestic http://www.phpchina.com;http://phpuser.com,http://www.phpsite.net.

Run the setup file to perform the installation, there should be no prompts when the MySQL
has been installed into your system, the default directory is: C:\mysql
Under C:\mysql There is a file my-example.cnf renamed MY.CNF Copy to C:\ below.
No need to modify!!!
Can add user name, password, login host, database and port information!
to the C:\mysql\bin directory. Double-click mysqld Execution! The DOS window is normally flashed through. It is recommended that you open an MS-DOS window to enter at the c:\mysql\bin> prompt
Mysqld
Execute the MySQL daemon!
[If there is no mysqld there should be mysqld-shareware.exe to execute it as well]
If there is no hint, there is no error! Your MySQL has already started running! You can try typing a few commands to test it:

C:\mysql\bin>mysqladmin Ping
Mysqld is alive
C:\mysql\bin>mysqlshow
+-----------+
| Databases |
+-----------+
| MySQL |
| Test |
+-----------+


The above is the normal situation!
Enter MySQL for login!

C:\mysql\bin>mysql C:\mysql\bin>mysql-u Root-p
Welcome to the MySQL Monitor. Commands End With; or \g.
Your MySQL Connection ID is 8 to server Version:3.23.21-beta-debug
Type ' help ' for help.
Mysql>
Remember to run mysqld before you log on, or you'll get the wrong hint:

Can ' t connect to MySQL server on ' localhost ' <10061>
Well, have you ever met him? Anyway, when I started running MySQL, that was it!
5. Installation of phpMyAdmin VER: (phpmyadmin_2.1.0)

This is a PHP-written application, directly copied to the executable PHP directory to run it.
C:/Program Files/apache group/apache/htdocs/phpmyadmin/
Modify the Config.inc.php3 file to

Require ("english.inc.php3");
To
Require ("chinese_gb.inc.php3");

If your e-text is good enough, you can not change it! Anyway, my e-text is ^@#^%^%$&^&^*@$#@$#&*&*&* (() (#@!

Oh!
OK, perform the task of setting up a table, see good use!!!
I've already finished, this is my practice! The completed debugging environment is OK! I haven't found any problems yet! Because I am also a beginner PHP, so the error in the article is inevitable, hope that the experts to criticize a lot!


If you have trouble debugging in a similar environment, please refer to my method to do, if there is any problem, pls contact me!

My_id:tony Reeves; Reeves etc ...
my_oicq:438937
E-mail:lovesally@126.com
homepg:http://loveline.soyou.edu.cn PHP written in the website, Love bamboo Leaves
In addition, it is about php,mysql and other software to obtain the way, it is recommended to their development group to download the website, speed! Absolutely no slower than the domestic site! And I found that the domestic PHP site for these software updates are relatively slow! For example, phpMyAdmin, now version is 2.1.0, the domestic site is mostly 2.0.1 hehe!
It's so far!
Well, good luck to all of you!


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.