Click to See Complete Forum and Search --> : php-apache installation porblems.
skunkfacewoody
07-09-2006, 07:14 PM
I hope for the sake of my sanity and the safety of my computer someone can help. I have been trying to install php5 to use with apache2 and windows xp. Apache installs fine and when you look up localhost you see the apache welcome screen no problems. Then the fun begins I download php5 save it to C drive under PHP5 move and rename the php.ini file to WINDOWS. Then move php5ts.dll to WINDOWS-SYSTEM32. Edit the apache config file with the usual LoadModule and AddType info. Then create phpinfo file store it in htdocs in apache. When I try to access it in IE, Firefox or Opera all I get is the error 404 file not found message. If you load a html page into the browser this works fine.
I have restored my computer numerous times to rectify the problem but every time same message. No matter where you move the files always the same. The sad thing is I had php5 and apache running on the computer fine before.
PLEASE SOMEONE HELP ME
bradgrafelman
07-09-2006, 07:23 PM
Well, first I'd like to say welcome to PHPBuilder and I hope that we can help you out. Since many of us regulars that frequent the board (at least, I hope I have the privilege of associating myself with the true regulars) have specific areas they are stronger in, this board has multiple categories to sort posts into. I believe this question would be better suited for the Install (http://www.phpbuilder.com/board/forumdisplay.php?f=7) forum, but for the time being don't worry about re-posting or anything of that sort. (In fact, I believe Weedpacket just moved it for you)
You outlined the procedure that you're following, but... where exactly did you find these instructions? Are you following the PHP manual? If not, I would definitely recommend you check out this manual page: install.windows.apache2. If you'll notice, it tells you to follow the "Manual Installation" instructions, which can be found here: install.windows.manual.
Upon reading the Manual Installation steps, you'll see that moving DLLs to the system directory and whatnot is not recommended. Follow the instructions found on those two pages and let us know if you're still having problems.
Also, what version of Apache are you running?
Houdini
07-09-2006, 07:27 PM
Have you ever tried XAMPP or WAMP, they will install flawlessly within minutes of download and save you all the frustration and headaches, or maybe someone can give you step by step stuff to check like this link to an Apache Installation (http://us3.php.net/manual/en/install.windows.apache2.php). Good luck.
Weedpacket
07-09-2006, 07:31 PM
rename the php.ini file to WINDOWS. Then move php5ts.dll to WINDOWS-SYSTEM32I've certainly never had to do this. With php.exe in c:\php I have php.ini and php5tx.dll there as well; then in httpd.conf I have (among much else, of course):LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"
And that's everything Apache needed to know about PHP.
But yes, the exact version of Apache does make a difference (as noted on the installation instructions page).
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.