- 576
- Posts
- 20
- Years
- Seen Mar 14, 2008
I just started learning PHP and found it extremely interesting. I wanted to try out PHP in my computer. So I downloaded the latest versions - PHP 5.04 and Apache 2 and installed them in my Windows 98 computer according to the instructions given in the php-.... site. First I installed Apache in the C:\Program Files\Apache Group\Apache2 and installed PHP in the same directory in a sub-folder called php.
First, in Apache I gave everything (server name, domain) as localhost. After installing Apache, I tried https://localhost in both IE and FF but that failed to turn up any page and I got the "couldn't find file" error. Then I unzipped PHP5 in a folder called in "php" in Apache2 folder. Then I copied "php.ini-dist" to windows and renamed it "php.ini".
For the installation to be complete, I opened the httpd.conf file and entered this code at the end
I entered https://localhost/test.php (a file containg a simple code) but it failed. I also tried manually opening the file but the file opened with nothing in it. I don't know what mistake I made. Can someone please help me?
~ CC
First, in Apache I gave everything (server name, domain) as localhost. After installing Apache, I tried https://localhost in both IE and FF but that failed to turn up any page and I got the "couldn't find file" error. Then I unzipped PHP5 in a folder called in "php" in Apache2 folder. Then I copied "php.ini-dist" to windows and renamed it "php.ini".
For the installation to be complete, I opened the httpd.conf file and entered this code at the end
Code:
LoadModule php5_module php/php5apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
~ CC