trouble with php5 ( while phpmyadmin works) [message #179421] |
Thu, 25 October 2012 09:18 |
abelahcene
Messages: 1 Registered: October 2012
Karma: 0
|
Junior Member |
|
|
J have installed php5 with the rest of the tools on debian wheezy LAMP.
the phpmyadmin works properly, suggesting that all tools are properly configured.
I launched localhost/myphpadmin I received the correct page and I connected without problem.
But if I put any command for example the famous phpinfo () in a file tester.php, I place this file in the root /var/www or in a personal directory (I comment out the lines that it must be in the module mod_php to activate the home directory, anyway the problem remains the same in the root)
Php is not executed!!?? if I put this file in the directory of phpmyadmin it runs!!
2 or 3 years ago, I used the same procedure, the php/apache2 worked.
I guess there's a new data in the latest version of php or apache2.
thank you for your help
greetings
bela
|
|
|
|
Re: trouble with php5 ( while phpmyadmin works) [message #179424 is a reply to message #179421] |
Thu, 25 October 2012 15:31 |
M. Strobel
Messages: 386 Registered: December 2011
Karma: 0
|
Senior Member |
|
|
Am 25.10.2012 11:18, schrieb abelahcene(at)gmail(dot)com:
> (I comment out the lines that it must be in the module mod_php to activate the home directory, anyway the problem remains the same in the root)
> Php is not executed!!?? if I put this file in the directory of phpmyadmin it runs!!
>
What does this mean exactly about commented lines? If you removed the PHP
configuration, put it back.
What does "Php is not executed" exactly mean? If you see the PHP source in the
browser, it would be clearer to say so.
Does your script habe the necessary <?php tag?
/Str.
|
|
|