Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Agent86 on June 09, 2006, 11:24:40 PM

Title: php test
Post by: Agent86 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
Title: php test
Post by: blockbuster 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.
Title: What about Perl
Post by: Agent86 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
Title: Re: What about Perl
Post by: raem 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
Title: Yes thanks
Post by: Agent86 on July 02, 2006, 10:08:11 PM
Yes thanks for the corrections
see other thread for explainations
Title: Re: php test
Post by: annyphp on December 07, 2010, 08:55:01 AM
More PHP test  (http://www.phpkode.com/projects/category/php-tests-quizzes/)you can check
Title: Re: php test
Post by: CharlieBrady 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.
Title: Re: What about Perl
Post by: CharlieBrady 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?