Results 1 to 9 of 9
  1. #1
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    19
    Plugin Contributions
    0

    Default Webhost has disabled some PHP functions

    Hello
    I am currently building a new site for a customer using ZenCart 1.38a


    He has forwarded me an email from his webhost regarding disabling some PHP functions.
    Due to the recent iframe injection attacks ( this exploit allow the hacker to inject certain code to your website and when other users or yourself access the website, the user will be infected by this trojan)on 2 of our servers, we have with immediate effect disabled the following PHP commands : system, passthru, popen, proc_open, shell_exec, exec on all servers until further notice or as when a bug fix is released by cPanel Development Team. Some of you will find that some of your script (especially Gallery) may not be able to work when this is in effect.
    My question is, how does this affect ZenCart? Will it still run?


    Thanks
    Danielle

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

    Default Re: Webhost has disabled some PHP functions

    Disabling these 3 are no problem and quite common for good Server security:
    system, proc_open, shell_exec

    Disabling these will definitely cause problems with many scripts, but not sure about Zen Cart and/or its Modules:
    passthru, popen, exec


    It's a shame the Hoster in question doesn't just setup good Firewall Rules and avoid all issues with the 'iframe' hack without having to severely limit script features for their Clients.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Webhost has disabled some PHP functions

    system, passthru, popen, proc_open, shell_exec, exec
    system - Not needed by Zen Cart
    passthru - Not needed by Zen Cart
    popen - Not needed by Zen Cart unless your Email Transport is "sendmail"
    proc_open - Only needed if your Email Transport is "sendmail"
    shell_exec - Not needed by Zen Cart, but used by some plugin addons to addons like FCKeditor
    exec - Used in just a couple places in Zen Cart, but not critical for normal operation. (ie: mainly to collect some info for the Server Info details in admin)

    Note:
    exec is required by some addons such as the Backup MySQL plugin.
    .

    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.

  4. #4
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    19
    Plugin Contributions
    0

    Default Re: Webhost has disabled some PHP functions

    Thanks guys for your replies.

    I will look at what email function is being used, and the html editor etc

    Thanks again
    Danielle

  5. #5
    Join Date
    Aug 2008
    Location
    Manchester, England.
    Posts
    25
    Plugin Contributions
    0

    Default Re: Webhost has disabled some PHP functions

    Hi I'm trying to install Zen cart and keep running into various problems.

    I'm doing a fresh install on a Linux server with Streamline.net and this is what I get on the system inspection set up screen:

    # PHP API Mode = cgi-fcgi Click here for more info
    # PHP Max Execution Time per page = 20
    # Disabled PHP Functions = shell_exec,exec,system,passthru,popen,proc_open,pass_thru,pcntl_exec,proc_close, proc_get_status,proc_nice,proc_terminate,dl,pclose,pfsockopen,posix_kill,posix_m kfifo


    Will this stop me from installing Zen properly?

    Thanks.

  6. #6
    Join Date
    Nov 2007
    Posts
    270
    Plugin Contributions
    0

    Default Re: Webhost has disabled some PHP functions

    I am doing a community site that will not have a shopping, but I am using many of the zencart parts on "free" host that also disabled many (if not all) PHP function.
    Which PHP functions are used to:
    1. Create a login account
    2. Administer your login account
    3. Contact Us page

    because these pages don't load. (they are blank)
    Tx

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Webhost has disabled some PHP functions

    FAQ on troubleshooting PHP problems causing blank pages: https://www.zen-cart.com/tutorials/index.php?article=82 esp step 2a
    .

    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.

  8. #8
    Join Date
    Mar 2010
    Posts
    1
    Plugin Contributions
    0

    Default Re: Webhost has disabled some PHP functions

    Quote Originally Posted by VRSLogicUnit View Post
    Hi I'm trying to install Zen cart and keep running into various problems.

    I'm doing a fresh install on a Linux server with Streamline.net and this is what I get on the system inspection set up screen:

    # PHP API Mode = cgi-fcgi Click here for more info
    # PHP Max Execution Time per page = 20
    # Disabled PHP Functions = shell_exec,exec,system,passthru,popen,proc_open,pass_thru,pcntl_exec,proc_close, proc_get_status,proc_nice,proc_terminate,dl,pclose,pfsockopen,posix_kill,posix_m kfifo


    Will this stop me from installing Zen properly?

    Thanks.
    Even i have the same problem.

  9. #9
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Webhost has disabled some PHP functions

    Are you also trying to install on Streamline.net? If you are then be aware that you are actually hosting with Fasthosts.

    Basic cart functionality will work, but Shared SSL won't (so don't pay for it).

    Vger
    Quote Originally Posted by jhon_lewis View Post
    Even i have the same problem.

 

 

Similar Threads

  1. v153 PHP Warning: putenv() has been disabled for security reasons
    By Thannaree in forum General Questions
    Replies: 2
    Last Post: 2 Jan 2015, 05:28 AM
  2. v139h PayPal Error After 2 Years, PHP Warning: curl_exec() has been disabled for security r
    By pinksparklegirl in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 4 Aug 2013, 02:50 PM
  3. sqlpatch.php blocked by webhost
    By gilby in forum General Questions
    Replies: 3
    Last Post: 29 May 2012, 08:29 AM
  4. Replies: 3
    Last Post: 28 Mar 2011, 01:17 PM
  5. Disabled PHP Functions
    By oravelon in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 30 Jul 2006, 03:54 AM

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