Koozali.org: home of the SME Server

php test

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
php test
« on: June 09, 2006, 11:24:40 PM »
Hi all

I have three questions

How can I test php and sql to see if it's working correctly

is there a test script that will work I can use to test my SME box that php,cgi,sql are working correctly ?

Thanks

blockbuster

php test
« Reply #1 on: June 11, 2006, 01:27:37 AM »
To see if PHP is working make a file called info.php,

Add the following lines to the file:

<?
phpinfo();
?>

save file on the webserver, go with your browser to www.yourdomain.com/info.php

Read the output of this file very carefully and it answers you 3 questions.

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
What about Perl
« Reply #2 on: July 02, 2006, 04:24:39 AM »
Sorry for my ignorance I seem to be getting more ignorant as time goes on LOL  :-D

Is there a similar test for perl

Please advise
Thanks

Offline raem

  • *
  • 3,972
  • +4/-0
Re: What about Perl
« Reply #3 on: July 02, 2006, 04:50:32 AM »
Agent86

I saw your comment in another thread re the version of perl installed on sme 7 as being 4.3.9.
If I do
rpm -q perl
perl-5.8.5-24.RHEL4

So sme 7 has greater than perl v5, so that will not be your problem

Even sme6 has greater than perl v5
rpm -q perl
perl-5.6.1-36.1.73
...

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Yes thanks
« Reply #4 on: July 02, 2006, 10:08:11 PM »
Yes thanks for the corrections
see other thread for explainations

Offline annyphp

  • 3
  • +0/-0
Re: php test
« Reply #5 on: December 07, 2010, 08:55:01 AM »
More PHP test you can check

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: php test
« Reply #6 on: December 07, 2010, 05:03:48 PM »
How can I test php and sql to see if it's working correctly

Unless you have done customisation which has broken them, then they are working correctly. You can confirm that by enabling and then using webmail. Webmail requires php and mysql to be working.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: What about Perl
« Reply #7 on: December 07, 2010, 05:06:15 PM »
Is there a similar test for perl

If server-manager and admin console menu are working, then you have perl installed and it is working. CGI is working as well.

Why are you asking these questions? What are you trying to achieve?