Install Apache (PWS) PHP4MySQLphpMyAdmin in Windows 98 _ PHP Tutorial

Source: Internet
Author: User
Tags php3 file
Install Apache (PWS) PHP4MySQLphpMyAdmin in Windows 98. Author: TonyReeves () Published on: 080816: 521. install PHP4 software obtained: www.php.net abroad; domestic www.phpchina.com, phpuser.com, etc. decompress the package to author: Tony Reeves ()
Posting Date: 08/08
1. install PHP4

Software obtained: Foreign http://www.php.net; domestic http://www.phpchina.com, http://phpuser.com and so on get compressed package decompress to c: php4 directory.

Copy php4ts. dll and msvcrt. dll to C: windowssystem.
Rename php. ini-dist to php. ini and copy it to c: windows.
Editing this file is simple. you only need to 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
If yes, remove the semicolon. if not, add the semicolon. We recommend that you do not change this part first, otherwise errors may occur.
Here:

X-Powered-By: PHP/4.0.0
Content-type: text/html

It is because in php. invalid or nonexistent php _ * is loaded in the INI file _*. dll file, loading these error messages may also cause the browser to fail to find the server. after a long and hard wait, IE said to you:
Brother! The server cannot be found! Sorry, by the way... haha!
It's so easy,
If the WEB Server you are using is PWS, you need to change the location!
Browscap = C: windowssysteminetsrvrowscap. ini
And modify the PWS-php4.reg file.
". Php" = "[put path here] \ php4isapi. dll"
Change
". Php" = "C: \ php4 \ php4isapi. dll"
Just point out the location of the php4isapi. dll file
You can also add other extension names. the specific file is:
REGEDIT4
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServices
W3svcparametersScript Map]
". Php" = "C: \ php4 \ php4isapi. dll"
". Php3" = "C: \ php4 \ php4isapi. dll"
". Php4" = "C: \ php4 \ php4isapi. dll"
". Phtml" = "C: \ php4 \ php4isapi. dll"

Save and exit. double-click the operation and write it to the registry!
Other details:
Asp_tags = On; ASP-style tags are allowed <%>
Upload_max_filesize = 2097152; maximum size of the uploaded file
Mysql. default_host = localhost;
Mysql. default_user = root;
Mysql. default_password = yourpasswd;
The above settings for mysql can be completed in my. cnf. only a few sections are provided here, and the settings for other content depend on your own!
Include_path = path1; path2; path3 ....
When you use the include function, only files in the specified directory can be included.
How to set doc_root and user_dir.
After doc_root is set, only php files under the doc_root directory can be executed!
For example, doc_root = c: php4est
The PHP file can be interpreted and executed only in this directory.
When user_dir is not set, the controlled file reads doc_root.
For example, http: // localhost/doc. php3 opens the doc. php3 file under c: php4est, instead of c: program.
Files... the doc. php3 file under htdocs. I still haven't figured out the setting of user_dir. hope you can advise me!
2. install APACHE1.3.12

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

The software installation is simple. after downloading the software, double-click it to install it.
Configure the httpd. conf file in the conf directory.
# Change BindAddress * to BindAddress 127.0.0.1
# Change Servername new. host. name to Servername localhost
A similar error may occur because servername is not specified.
"Cannot determine local host name, use servername to set it manually"

Now, your apache is ready to run!
Run your apache. it should show:
Apache/1.3.12 (Win32) running...
Note: assume that your APACHE is installed in the default directory:
C:/Program Files/Apache Group/Apache
Otherwise, the serverroot and docmentroot files must be changed. For example, if you install it in c: apache.
Serverroot = c:/apache docmentroot = c:/apache/htdocs
Other options and so on
If your machine has other server programs installed and you want them to work for you, you must change the port to 80 by default. you can change it to 81 or 8080. do not use other commonly used ports such,
25 ).

Okay. let's let your APACHE support PHP4. add the following sentence, which is basically enough!

ScriptAlias/php4/"C:/php4 /"
AddType application/x-httpd-php4. php
AddType application/x-httpd-php4. php3
AddType applications/x-httpd-php4. php4
Action application/x-httpd-php4 "/php4/php.exe"

Do not write
; Action application/x-httpd-php4 "c:/php4/php.exe"
Otherwise, an error occurs.
Similar lines are found in httpd. conf and added to them to facilitate maintenance. for the default startup document, the startup document of apacheis index.html DirectoryIndex.
Change index.html to the default startup document you want.
To support more documents, follow these steps:
DirectoryIndex index.htm
DirectoryIndex index. php
DirectoryIndex index. php3
DirectoryIndex index. php4
Finished! 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: WIN98 CD add-onspws directory. You just need to directly set up, no need to configure! After the installation is complete, run PWS. click advanced to create a virtual directory and click edit attribute to modify its properties. by default, there is another execution in the middle of the read and script. check it and select it. the PHP4 file under this directory can be run!

Note: in the PHP. ini file, set
Browscap = C: windowssysteminetsrvrowscap. ini
PHP4 cannot run without configuration.
4. install MYSQL (mysql-3.23.21-beta-win)

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

Run the setup file to execute the installation. after installation, there should be no Prompts. in this case, mysql
It has been installed in your system. the default directory is c: mysql.
In c: mysql there is a file my-example.cnf renamed my. cnf copy to c: below.
No modification required !!!
You can add username, password, host login, database and port information!
To c: mysqlin Directory. double-click mysqld to execute! Normally, the DOS window is flashing. we recommend that you open a MS-DOS window and enter at the c: mysqlin> prompt
Mysqld
Run the MYSQL daemon!
If mysqld-mongoware.exe does not exist, mysqld-mongoware.exe should execute the same command.]
If no prompt is displayed, no error is returned! Your mysql has started running! You can try to run the following commands:

C: mysqlin> mysqladmin ping
Mysqld is alive
C: mysqlin> mysqlshow
+ ----------- +
| Databases |
+ ----------- +
| Mysql |
| Test |
+ ----------- +


The above is normal!
Enter mysql to log on!

C: mysqlin> 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 logging on. Otherwise, the following error occurs:

Cant connect to MySQL server on localhost <10061>
Well, have you ever met? This is what I did when I started running mysql!
5. install Phpmyadmin VER :( phpMyAdmin_2.1.0)

This is an application written in php, which can be directly copied to the directory where php can be executed. for example
C:/program files/apache group/apache/htdocs/phpmyadmin/
Modify the config. inc. php3 file and

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

If your E text is good enough, don't change it! Anyway, my E file is ^ @ # ^ % $ & ^ * @ $ #&*&*&*(()(#@!

Haha!
Now, execute the table creation task to see if it is easy to use !!!
I have already finished speaking. this is my practice! The debugging environment can also be built! I have not

Author Tony Reeves () Published on: 08/08 1. install PHP4 software obtained: Foreign http://www.php.net; domestic http://www.phpchina.com, http://phpuser.com, etc. after obtaining compressed package decompress...

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.