This is a discussion on Apache Server doesn't seem to see PHP - What's Wrong? within the Apache Web Server forums, part of the Web Server and Related Forums category; My machine is a Window box running Win XP. I thought I've done all corerctly to configure both PHP ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
My machine is a Window box running Win XP. I thought I've done all
corerctly to configure both PHP 5.0 and Apache 2.2 4 only to see Firefox display the PHP/HTML code rather than content, and Internet Explorer is even worse ---not displaying anything at all. This is what I've done to configure both software: PHP ------- 1. I have unzipped intp C::\PHP folder a PHP 5.0. In the php.ini file, 2. I setup the PHP extension to point to the correct directory, i.e. extension_dir = "C:\PHP\ext"; 3. Copied a copy of the file (php.ini) to Windows directory; and, 4. Added the path information to the System Variable Apache: ------------ I wanted to configure it to load the PHP interpreter as an Apache module, so what I did was 1. Add the these lines LoadModule php5_module "c:/php/php5apache2.dll" 2. and: AddType application/x-httpd-php .php When I encountered the problem I stated at the benning, I stopped the Appache Server, then restart again, and in the DOS window it displays an error saying Cannot Load C:/PHP/php5apache2.dll into server: The specified module could not be found. Well, I don't know what to do here. Can anybody help? thank you. Jofio |
|
|||
|
For Windows, use Xampp:
http://www.apachefriends.org/en/xampp.html For Linux, use Xampp for Linux (Lampp): http://www.apachefriends.org/en/xampp-linux.html Makes configuring Apache, PHP, MySQL, and FTP easy. BK |