File upload with PHP (CENTOS 4.4 + ISPConfig)

Discussion in 'Installation/Configuration' started by boppzoli, May 17, 2007.

  1. boppzoli

    boppzoli New Member

    Hello,
    I have a Centos 4.4 installation with ISPConfig and I have a site with a PHP script for uploading images. It works perfectly under Windows with IIS but doesn't under my Centos+ISPConfig box.
    What can I do to enable file upload with PHP in a specigic directory?
    Thank you very much, in advance!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please make sure that the directory where you want to store the file is writable for the apache webserver user. Otherwise your PHP script is not able to save the file there.
     
  3. Hans

    Hans Moderator Moderator

    That's correct and it means that you have to make your /var/www/wexX writeable for the systemuser wwwrun. And of course do not forget to enable php for the website :D
     
  4. boppzoli

    boppzoli New Member

    Thanks

    Thank you very much.
    Now it works. I'm new in linux :)
    I like it!
     

Share This Page