Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm trying to start working with php, but I'm having trouble getting it installed correctly, or at least I'm having trouble configuring apache. Basically I was hoping to learn how to set up php and apache so that I can begin working with them.

http://www.php-mysql-tutorial.com/i...
That's a great place to start. It helped me out quite a bit on setting up apache, php, and mysql on a 2k machine.
The tutorial is a bit dated now, but it works with at least php 5.05 and mysql 4.1
HTH

Well Apache is set up, I just can't get it to load the PHP. I'm getting this error that says my php5apache2.dll can't be loaded. Any idea how I can fix this?

Did you set the php environment? I got that same error during my first setup, but changed the paths by entering the system "properties" dialog -> advanced -> environment variables. I edited the path setting to include that of php and its modules.
Where's the php.ini file? I think that has to be edited to, or placed in the system 32 folder.

Well the php.ini is now inside SYSTEM32, and I've add the following 3 lines to the httpd.conf file for apache:
LoadModule php5_module php/php5apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phpsStill not working...

My apologies; I placed it in WINNT, but I believe it only needs to be in the php folder.
Did you edit your php.ini file?
look for "doc_root" and change it to whatever yours is set for under apache
look for "extension_dir" and change it to where ever you installed php. For example, in my php.ini file, I have:
doc_root = "c:/usr/local/www"
extension_dir = "c:/php5/ext"Also, check to make sure you've set the system path to include your php installation folder. For example, mine is something similar to
%SystemRoot%\system32;%SystemRoot%;c:\php5;c:\php5\ext
HTH

NP - glad I could help. :)
If you haven't downloaded the php manual, then I'd encourage you to get it and create a short cut for the quick launch tool bar. It's around 7 mb in size.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |