Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26
  1. #11
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: CentOS 7 and suPHP

    Quote Originally Posted by jeking View Post
    I ran the Zen Cart install on another domain on this same server. Installation pointed out no problems and completed successfully. This install log and install exception (made a typo in db name during first attempt) files were both created in he logs folder.
    Given that a fresh install of Zen Cart works properly (with logs being written when errors occur) but a cPanel-to-cPanel server transfer does not, that suggests to me that the problem is server-side (finger pointing at cPanel).

    While I completely appreciate the convenience of letting cPanel do the migration from one server to another, have you considered that a manual move might be more reliable?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #12
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,557
    Plugin Contributions
    28

    Default Re: CentOS 7 and suPHP

    Quote Originally Posted by DrByte View Post
    Given that a fresh install of Zen Cart works properly (with logs being written when errors occur) but a cPanel-to-cPanel server transfer does not, that suggests to me that the problem is server-side (finger pointing at cPanel).

    While I completely appreciate the convenience of letting cPanel do the migration from one server to another, have you considered that a manual move might be more reliable?
    One point that maybe wasn't clear, with the fresh install the only logs were the install logs. Error log from the new installation were not being written to the logs folder.

  3. #13
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,557
    Plugin Contributions
    28

    Default Re: CentOS 7 and suPHP

    I just noticed the date of the install log, it's 2/23/216 and this is the contents. I confirmed in WHM, the server date is set correctly, i.e. Mon Sep 5 10:17:50 GMT+5 2016

    I don't know why, but sure seems odd.

    ---------------
    Feb 23 2016 10:04 -- inspect
    System Inspection Results:
    ------------------------------
    NA: Webserver => Apache
    NA: HTTP Host => www.wheatonwebsiteservices.net
    NA: Path_Translated => /home/wweb/public_html/zen154/zc_install/index.php(SCRIPT_FILENAME)
    NA: Real Path => /home/wweb/public_html/zen154
    NA: Server Free Disk Space => 287.92 GB
    NA: PHP O/S => Linux
    NA: PHP API Mode => apache2handler
    NA: PHP Max Execution Time per page => 3000
    OK: MySQL Support => ON
    OK: PHP Version => 5.6.16
    OK: PHP Sessions Support => ON
    OK: PHP Session.AutoStart => OFF
    OK: PHP session.use_trans_sid => OFF
    OK: Suggested SQL Cache Folder => /home/wweb/public_html/zen154/cache
    OK: PHP GD Support => ON
    OK: GD Version => GD bundled (2.1.0 compatible)
    OK: PHP ZLIB Compression Support => ON
    OK: PHP OpenSSL Support => ON
    OK: PHP cURL Support => ON
    OK: CURL NON-SSL Capability => Okay
    OK: CURL SSL Capability => Okay
    OK: PHP Upload Support => ON upload_max_filesize=15M; post_max_size=1024M
    OK: PHP Upload TMP dir =>
    OK: Apache .htaccess Support => ON
    NA: PHP include_path => .:/usr/lib/php:/usr/local/lib/php
    NA: PHP SMTP destination => localhost
    NA: PHP sendmail path => /usr/sbin/sendmail -t -i
    NA: PHP sendmail 'from' =>
    WARN: PHP open_basedir restrictions => /home/wweb:/usr/lib/php:/usr/local/lib/php:/tmp
    OK: PHP Output Buffering (gzip) => ON
    OK: PHP XML Support => ON
    OK: PHP Session.Save_Path => /home/wweb/public_html/zen154/cache-->Writeable
    OK: includes/configure.php => Writeable
    OK: admin/includes/configure.php => Writeable
    OK: cache => OK 777 read/write/execute
    OK: images => OK 777 read/write/execute (INCLUDE SUBDIRECTORIES TOO)
    OK: includes/languages/english/html_includes => OK 777 read/write (INCLUDE SUBDIRECTORIES TOO)
    OK: logs => OK 777 read/write/execute
    OK: media => OK 777 read/write/execute
    OK: pub => OK 777 read/write/execute
    OK: admin/backups => OK 777 read/write
    OK: admin/images/graphs => OK 777 read/write/execute
    PHP Extensions compiled: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, filter, ftp, gd, gettext, hash, iconv, SPL, json, mbstring, mcrypt, session, mysql, mysqli, standard, Phar, Reflection, mysqlnd, SimpleXML, soap, sockets, imap, tokenizer, xml, xmlreader, xmlwriter, zip, apache2handler, PDO, pdo_sqlite, timezonedb, pdo_mysql, ionCube Loader, Zend OPcache, Zend Guard Loader
    ------------------------------


    ---------------
    Feb 23 2016 10:04 -- database_setup1
    Installer - Page: database_setup -- collected information: Array
    (
    [language] => english
    [DIR_FS_SQL_CACHE] => /home/wweb/public_html/zen154/cache
    [DB_TYPE] => mysql
    [DB_PREFIX] =>
    [DB_CHARSET] => utf8
    [DB_SERVER] => localhost
    [DB_SERVER_USERNAME] => wweb_zenuser
    [DB_SERVER_PASSWORD] => ***private***
    [DB_DATABASE] => wweb_zen154
    [SQL_CACHE_METHOD] => none
    )

  4. #14
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: CentOS 7 and suPHP

    Quote Originally Posted by jeking View Post
    One point that maybe wasn't clear, with the fresh install the only logs were the install logs. Error log from the new installation were not being written to the logs folder.
    Really odd.

    The logging is done by PHP itself, and ZC only tells it what it wants PHP to do with the errors.
    The code is in /includes/extra_configures/enable_error_logging.php

    Maybe your PHP setup is configured to disallow custom error handling for some reason.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #15
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: CentOS 7 and suPHP

    Quote Originally Posted by jeking View Post
    I just noticed the date of the install log, it's 2/23/216 and this is the contents. I confirmed in WHM, the server date is set correctly, i.e. Mon Sep 5 10:17:50 GMT+5 2016
    That almost looks like it's from a different site, or a different install, or copied from another server. But I'm assuming you're looking at the "fresh install" and not the "copy", so ya it's really odd.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #16
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,557
    Plugin Contributions
    28

    Default Re: CentOS 7 and suPHP

    Quote Originally Posted by DrByte View Post
    That almost looks like it's from a different site, or a different install, or copied from another server. But I'm assuming you're looking at the "fresh install" and not the "copy", so ya it's really odd.
    Oh jezz, that was the wrong folder and was from a site transfered over. The new install log does have the right dates. Just for fun, this is the correct one.

    ---------------
    Sep 03 2016 19:07 -- inspect
    System Inspection Results:
    ------------------------------
    NA: Webserver => Apache
    NA: HTTP Host => wheatonwebsiteservices.net
    NA: Path_Translated => /home/wweb/public_html/zencart/zc_install/index.php(SCRIPT_FILENAME)
    NA: Real Path => /home/wweb/public_html/zencart
    NA: Server Free Disk Space => 375.39 GB
    NA: PHP O/S => Linux
    NA: PHP API Mode => cgi-fcgi
    NA: PHP Max Execution Time per page => 60
    NA: Disabled PHP Functions => show_source, system, shell_exec, passthru, exec, popen, proc_open, ini_set
    OK: MySQL Support => ON
    OK: PHP Version => 5.6.25
    OK: PHP Sessions Support => ON
    OK: PHP Session.AutoStart => OFF
    OK: PHP session.use_trans_sid => OFF
    OK: Suggested SQL Cache Folder => /home/wweb/public_html/zencart/cache
    OK: PHP GD Support => ON
    OK: GD Version => GD bundled (2.1.0 compatible)
    OK: PHP ZLIB Compression Support => ON
    OK: PHP OpenSSL Support => ON
    OK: PHP cURL Support => ON
    OK: CURL NON-SSL Capability => Okay
    OK: CURL SSL Capability => Okay
    OK: PHP Upload Support => ON upload_max_filesize=10M; post_max_size=8M
    OK: PHP Upload TMP dir =>
    OK: Apache .htaccess Support => ON
    NA: PHP include_path => .;/path/to/php/pear
    NA: PHP SMTP destination => localhost
    NA: PHP sendmail path => /usr/sbin/sendmail -t -i
    NA: PHP sendmail 'from' =>
    OK: PHP open_basedir restrictions =>
    WARN: PHP Output Buffering (gzip) => OFF
    OK: PHP XML Support => ON
    OK: PHP Session.Save_Path => /home/wweb/public_html/zencart/cache-->Writeable
    OK: includes/configure.php => Writeable
    OK: admin/includes/configure.php => Writeable
    OK: cache => OK 777 read/write/execute
    OK: images => OK 777 read/write/execute (INCLUDE SUBDIRECTORIES TOO)
    OK: includes/languages/english/html_includes => OK 777 read/write (INCLUDE SUBDIRECTORIES TOO)
    OK: logs => OK 777 read/write/execute
    OK: media => OK 777 read/write/execute
    OK: pub => OK 777 read/write/execute
    OK: admin/backups => OK 777 read/write
    OK: admin/images/graphs => OK 777 read/write/execute
    PHP Extensions compiled: Core, date, ereg, libxml, openssl, pcre, zlib, filter, hash, pcntl, readline, Reflection, SPL, session, standard, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap, intl, json, ldap, exif, mcrypt, mysqlnd, mysql, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, shmop, SimpleXML, snmp, soap, sockets, SourceGuardian, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, mhash, ionCube Loader, Zend Guard Loader, Zend OPcache
    ------------------------------


    ---------------
    Sep 03 2016 19:08 -- database_setup
    FATAL: Connection to Database failed -

    ---------------
    Sep 03 2016 19:08 -- database_setup1
    Installer - Page: database_setup -- collected information: Array
    (
    [language] => english
    [DIR_FS_SQL_CACHE] => /home/wweb/public_html/zencart/cache
    [DB_TYPE] => mysql
    [DB_PREFIX] =>
    [DB_CHARSET] => utf8
    [DB_SERVER] => localhost
    [DB_SERVER_USERNAME] => wweb_zencart
    [DB_SERVER_PASSWORD] => ***private***
    [DB_DATABASE] => wweb_zenuser
    [SQL_CACHE_METHOD] => none
    )


    ---------------
    Sep 03 2016 19:08 -- database_setup1
    Installer - Page: database_setup -- collected information: Array
    (
    [language] => english
    [DIR_FS_SQL_CACHE] => /home/wweb/public_html/zencart/cache
    [DB_TYPE] => mysql
    [DB_PREFIX] =>
    [DB_CHARSET] => utf8
    [DB_SERVER] => localhost
    [DB_SERVER_USERNAME] => wweb_zenuser
    [DB_SERVER_PASSWORD] => ***private***
    [DB_DATABASE] => wweb_zencart
    [SQL_CACHE_METHOD] => none
    )
    Last edited by jeking; 5 Sep 2016 at 04:30 PM.

  7. #17
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,557
    Plugin Contributions
    28

    Default Re: CentOS 7 and suPHP

    Thanks to @carlwhat I think we've found the source of the problem, but not quite a fix.

    includes/extra_configures/enable_error_logging.php
    and:
    YOUR_ADMIN/includes/extra_configures/enable_error_logging.php

    both are changing the value of error_log to the correct ZC myDEBUG-.....format but on my server, it is not respecting that order of precedence.

    To be clear, this value is show in YOUR_ADMIN/server_info.hp

    error_log /home/ACCOUNT_NAME/public_html//logs/myDEBUG-adm-1473108857-88706.log error_log

    Posting a similar question to the host, but wanted to post an update here as well.

  8. #18
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,690
    Plugin Contributions
    9

    Default Re: CentOS 7 and suPHP

    ini_set was in the disabled functions vars....

    well, you learn something new every day.

  9. #19
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,690
    Plugin Contributions
    9

    Default Re: CentOS 7 and suPHP

    Quote Originally Posted by carlwhat View Post
    now, feel free to correct me if i am wrong, but we are talking some low level stuff here... we have a blank page with no error log....

    from what i can tell, the error log is created in:

    includes/classes/class.base.php

    and specifically in the notify function.
    ok... i will correct myself. that is wrong. the notify function in class.base.php is a different log, and has absolutely NOTHING to do with the myDEBUG-.... logs....
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  10. #20
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,557
    Plugin Contributions
    28

    Default Re: CentOS 7 and suPHP

    Quote Originally Posted by carlwhat View Post
    ini_set was in the disabled functions vars....

    well, you learn something new every day.
    Ain't that the truth!!

    Your help, and that of everyone else who posted to this thread us very much appreciated!! A financial contribute is on it's way.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. suPHP and .htaccess files > php.ini
    By Servelan in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 30 Aug 2011, 05:00 AM
  2. How to install CentOS as host?
    By anikin in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 2 May 2011, 04:38 AM
  3. SuPHP and .htaccess?
    By Schtoo in forum General Questions
    Replies: 4
    Last Post: 27 Mar 2010, 01:16 PM
  4. SuPHP and security
    By DaveS in forum General Questions
    Replies: 2
    Last Post: 24 Sep 2009, 09:26 AM
  5. suPHP and CHMOD 644
    By DaveS in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 18 Feb 2009, 01:10 AM

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