Problem

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
_MaVeRiCk-
Forum Newbie
Posts: 2
Joined: Thu Jun 15, 2006 2:34 am

Problem

Post by _MaVeRiCk- »

Hi all,
Im sorry if i am posting in wrong place but i have a problem, that i cannot fix...
I installed Apache 2.2 on my PC, also I downloaded PHP Installer and installed is aswell. I am new at this, so i read a tutorial how to install it. I did EXACTLY all the insturctions. Also I added the provided code to httpd.conf :

Code: Select all

ScriptAlias /php/ "c:/server/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
Then i created phpinfo.php file, and put it in Apache htdocs folder. But when i try to access it typing http://localhost or 127.0.0.1 it says that I do not have permission to acess the file. I read on one forum and tryed to change php.exe to php-cgi.exe.
Can somebody please help me?

PS. I wanted to ask also. It is ok when I had installed Apache it says on index.html(in htdocs) only "It Works!", but not the page describing Apache itself(like in Apache 4.2 which I tryed too). But it seems that Apache is working, I can access HTML files.
PSS. I tryed to stop/start/restart Apache but it doesnt work either. I just unistalled Apache but on my localhost it says "it Works" anyway, when i trype http://localhost

Sorry for my bad english.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Apache 2.2.2 is very new - Im assuming you are using Windows as you've mentioned c:/
In the manual, its mentioned
Note: Users of Apache 2.2.x may use the documentation below except the appropriate DLL files are instead named php4apache2_2.dll and php5apache2_2.dll. These exist in the PHP distribution as of PHP 5.2.0. See also http://snaps.php.net/
_MaVeRiCk-
Forum Newbie
Posts: 2
Joined: Thu Jun 15, 2006 2:34 am

Post by _MaVeRiCk- »

So, that means I must rename php5apache2.dll to php5apache2_2.dll?
Well, If i am saying cr*p, Im new to this and I do not understand how it works well yet :P
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Do you need features that are found in Apache 2.2? Why not use Apache 2 or Apache 1?
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

So, that means I must rename php5apache2.dll to php5apache2_2.dll?
No - download Win32 Packages/Stable (5.2.x-dev)/php5.2 (zip) (8.3M) and get the php5apache2_2.dll from there and place it in C:\PHP\ext
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

And to help others better help you, could you please a bit more descriptive title to your posts? Thanks.
Post Reply