Author |
|
mmarif4u
Joined: 11 Sep 2006 Posts: 2 Location: Malaysia
|
Posted: Mon 11 Sep '06 8:30 Post subject: Apache 2.2 cannot work with Php 5.1.6 |
|
|
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: 7377 Location: Germany, Next to Hamburg
|
|
Back to top |
|
mmarif4u
Joined: 11 Sep 2006 Posts: 2 Location: Malaysia
|
Posted: Mon 11 Sep '06 10:40 Post subject: # configure the path to php.ini |
|
|
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: 7377 Location: Germany, Next to Hamburg
|
Posted: Mon 11 Sep '06 15:27 Post subject: |
|
|
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"
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
|
Posted: Fri 29 Sep '06 20:06 Post subject: I'm stuck! |
|
|
I did follow the instruction trough the url below, but it still not working..
http://www.apachelounge.com/viewtopic.php?t=570 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
|
Posted: Fri 29 Sep '06 22:50 Post subject: |
|
|
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: 7377 Location: Germany, Next to Hamburg
|
Posted: Fri 29 Sep '06 23:05 Post subject: Re: I'm stuck! |
|
|
Quote: |
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
|
Posted: Sat 30 Sep '06 11:59 Post subject: Thanks a lot! Its working now!!! |
|
|
thanks James Blond and CanUuRead, its working now! thank you both of you! now, how to make php work eith mysql? Is there any clue(s)? Newbie here |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7377 Location: Germany, Next to Hamburg
|
|
Back to top |
|