dscuber9000
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
I don't really know what I'm doing...
in PHP Installation and Configuration
Posted
I like to think that I'm good at HTML, Javascript, CSS, and all that, but I decided to try and learn PHP. I got this nice-looking PHP book, but even with an entire chapter dedicated to installing PHP, I just can't get it to work.
I downloaded and installed Apache. I ran apache.exe and typed in http://127.0.0.1/. in the address bar of my Web Browser and I got the confirmation site saying a local server is running. Yay! Next, I went into Control Panel, Administrative Tools, and Services and saw that Apache is running as a service. Yay! Then I downloaded PHP 5.0 and copied a file called php.ini-recommended into my C:\WINDOWS directory and renamed it php.ini. The next step (and final step, according to the book) is where I seem to be stuck.
The book tells me to open a file called httpd.conf and add the following lines of "code" to it:
- LoadModule php5_module C:\Documents and Settings\HP_Owner\My Documents\php-5.0.0RC2-Win32\php5apache.dll
- AddModule mod_php5.c
- AddType application/x-httpd-php .php
Once I added those lines, I created an HTML file with some PHP code and the PHP code did not work. It was just the phpInfo(); function, so it's not the code's problem, I obviously messed up installing PHP. I have no idea what I did wrong.