Installation of phpMyAdmin in Windows 98 _ PHP Tutorial

Source: Internet
Author: User
Install phpMyAdmin in Windows 98. Software: www.php.net outside China, www.phpchina.com in China, phpuser.com, etc. decompress the package to the c: php4 directory. copy php4ts. dll, msvcrt. dll to C: windowss software obtained: Foreign http://www.php.net; domestic http://www.phpchina.com, http://phpuser.com and so on get compressed package after decompression 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 easily 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; agree to use ASP-style tags <%>
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: php4 est
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: php4 est, 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.
Find similar lines in httpd. conf and add them to them so that you can easily maintain them. 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!

Focus on setting in the PHP. ini file
Browscap = C: windowssysteminetsrvrowscap. ini
If no settings are set, PHP4 cannot run.
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

Decompress the compressed package to c: php4 Directory. copy php4ts. dll, msvcrt. dll to C: windowss...

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.