Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1
    Join Date
    Jan 2007
    Posts
    375
    Plugin Contributions
    3

    red flag my cPanel site won't record log files

    Hi all,

    I am using cPanel EA4 (EasyApache) on Godaddy VPS
    It using PHP-FPM with PHP 5.6.x

    I had installed a new ZC 1.5.5b with skin.

    But now I discovered that look like cPanel's EA4 work different with EA3 by default setting ...

    On my other older VPS that using EA3
    Any Zen Cart have error will save a files in /logs this position...

    But EA4 look like not work this way, it log at the apache error log
    for example
    my web site there
    /public_html/zencart155b
    so on general any PHP error log that make by ZC will auto save at
    /public_html/zencart155b/logs
    But my EA4 haven't any log on above folder ....
    The logs is Outside of the public_html, but at it root have a logs folder
    /logs/abc_com.php.error.log

    Do anyone that using cPanel with EasyApache4 can share what setting wrong on the Zen Cart?

    Since If can't fix this, it will make me debug very hard!

    Thank

  2. #2
    Join Date
    Jan 2007
    Posts
    375
    Plugin Contributions
    3

    Default Re: cPanel with Zen Cart Log Help

    And I also compare with Zen Cart 1.5.4
    It have a line at /includes/configure.php
    //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
    define('DIR_FS_LOGS', '/home/abc/public_html/zc154/logs');

    but any fresh install ZC 1.5.5b
    Open /includes/configure.php
    HAVEN't any line same as above 1.5.4 do ....


    Do starting from ZC 1.5.5 up changed something that work on before?
    Last edited by explorer1979; 19 Dec 2016 at 09:13 AM.

  3. #3
    Join Date
    Jan 2007
    Posts
    375
    Plugin Contributions
    3

    Default Re: cPanel with Zen Cart Log Help

    I add this to /includes/configure.php
    define('DIR_FS_LOGS', '/home/abc/public_html/abc/logs');

    It still NOT WORK ....

    How to make ZC 1.5.5b logs as 1.5.4 before?

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: cPanel with Zen Cart Log Help

    Quote Originally Posted by explorer1979 View Post
    And I also compare with Zen Cart 1.5.4
    It have a line at /includes/configure.php
    //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
    define('DIR_FS_LOGS', '/home/abc/public_html/zc154/logs');

    but any fresh install ZC 1.5.5b
    Open /includes/configure.php
    HAVEN't any line same as above 1.5.4 do ....


    Do starting from ZC 1.5.5 up changed something that work on before?
    Sounds like things are a little out of whack with your setup.

    cPanel and EA4 have nothing to do with where Zen Cart stores its log files. If you look at the configure.php file for 1.5.4 it would probably look something like:

    Code:
    //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
    define('DIR_FS_LOGS', DIR_FS_CATALOG . '/logs');
    Things were change in the configure.php file starting with 1.5.5 by taking some things out.

    Code:
    define('DIR_FS_LOGS', DIR_FS_CATALOG . '/logs');
    is now found in the /includes/defined_paths.php file.

    Remember also, if there are no errors to record/report then none will be shown.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,509
    Plugin Contributions
    88

    Default Re: cPanel with Zen Cart Log Help

    It almost sounds like your host has disabled the capability for Zen Cart to change (via the PHP function ini_set) the error-reporting location.

    Log into your Zen Cart admin, click Tools->Server/Version Information and search for disable_functions. Is there something other than no value displayed for that setting?

  6. #6
    Join Date
    Jan 2007
    Posts
    375
    Plugin Contributions
    3

    Default Re: cPanel with Zen Cart Log Help

    Dear lat9,

    Yes, something like this on zc155b
    disable_functions
    exec,passthru,shell_exec,system exec,passthru,shell_exec,system

    How I test error?
    For example
    If I after instlled
    rename some file like this one

    /includes/templates/template_default/common/html_header.php
    to
    /includes/templates/template_default/common/html_header.php(xyz)

    This will make the front end be blank white page on ZC 154 or 155b, and general will have a logs files under your installed zen cart folder...

    But I also try same server install a fresh new ZC 1.5.4 on it, same result, no logs on the zen carts folder's logs postition.
    On general the Zen Cart error logs on all cPanel WHM (60.0.28) will be like this
    /home/username/public_html/zc154/logs
    But nothing there

    So I am 100% sure my server have something wrong.

    Guess what the error logs files?
    it is on this path
    /home/username/logs/username_com.php.error.log

    I can see the eRROR
    PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/common/html_header.php' (include_path='.:/opt/cpanel/ea-php55/root/usr/share/pear') in /home/username/public_html/test154/index.php on line 43

    but if all thing right, above text and log will be there
    /home/username/public_html/zc154/logs/xxx_logs
    not on
    /home/username/logs/username_com.php.error.log

    Hope someone who using cPanel WHM can share how to fix this

    Thank you.

  7. #7
    Join Date
    Jan 2007
    Posts
    375
    Plugin Contributions
    3

    red flag Re: cPanel with Zen Cart Log Help

    Plus my fresh new install ZC 1.5.4 it have error
    I can't access the ZC 154 backend

    PHP Fatal error: 1101:BLOB/TEXT column 'logmessage' can't have a default value :: ALTER TABLE admin_activity_log ADD COLUMN logmessage mediumtext NOT NULL default '' ==> (as called by) /home/username/public_html/test154/adminj/includes/classes/class.admin.zcObserverLogWriterDatabase.php on line 90 <== in /home/username/public_html/test154/includes/classes/db/mysql/query_factory.php on line 155

    My Server Enviroment
    Godaddy 2G VPS
    CentOS 6 with cPanel WHM
    While I am setting up by using EasyApache 4 with the ALL PHP Option Profile
    Which will install Apache 2.4, PHP 5.5.38, 5.6, 7.0 (Can let you choose using which one PHP for one of the username base domain), I choosed PHP 5.5.x
    with Enable PHP-FPM (But global PHP Handle is suphp mode)
    MySQL 5.6.34
    Last edited by explorer1979; 19 Dec 2016 at 03:07 PM. Reason: Update infom

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,509
    Plugin Contributions
    88

    Default Re: cPanel with Zen Cart Log Help

    Quote Originally Posted by explorer1979 View Post
    Plus my fresh new install ZC 1.5.4 it have error
    I can't access the ZC 154 backend

    PHP Fatal error: 1101:BLOB/TEXT column 'logmessage' can't have a default value :: ALTER TABLE admin_activity_log ADD COLUMN logmessage mediumtext NOT NULL default '' ==> (as called by) /home/username/public_html/test154/adminj/includes/classes/class.admin.zcObserverLogWriterDatabase.php on line 90 <== in /home/username/public_html/test154/includes/classes/db/mysql/query_factory.php on line 155

    My Server Enviroment
    Godaddy 2G VPS
    CentOS 6 with cPanel WHM
    While I am setting up by using EasyApache 4 with the ALL PHP Option Profile
    Which will install Apache 2.4, PHP 5.5.38, 5.6, 7.0 (Can let you choose using which one PHP for one of the username base domain), I choosed PHP 5.5.x
    with Enable PHP-FPM (But global PHP Handle is suphp mode)
    MySQL 5.6.34
    See this Zen Cart posting in regards to the highlighted message; is there any reason that you're installing ZC1.5.4 instead of 1.5.5b?

  9. #9
    Join Date
    Jan 2007
    Posts
    375
    Plugin Contributions
    3

    Default Re: cPanel with Zen Cart Log Help

    Dear lat9,

    No reason for ZC154, Because I am install it to test the Server what is wrong on the logs files that ZC 155b also not work.

    But once installed that see this error on access the ZC 154 back end ....

    Actually, I just want to fix the error log problems why not work under Zen Cart's path. Hope anyone that who can help for this. Or share how to setting the EasyApache4 by the Profile?

  10. #10
    Join Date
    Jan 2007
    Posts
    375
    Plugin Contributions
    3

    Default Re: cPanel with Zen Cart Log Help

    Quote Originally Posted by lat9 View Post
    It almost sounds like your host has disabled the capability for Zen Cart to change (via the PHP function ini_set) the error-reporting location.

    Log into your Zen Cart admin, click Tools->Server/Version Information and search for disable_functions. Is there something other than no value displayed for that setting?
    Dear lat9,

    Do you know how to fix this? I have full root on this VPS if need change something the cPanel WHM build-in haven't
    But ... EasyApache4 is a bit complex, since it install multi-PHP version on the same machine by different path etc ... it is why I said it can let me choose using which PHP version to run (for example, domainA.com (user A) run by PHP5.5, domainB.com (user B) run by PHP7)
    It look like each user have setting too (I am not too sure) ... it is why I ask there.

    Other old server that I am using by Godaddy are long year ago, they using EasyApache3 to complication the environment that only one PHP version, and default setting can make the logs run ...

    I am try fix this few hour still no lucky

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v139h cpanel error log
    By AfterHouR in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 28 Jan 2013, 09:06 AM
  2. cpanel backup of cache/sess_ files
    By djdavedawson in forum General Questions
    Replies: 1
    Last Post: 22 Apr 2009, 08:00 PM
  3. Help in cleaning up image files/cpanel
    By honeysclerose in forum General Questions
    Replies: 2
    Last Post: 9 Nov 2007, 10:04 PM
  4. My site won't let the user log in?
    By footballflashbacks in forum General Questions
    Replies: 2
    Last Post: 22 Jul 2007, 09:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR