Computing.Net > Forums > Web Development > Help setting up Apache and PHP

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Help setting up Apache and PHP

Reply to Message Icon

Name: Jimmytherifle
Date: October 10, 2008 at 18:40:32 Pacific
OS: Vista Home Premium
CPU/Ram: 2.41 GHz/2.47 GB
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: shutat
Date: October 10, 2008 at 21:21:38 Pacific
Reply:

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


0

Response Number 2
Name: Jimmytherifle
Date: October 11, 2008 at 12:43:02 Pacific
Reply:

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?


0

Response Number 3
Name: shutat
Date: October 11, 2008 at 15:00:41 Pacific
Reply:

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.


0

Response Number 4
Name: Jimmytherifle
Date: October 11, 2008 at 20:06:47 Pacific
Reply:

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 .phps

Still not working...


0

Response Number 5
Name: shutat
Date: October 12, 2008 at 21:29:40 Pacific
Reply:

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


0

Related Posts

See More



Response Number 6
Name: Jimmytherifle
Date: October 13, 2008 at 11:59:27 Pacific
Reply:

All right! Well I finally got it up and running. Thank you so much for you help!


0

Response Number 7
Name: shutat
Date: October 14, 2008 at 11:57:13 Pacific
Reply:

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.

http://us2.php.net/get/php_manual_e...


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Help setting up Apache and PHP

Setting up apache server w/php+mysq www.computing.net/answers/webdevel/setting-up-apache-server-wphpmysq/2743.html

PHP scripts set-up www.computing.net/answers/webdevel/php-scripts-setup/902.html

Help with Apache (personal) server www.computing.net/answers/webdevel/help-with-apache-personal-server/863.html