Prev Previous Post   Next Post Next
  #1  
Old 26th March 2009, 19:47
AdrianSmithUK AdrianSmithUK is offline
Junior Member
 
Join Date: Mar 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default PHP Uploader Fails to Stream

Hello

About a month ago projektfarm kindly setup ispConfig v2.7 on my CentOS5.2 server. (Which was well worth the money!!!)

I am now working on a project where I need to use PHP scripts to:

1. Create / Delete temporary .csv files using PHP commands.
2. Upload .csv files to the server

With the default ownership settings (web10_admin:web10) I currently get an error when I try creating/ deleting/ uploading files.
-------------------------------------------------------------
Warning: copy(/home/www/web10/web/test/uploadsdigreadout11.jpg) [function.copy]: failed to open stream: Permission denied in /home/www/web10/web/test/uploads/uploader.php on line 6
Could not copy file
-------------------------------------------------------------

I have found a partial solution by changing the ownerships as follows:

# chown -R -v -f apache:apache /home/www/web10/web/

However, with the ownerships set to apache I can't administer the files via ftp. I get another error message saying that I don’t have permission.

I guessed that I could add apache to the web10 group and that this would fix things. So I changed all of the files back to (web10_admin:web10) ownerships and added apache to the web10 group:

# usermod -a -G apache,web10 apache

#vi etc/group

Shows:

web10:x:10010:admispconfig,web10_admin,apache

However, the upload script still fails to stream. Same error as shown previously.

All of the files and directories were chmod'ed to 775.

Does anybody know the solution?

Kind Regards,

Adrian Smith
London
Reply With Quote
Sponsored Links
 

Bookmarks

Tags
group, ownerships, php, upload

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06
Improve the Firewall rules vaio1 Installation/Configuration 0 10th May 2008 20:44
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 10:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18


All times are GMT +2. The time now is 18:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.