|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Installed php5, now getting apache error
I just installed the latest versions of PHP and MySQL , my goal is to learn how to use them for web page content. The machine is running windows 2000 pro and I already have Oracle 9i installed on it so I thought I'd just use the existing Apache 1.1? server. During the PHP install it asked for the apache location, so I pointed it at c:\oracle\ora92\apache\apache. Now when I go to start the web server it says it is having trouble with these lines in the httpd.conf:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:\\Program Files\\PHP\\" LoadModule php5_module "C:\\Program files\\PHP\\php5apache.dll" #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL I notice that in another install where I just have PHP 5 and Oracle loaded, but with the 10G apache (1.3) these same lines are nowhere to be found in the httpd.conf file. Are the double //'s the problem? Or did I make a mistake somewhere during the PHP install? thanks! |
|
#2
|
||||
|
||||
|
The server module version of PHP, php5apache.dll, requires at least Apache 1.3.x.
You either need to use a more up to date version of Apache or you can try to install PHP as a CGI wrapper instead of an Apache server module. |
|
#3
|
|||
|
|||
|
Thanks for the reply..
I am a neophyte here so I have no idea what using php as a server wrapper is or how to do it, so I guess my options are to install a newer version of Apache or an older version of PHP. Or alternatively, install MySQL on my other already crowded Oracle 9i/10G machine that already has PHP running with apache.. If I install a newer version of Apache then I am faced with getting all of my Oracle components working with it. If I want to install an older version of PHP is 4.x sufficient? How do I uninstall version 5, does the add/remove programs do a clean enough job? |
|
#4
|
||||
|
||||
|
The module version of PHP4 has the same Apache version restrictions as for PHP5. To install either PHP4 or PHP5 on your Apache 1.1 system would require you to read and follow the PHP installation instructions for the CGI installation.
Apache is just a web server. Aside from version restrictions, it does not really care which version of PHP is installed and it has no knowledge of or interaction with any database server. As long as the version of PHP and the specific database client library that it is using is new enough to access the version of database you are using, you can access any number of database servers. You don't need a different web server/php installation for each database server, unless you want to do it this way. The database server does not need to be running on the same localhost as the web server/php. If your existing Apache 1.3/PHP system and the system where you installed mysql are accessible to each other, you can simply reference the mysql server by specifying the hostname or IP address of it in any PHP mysql_connect() function calls. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Installed php5, now getting apache error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|