Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #7354 > unrolled thread

trouble with php5 ( while phpmyadmin works)

Started byabelahcene@gmail.com
First post2012-10-25 02:18 -0700
Last post2012-10-25 17:31 +0200
Articles 3 — 3 participants

Back to article view | Back to comp.lang.php


Contents

  trouble with php5 ( while phpmyadmin works) abelahcene@gmail.com - 2012-10-25 02:18 -0700
    Re: trouble with php5 ( while phpmyadmin works) Denis McMahon <denismfmcmahon@gmail.com> - 2012-10-25 11:08 +0000
    Re: trouble with php5 ( while phpmyadmin works) "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-10-25 17:31 +0200

#7354 — trouble with php5 ( while phpmyadmin works)

Fromabelahcene@gmail.com
Date2012-10-25 02:18 -0700
Subjecttrouble with php5 ( while phpmyadmin works)
Message-ID<c20d9499-765b-4799-97cb-475d72daf3fc@googlegroups.com>
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

[toc] | [next] | [standalone]


#7356

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2012-10-25 11:08 +0000
Message-ID<k6b6jc$d7r$1@dont-email.me>
In reply to#7354
On Thu, 25 Oct 2012 02:18:42 -0700, abelahcene wrote:

> [where is documentroot]

grep -i documentroot /etc/apache2/apache2.conf
grep -i documentroot /etc/apache2/sites-enabled/*

Rgds

Denis McMahon

[toc] | [prev] | [next] | [standalone]


#7357

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2012-10-25 17:31 +0200
Message-ID<aet4akFonkdU1@mid.uni-berlin.de>
In reply to#7354
Am 25.10.2012 11:18, schrieb abelahcene@gmail.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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web