Problem with upload.php (Apache2 ubuntu6.10)

Discussion in 'Server Operation' started by ambiz_x, Feb 12, 2007.

  1. ambiz_x

    ambiz_x New Member

    I get this message:

    Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

    Warning: Unknown: Failed opening '/var/www/pic/upload.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0

    Line 0? and there is no pear directory, in the /usr/share/ directory.:confused:

    What to do?

    ambiz_x
     
  2. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    I guess you're trying to install some kind of web application that needs the PEAR extensions? When does this error show?
     
  3. falko

    falko Super Moderator ISPConfig Developer

  4. ambiz_x

    ambiz_x New Member

    No I'am referring to this tutorial. http://www.howtoforge.com/scan_viruses_with_php_clamavlib_p2

    I had it working as it is at above page, but when I changed directory to
    /var/www/pic the problem started.

    Command: chown www-data:www-data /var/www/pic
    and change in script:upload to pic

    message:
    Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0

    Warning: Unknown: Failed opening '/var/www/pic/upload.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0

    and when I tray to do it, as it as describe at above page. I get same message, and it worked before.


    Hoooping for a solution. ambiz_x:eek:
     
  5. falko

    falko Super Moderator ISPConfig Developer

    That's page 2 of the same tutorial... :rolleyes:

    Did you replace all occurrences of /var/www/upoads with /var/www/pic?
     
  6. ambiz_x

    ambiz_x New Member

    Yes I did.
     
  7. ambiz_x

    ambiz_x New Member

    But not this line:
    <form method="post" action="upload.php" name="fileupload" enctype="multipart/form-data">

    The up load page name is upload.php.
     
  8. ambiz_x

    ambiz_x New Member

    I'am gona handle this problem, as it is winXP. Format reinstall.
    Solution for all computer problemes.
     

Share This Page