logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Apache 2.2 cannot work with Php 5.1.6
Author
mmarif4u



Joined: 11 Sep 2006
Posts: 2
Location: Malaysia

PostPosted: Mon 11 Sep '06 8:30    Post subject: Apache 2.2 cannot work with Php 5.1.6 Reply with quote

Hi Every body,
I have a problem,
Problem is: i install Php 5.1.6 with apache 2 but it not works,
then i install apache 2.2 but php 5.1.6 doesnot work this version.
Is any body have the detail explanation of this problem.
which versions are compatable with each other & what conf required after
installation.
Thanks.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 11 Sep '06 9:37    Post subject: Reply with quote

See our awesome how-to Wink
http://www.apachelounge.com/viewtopic.php?t=570
Back to top
mmarif4u



Joined: 11 Sep 2006
Posts: 2
Location: Malaysia

PostPosted: Mon 11 Sep '06 10:40    Post subject: # configure the path to php.ini Reply with quote

Where to put this file Or from where i configure it.

# configure the path to php.ini
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 11 Sep '06 15:27    Post subject: Reply with quote

You can configure the path for php.ini if it isn't localted in C:\Windows
than you can set in httpd.conf

PHPIniDir "C:/your/path/to"

e.g.
PHPIniDir "C:/php"

Smile

That mean you have to add all these line from the tut to httpd.conf
Code:

LoadModule php5_module "c:/php5/php5apache2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php-source .phps
# configure the path to php.ini
PHPIniDir "c:/php5
Back to top
OsmeaSchmidt



Joined: 29 Sep 2006
Posts: 2

PostPosted: Fri 29 Sep '06 20:06    Post subject: I'm stuck! Reply with quote

I did follow the instruction trough the url below, but it still not working..
http://www.apachelounge.com/viewtopic.php?t=570 Crying or Very sad it just show the text " <?php phpinfo() ?> " and not the info about the php.

I'm using apache_2.2.3-win32-x86-no_ssl, php-5.1.6-Win32 and mysql-5.0.15-win32. Can someone help me up, please?
Back to top
CanUuRead



Joined: 18 Sep 2006
Posts: 38

PostPosted: Fri 29 Sep '06 22:50    Post subject: Reply with quote

OsmeaSchmidt,

By the version of Apache that you are using, it is obvious that you did not follow the instructions. Do not skip any steps and it will work.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Fri 29 Sep '06 23:05    Post subject: Re: I'm stuck! Reply with quote

Quote:

Crying or Very sad it just show the text " <?php phpinfo() ?> " and not the info about the php.


Sure that the file has the right extension (.php) Windows don't show normaly known file extensions. So make sure that the extension is only .php and maybe not .php.txt or something like that.
Back to top
OsmeaSchmidt



Joined: 29 Sep 2006
Posts: 2

PostPosted: Sat 30 Sep '06 11:59    Post subject: Thanks a lot! Its working now!!! Reply with quote

thanks James Blond and CanUuRead, its working now! thank you both of you! Laughing now, how to make php work eith mysql? Is there any clue(s)? Newbie here Embarassed
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Sat 30 Sep '06 17:49    Post subject: Reply with quote

http://www.apachelounge.com/viewtopic.php?t=374
and here
http://www.apachelounge.com/viewtopic.php?t=570

or www.php.net Docu is very good!
Back to top


Reply to topic   Topic: Apache 2.2 cannot work with Php 5.1.6 View previous topic :: View next topic
Post new topic   Forum Index -> Other Software