PHP can't create files

Discussion in 'Installation/Configuration' started by brandoni, Jun 29, 2010.

  1. brandoni

    brandoni New Member

    When creating a file/folder from within a PHP script it is owned by www-data.

    This fails though, because ispconfig doesn't give www-data write permission on the parent folder.

    Is it possible to get apache to create files using the same credentials as the parent folder? webxx:clientyy

    How else could this be dealt with?
     
  2. brandoni

    brandoni New Member

    Solved

    Switched to suPHP! Had to install it: apt-get install libapache2-mod-suphp
    and then reinstall ispconfig. Perfect chance to update to the newest version.

    note: A different php.ini is used for suphp
     

Share This Page