Page 5 of 5 FirstFirst ... 345
Results 81 to 83 of 83

Thread: HOWTO: PHP 5 CLI to PHP 5 CGI + suPHP

  1. #81
    Join Date
    Nov 2004
    The Netherlands
    Hi Wanener,

    Look at this thread:

    I think you need to build suPHP again to fix this issue.

    cd /usr/local/directadmin/custombuild
    ./build update
    ./build clean
    ./build suphp
    For your other question. I think PHP-CGI is the best way to run the PHP websites. To make it install suPHP as well. It will tell every account to use only its "base directory". So every account is "isolated" from the other on the server. With Joomla (or other programs) installs you never need to give the public read-write permissions to a specific directory for e.g. components or other plugin's.
    If you run CLI, the user with certain permissions for every website is "apache:apache" and if there is a problem with one of the websites a hacker could get to other websites as well. Still there are enough ways to secure your server a little bit more through firewall settings or settings with "noexec" on the temp dir for example.

    Hope this helps.



  2. #82
    Join Date
    Dec 2004
    I'm having a problem running suphp with user php.ini
    I've followed the tutorial and everything works EXCEPT the SetEnv PHP_INI_SCAN_DIR isn't working. When I open a phpinfo the variable remains empty and therefore the user's php.ini isn't being applied.

    Logs say nothing so troubleshooting is difficult

    PHP Version 5.4.21

    users httpd.conf:
    Under Virtualhost directive below ErrorLog
    SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/username/php/

    ownership of php.ini is user (also tried with root)

    Does anyone have a clue as to what's going on??

  3. #83
    Join Date
    Oct 2007
    Hi RoRoo,

    Didn't you forget to rewrite the config files ?

    echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. HOWTO: mod_fcgid in CB 2.0, switchable to suphp
    By Jan_E in forum CustomBuild 2.0
    Replies: 8
    Last Post: 02-04-2013, 11:44 AM
  2. HOWTO : SuPHP
    By nebukazar in forum How-To Guides
    Replies: 69
    Last Post: 05-20-2007, 06:19 AM
  3. looking voor howto suPHP for apache 1.3 and PHP5
    By snaaps in forum MySQL / PHP
    Replies: 4
    Last Post: 03-29-2007, 01:39 AM
  4. [HOWTO] SuPHP
    By 12Media in forum DirectAdmin General Discussion
    Replies: 5
    Last Post: 02-02-2004, 11:43 PM
  5. [HOWTO] SuPHP
    By 12Media in forum How-To Guides
    Replies: 5
    Last Post: 02-02-2004, 11:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts