Home > Article > Backend Development > Tutorial on installing PHP4+ PERSONAL ORACLE8I_PHP under WIN98
Install PHP4+ PERSONAL ORACLE8I under WIN98
Personal oracle8i is a mature version of the ORALCE database, which is simply a condensed version of ORACLE8i. Allows programmers or other system personnel to develop or learn ORACLE on a single machine instead of on the enterprise's database, and does not require an advanced configuration environment. It is a very suitable environment for friends who want to learn ORACLE.
Personal oracle8i's final system requirements are: 32MB of memory and 85MB of disk space.
Related downloads:
APACHE1.3.14: www.apache.org
php4.0.3 pl1: www.php.net
Personal Oracle8iR2(8.1.6): www.oracle.com
My machine configuration is MMX166, 64MB EDO memory, 10GB hard disk.
The operating system is: WIN98SE (OEM)
I tried the D version of win98se, but Personal ORACLE8i's NET8 has been unable to be installed, so I advise you not to use the D version of WIN98 to install it.
1. Install personal oracle8i. Unzip the downloaded ZIP file and run setup. After a moment, you will see the PERSONLAL ORACLE installation interface. Click Next, enter the ORACLE installation path and HOME NAME, and select typical installation. Here There will be a progress bar in the upper right corner of the installation interface, and a warning bar will pop up at about 60%, saying that the memory is less than 96MB, something may go wrong, ignore it, continue, okay, when the next screen appears, ORACLE8i starts to install . If any error message appears during the installation process, saying that the file cannot be written, ignore it and press Ignore. This will have no impact on the database installation. After the database installation is completed, the net8 configuration assistant, database setting assistant and other tools will be automatically executed to set up the client and database. You will need to enter the global name and SID of the database. We set it to "TEST". At this time, you need to be patient. It takes a long time to complete the database setup. Finally, when it prompts that Oracle is successfully installed, the installation is complete.
2. Install PHP4.0.3pl1: Extract the downloaded ZIP file to a directory, such as "c:apachephp", copy the php.ini-ist file, and modify the following columns:
Specify path:
doc_root=c:apachehtdocs
extension_dir=c:apachephpextensions
Remove the ";" sign in front of the following two lines:
extension=php_oci8.dll
extension=php_oracle.dll
3. Install APACHE 1.3.14: Run the installation file directly after downloading and follow the prompts to install.
Add the following lines to .confhttp.conf:
ScriptAlias /php/ "C:/apahce/php/"
Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
4. Test apahce: Start the APACHE service in the start menu, enter 127.0.0.1 in the IE address bar, and see the APACHE welcome screen, indicating that APACHE is working properly.
5. Test PHP: Using a text editor, edit the PHP file:
//The file name is info.php
phpinfo();
?>
Enter 127.0.0.1/info.php in the IE address bar, and you can see the environment parameters of PHP. If you find support for oricle and orci8, it means that PHP already supports ORACLE and OCI8.
6. Test connection to ORACLE:
First, we must configure the ORACLE client. We can use NET8 CONFIGURATION ASSISTANT to configure it. After the ORACLE network side is successfully configured, use the following program to test:
//The file name is test.php.
$conn=ocilogon("system","manager","test");
if($conn)
print "oracle database connection successful";
else
print "oracle database connection failed";
?>
If the program returns a success flag, the connection is successful. If you want to connect to a remote database, you only need to configure it in NET8 CONFIGURATION ASSISTANT.