Zen Cart Logo
Forums / General Questions / my cPanel site won't record log files

my cPanel site won't record log files

Views: 4,215

Results 21 to 26 of 26
20 Dec 2016, 9:22 AM
#21
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

my cPanel site won't record log files

mc12345678:

If these truly are the settings in the file then understand that all of them take the default (instead of the Production Value) because they are all commented out (beginning with a semi-colon (;)).

It may seem that in particular the ones related to showing instead of logging errors may be a reason why your logs are not generated. Display of errors can be a security risk where an error could be forced to occur and the result presented to the visitor.

Hi mc12345678,

Can you share your live products server setting if your logs files work?

My server look like not just comment out, it value also look like not same as the the phpinfo(); return value

error_reporting = E_ALL & ~E_NOTICE
display_errors = Off
display_startup_errors = Off
log_errors = On
ignore_repeated_errors = Off
ignore_repeated_source = Off

above is cPanel PHP.INI I open it see.

But ... one of line in this PHP.INI also make me feeling confusion ...
disable_functions =
this in the PHP.INI

But while I am runing the phpinfo(); on standalone files or inside the installed ZC 1.5.5b
It have a value there
disable_functions

exec,passthru,shell_exec,system exec,passthru,shell_exec,system

left is local value, right is master value

This is 100% look like not same as what I see in the cPanel WHM's Globel PHP.INI files do
disable_functions =

I just know look like EasyApache 4 work very different as EasyApache 3 do

Thank you.

20 Dec 2016, 9:36 AM
#22
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: my cPanel site won't record log files

Have you tried discussing the problem with your Hoster/Data Center? They are in the best position to help you with this.

10 Jan 2017, 4:13 AM
#23
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Re: my cPanel site won't record log files

Rob,

Because my hosting plan not include any support, it is why I am ask there

10 Jan 2017, 4:19 AM
#24
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Re: my cPanel site won't record log files

Hi all,

After long time research of this ....

I final find a Official Document on cPanel Web Site ...
But I am don't know what I can do, for example, override it value

Yes, my VPS and me setting the PHP run by PHP-FPM

so

https://documentation.cpanel.net/display/60Docs/Configurations+Values+of+PHP-FPM

It have some gobal value that match before I post there such as disable value

and I am lock on one value
php_admin_value_error_log

On cPanel PHP-FPM document list above it have match my log path

[% homedir %]/logs/[% scrubbed_domain %].php.error.log

Note:

The system normalizes the dot character (.) to an underscore character (_) for the domain. For example, the /home/example/logs/example.net.php.error.log file will become the /home/example/logs/example_net.php.error.log file, where example represents the username and example_net represents the domain name.

Like before what I said, my log on /home/user/logs/abc_com.php.error.log
not on
/home/user/public_html/store/log
that the Zen Cart installed

So ... do zen cart can using PHP force override above value?

Thank you.

10 Jan 2017, 5:54 AM
#25
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Re: my cPanel site won't record log files

php-fpm.conf on
/opt/cpanel/ea-php55/root/etc/
have value
include=/opt/cpanel/ea-php55/root/etc/php-fpm.d/*.conf

on
/opt/cpanel/ea-php55/root/etc/php-fpm.d/
have file
abc.com.conf

less abc.com.conf

;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; cPanel FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; NOTICE This file is generated, please use our WHM User Interface
; to set these value

[abc_com]
catch_workers_output = yes
chdir = /home/abc
group = abc
listen = /opt/cpanel/ea-php55/root/usr/var/run/php-fpm/fgggg.sock
listen.group = nobody
listen.mode = 0660
listen.owner = abc
php_admin_flag[allow_url_fopen] = on
php_admin_flag[log_errors] = on
php_admin_value[disable_functions] = exec,passthru,shell_exec,system
php_admin_value[doc_root] = "/home/abc/public_html"
php_admin_value[error_log] = /home/abc/logs/abc_com.php.error.log
php_admin_value[error_reporting] = E_ALL & ~E_NOTICE
php_admin_value[short_open_tag] = on
ping.path = /ping
pm = ondemand
pm.max_children = 5
pm.max_requests = 20
pm.max_spare_servers = 5
pm.min_spare_servers = 1
pm.process_idle_timeout = 10
pm.start_servers = 0
pm.status_path /status
security.limit_extensions = .phtml .php .php3 .php4 .php5 .php6 .php7
user = abc

10 Jan 2017, 6:19 AM
#26
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: my cPanel site won't record log files

I think you are over complicating things. From what you've provided so far there is nothing wrong with your server setup or files.

/home/user/logs/abc_com.php.error.log
^ this is the PHP error log for your Hosting account and is normal and will show any & all PHP errors, not just Zen Cart ones

I think your Zen Cart was installed incorrectly as there are other problems you've mentioned as well.

If you are just in the process of setting up a new Zen Cart, how did you install it?