Home >Backend Development >PHP Tutorial >How to install phpMyAdmin under Windows 98_PHP Tutorial

How to install phpMyAdmin under Windows 98_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 10:47:311045browse

Software acquisition: foreign http://www.php.net; domestic http://www.phpchina.com, http://phpuser.com, etc. After obtaining the compressed package, unzip it to the c:php4 directory Next.
Copy php4ts.dll, msvcrt.dll to C:windowssystem
Rename php.ini-dist to php.ini and copy it to c:windows
Editing this file is very 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
If so, remove the semicolon in front of it; if not, add it yourself. It is recommended not to change this part first, otherwise errors may easily occur.
Appears here:

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

Just because invalid or non-existent php_*.dll files are specified in the php.ini file, loading these error messages may also cause the browser to not be able to find the server. After a long and arduous wait, IE will give you Say:
Brother! The server cannot be found! Please send me my condolences...Haha!
It’s that simple, there’s more,
If the WEB Server you are using is PWS, then there is one more thing to change!
browscap = C:windowssysteminetsrv rowscap.ini
And modify the PWS-php4.reg file
".php"=" [PUT PATH HERE]php4isapi.dll"
Change to
".php"="C:php4 php4isapi.dll"
Just indicate the location of the php4isapi.dll file
You can also add other suffixes, 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 to execute, and write to the registry!
Other detailed settings:
asp_tags = On ; Allow the use of ASP style tags<% %>
upload_max_filesize = 2097152;Maximum bytes of uploaded files
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 parts are given here, and the settings for other contents are left to everyone to explore by themselves!
include_path = path1;path2;path3....
When you use the include function, only files in the specified directory can be included.
About how to set doc_root and user_dir.
After setting doc_root, only the php files under the doc_root directory can be executed!
For example doc_root=c:php4 est
Then the PHP file can only be interpreted and executed if it is placed in this directory.
When user_dir is not set, doc_root is read from the control file.
For example, the URL http://localhost/doc.php3 opens the doc.php3 file under c:php4 est instead of c:program
files....doc.php3 file below htdocs. Regarding the setting of user_dir, I still haven’t figured it out. I hope experts can give me some advice!
2.Install APACHE1.3.12

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

The installation of the software is very simple. After downloading, just double-click to install.
Configure the httpd.conf file in the conf directory.
#BindAddress *Change to BindAddress 127.0.0.1
#Servername new.host.name changed to Servername localhost
The reason for similar errors may be that the servername is not specified.
"cannot determine local host name,use servername to set it manually"

Okay, your apache is ready to run!
Run your apache. It should show:
Apache/1.3.12 (Win32) running...
Note, it is assumed that your APACHE is installed in the default directory:
C:/Program Files/Apache Group/Apache
Otherwise, the serverroot and documentroot in the document must also be changed. For example, if you install it under c:apache. Then
serverroot = c:/apache docmentroot = c:/apache/htdocs
Other options follow suit
If there are other server programs installed on your machine, and you want them to work together for you, then you must change the port. The default is 80, you can change it to 81 or 8080. Do not use other commonly used ports such as 21 ,23,
25 etc. (nonsense^_^).

Okay, let’s let your APACHE support PHP4. Add the following sentences, and it’s basically all set!

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"

;Do not write
;Action application/x-httpd-php4 "c:/php4/php.exe"
;Otherwise an error will occur.
Find similar lines in httpd.conf and add them to make maintenance easier. Regarding the default startup document: the default startup document of apache is index.html DirectoryIndex
index.html change it to your desired default startup document
To support more documents, go like this:
DirectoryIndex index.htm
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
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 acquisition: WIN98 CD-ROM add-onspws directory. Haha, just setup it directly, no configuration required! After the installation is complete, run PWS, click Advanced to create a virtual directory, and click Edit Properties to modify its properties. The default is to read and there is an execution between the script, put a check in front, and select it. The PHP4 file under this directory is It's ready to run!

Pay attention to setting
in the PHP.INI file browscap = C:windowssysteminetsrv rowscap.ini
If there is no setting, it is impossible for PHP4 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 after completion. At this time, mysql
It has been installed in your system. The default directory is: c:mysql
There is a file my-example.cnf under c:mysql. Rename it to my.cnf and copy it to c:.
No modification required!!!
You can add username, password, login host, database and port information!
Go to the c:mysql in directory. Double-click mysqld to execute! Under normal circumstances, the DOS window flashes by. It is recommended to open an MS-DOS window and enter

at the c:mysql in> prompt.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632855.htmlTechArticleSoftware acquisition: foreign http://www.php.net; domestic http://www.phpchina.com , http://phpuser.com, etc. After getting the compressed package, unzip it to the c:php4 directory. Copy php4ts.dll, msvcrt.dll to C:windowss...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn