Would really appreciate some help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dstillwell1979
Forum Newbie
Posts: 1
Joined: Tue Jun 16, 2009 4:24 am

Would really appreciate some help

Post by dstillwell1979 »

Hi Everyone,
I bought a copy of PHP and MySQL Web Development by Luke Welling and Laura Thompson and am trying to install PHP.

Ive got Apache and MySQL running fine, but ive followed the installation guide to PHP to the letter and have spent hours pulling my hair out.

to let you know what i have done:

i downloaded the win32.zip and extracted to c:/php

i then made a copy of php.ini-dist and renamed it php.ini, in this file i changed the extension_dir line to read:

extension_dir = "C:/php/ext"

i then set the doc_root to read:

doc_root = "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"

the book then tells you to set some of the extensions to run, the following had the semi colons removed from the begining of the control:

extension=php_gd2.dll
extension=php_imap.dll
extension=php_mysqli.dll

and the following was added:

extension=php_pdflib.dll

php.ini now saved

it then tells me to edit httpd.conf in the apache conf.

it said to look for the following lines:

LoadModule php5_module C:/php/php5apache2_2.dll
PHPIniDir "C:/php/"
AddType application/x-httpd-php .php

and if you couldnt find them (which i couldnt) to add them, i added them but it didnt say where to.

this file was saved and the apache server was restarted.

i then created test.php containing the <? phpinfo(); ?> line and saved this in htdocs within apache.

i then pull this up on a browser using http://localhost/test.php - the result is a page cannot be found.

some additional info:

when i make any changes to a file in the htdocs folder im aksed to make the changes at administrator level, and when you browse the htodoc folder using windows exlporer you cant see the test.php file.

if anyone can help id be very grateful.

perhaps PM me so you can get a copy of my php.ini and httpd.conf or send me copies that work.

its very frustrating, ive had this great book for 2 days but cant do anything with it!
mattpointblank
Forum Contributor
Posts: 304
Joined: Tue Dec 23, 2008 6:29 am

Re: Would really appreciate some help

Post by mattpointblank »

I just use something like XAMPP or WAMP - they're ready made installers with Apache, MySQL and PHP preinstalled, works right out of the box. Try those if you're a beginner?
Post Reply