This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

PHP error!
#1
PHP error!
I have successfully installed sentora in my VPS,
PHP error message is not showing,
for example:

<?php
echo 'hello world';
require_once('invalid_file.php');
?> 

here the php engine should print the 'hello world' first, then it should throw an fatal error msg. but it's doing nothing! :O
doing the same in case of 

even in case of simple error like undefined variable,
<?

//$var1='print this out';
echo $var1
?>
it's doing nothing! :'(
Reply
Thanks given by:
#2
RE: PHP error!
In your php.ini make sure error reporting and show errors is active:
php.ini locations:
  • Ubuntu: /etc/php5/apache2/php.ini
  • CentOS: /etc/php.ini
Code:
error_reporting = E_ALL & ~E_NOTICE

display_errors = On

Remember to restart apache after making any changes:
  • Ubuntu: service apache2 restart
  • CentOS: service httpd restart
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#3
RE: PHP error!
I think you want to use ' <? ' not only ' <?php '.
Open your php.ini and find short_open_tag=Off
change Off to On and restart your apache.
Reply
Thanks given by:
#4
RE: PHP error!
(09-25-2016, 07:22 AM)kini Wrote: I think you want to use ' <? ' not only ' <?php '.
Open your php.ini and find short_open_tag=Off
change Off to On and restart your apache.

Or just update your code to 'non-lazy' and not use short tags at all Wink
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Repo update error hostingms 3 6 ,829 02-14-2024, 09:20 AM
Last Post: TGates
apt-get install mod_ssl ERROR CMs222 9 28 ,356 11-11-2022, 09:14 PM
Last Post: zustudios
Sentora debug and error files johnnyp 0 1 ,595 10-27-2022, 06:16 PM
Last Post: johnnyp

Forum Jump:


Users browsing this thread: 1 Guest(s)