Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2007
    Posts
    4
    Plugin Contributions
    0

    Default phpsuexec question

    Hello,

    we had to disable phpsuexec on the server in order for zencart to work. by doing this doesn't it give other users on the server access to specific directory's like the images upload directory which requires its permissions to be set to 777 in order for one to be able to upload to it from within the admin control panel while adding products. were just concerned that this can be a big security problem on the server.

    any input/suggestions are greatly appreciated.

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: phpsuexec question

    Zen Cart runs fine under phpsuexec
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: phpsuexec question

    Quote Originally Posted by Merlinpa1969
    Zen Cart runs fine under phpsuexec
    Ditto that
    Zen-Venom Get Bitten

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

    Default Re: phpsuexec question

    Although true that ZenCart or any other script will work just fine with phpsuexec enabled, it is imporant to note that much work must be done when making the switch -- from PHP as an Apache Module to PHP as CGI.

    With that said, you can greatly increase the security of your 'images' dir. no matter how PHP is run, by using the following code in the '.htaccess' file within your images dir.

    # Prevent directory viewing and the ability of any scripts to run.
    # No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
    OPTIONS -Indexes -ExecCGI


    The above protects your 'images' dir. and all sub-directories within it, no matter what directory permissions are used. Handy when one has forgotten to change permissions, from 777 to 755, after doing some work.

  5. #5
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: phpsuexec question

    Rob, it didnt take alot iof work
    renamed the user and group set www permissions to 755
    then manually changed file and folder permissions from 777 to 755 and 644 to 444
    Zen cart PCI compliant Hosting

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

    Default Re: phpsuexec question

    For changing one account it's not much work at all.

    However, when one is changing a Server full of accounts that were previously using PHP as an Apache Module, much more needs to be done and that is what I was referring to.

    As you know, the following has to be applied to all accounts.

    - change all files & directories owned by 'nobody' to the individual username
    - change all directories with 'whatever' permissions to 755
    - change all files with 'whatever' permissions to 644 : except *.cgi & *.pl of course
    - remove from within all .htaccess files, Apache directives related to PHP
    - various cleanup here 'n there

    Having done this myself, I know it is a big job but one needs to make sure things are done right else Web sites will not work.

  7. #7
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: phpsuexec question

    lol yea we have done it on 3 servers so far
    Zen cart PCI compliant Hosting

 

 

Similar Threads

  1. Problems with phpsuexec
    By dealbyethan.com in forum General Questions
    Replies: 13
    Last Post: 13 Dec 2008, 07:39 PM
  2. Host is installing PHPSUEXEC. Docs sound like it's detrimental to ZenCart.
    By Yizit in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 8 Jun 2008, 09:10 PM
  3. PHPsuexec?
    By kbeard in forum General Questions
    Replies: 7
    Last Post: 3 Feb 2007, 05:47 PM
  4. Setting it up w/o PHPSuExec
    By samad64 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 25 Oct 2006, 07:17 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