Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

PHP 5.2.17 Installation on windows 7 with Apache2.2

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

PHP 5.2.17 Installation on windows 7 with Apache2.2

Postby scharlet » Thu Jun 16, 2011 4:28 am

Hi,

I have installed php5.2.17 (with installer) on windows 7 and I have Apache2.2.
"php5apache2_2.dll" file hasn't been created during the installation.
I added the file (and some additional files) to my PHP directory manually and then tried to add:

1. LoadModule php5_module "c:/PHP/php5apache2_2.dll"
2. AddType application/x-httpd-php .php
3. PHPIniDir "C:/PHP"

at my httpd.conf
it results with an error when I try to restart my Apache server (the error appears on lines 1 and 3)
and I can't restart the server.
when I try to execute my PHP file without adding lines 1 and 3 to httpd.conf
I get an error:
404 Not Found
"The requested URL /PHP/php-cgi.exe/a.php was not found on this server."

execution of perl scripts works fine.

Thanks,
Alona
scharlet
New php-forum User
New php-forum User
 
Posts: 2
Joined: Thu Jun 16, 2011 3:50 am

Re: PHP 5.2.17 Installation on windows 7 with Apache2.2

Postby Nullsig » Thu Jun 16, 2011 5:11 am

http://www.wampserver.com/en/

This may be me sounding like a broken record when it comes to this issue but to be honest using WAMP/LAMP is seriously the easiest way to set up a server if you are having issues.

"Man's Gaming" the install by independently installing and configuring each package separately leads to a lot of problems and needless headache.

Unless you want to know the ins and outs of server setup you are better off with WAMP as it allows you to go from No Server to Development in almost no time flat.
User avatar
Nullsig
php-forum Fan User
php-forum Fan User
 
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

Re: PHP 5.2.17 Installation on windows 7 with Apache2.2

Postby scharlet » Thu Jun 16, 2011 6:48 am

Thanks,
It finally works :D
scharlet
New php-forum User
New php-forum User
 
Posts: 2
Joined: Thu Jun 16, 2011 3:50 am


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron