 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
January 22nd, 2006, 08:17 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jan 2006
Posts: 207
| Cannot upload photos
Hello,
I've just installed photopost for the first time and am very eager to get it working. Only prob is I cannot upload photos. As soon as I click upload/submit I get the following error:
Warning: move_uploaded_file(/home/httpd/html/mydomain/forums/gallery/uploads/1/photo1.JPG): failed to open stream: Permission denied in /gallery/image-inc.php on line 37
Warning: move_uploaded_file(): Unable to move '/tmp/phpXTfSMS' to '/home/httpd/html/mydomain/forums/gallery/uploads/1/photo1.JPG' in /gallery/image-inc.php on line 37
What permissions should the uploads directory be? I've tried setting it to 777, but the same prob occured.
Thanks in anticipation.
|
| |
January 22nd, 2006, 08:25 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,680
|
Hello the uploads and data directories need to be 777 as well as all there child directories.
Your issue is that the uploads/1 directory is not 777
|
| |
January 22nd, 2006, 08:29 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jan 2006
Posts: 207
|
Thanks Chuck! Now working. Sorry to waste your time. Just so others can see, the correct permissions are pasted below:
photopost
images (chmod 755)
uploads (chmod 777)
help (chmod 755)
data (chmod 777)
1 (chmod 777 - including subdirectories)
2 (chmod 777 - including subdirectories)
500 (chmod 777 - including subdirectories)
languages (chmod 755) (a
stylesheets (chmod 777)
templates (chmod 777)
forums (chmod 755)
|
| |
April 2nd, 2006, 02:18 PM
|
#4 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2006
Posts: 7
|
How do I set directory premissions if I am on a windows server?
For example
photopost
images (chmod 755)
uploads (chmod 777)
help (chmod 755)
data (chmod 777)
1 (chmod 777 - including subdirectories)
2 (chmod 777 - including subdirectories)
500 (chmod 777 - including subdirectories)
languages (chmod 755) (a
stylesheets (chmod 777)
templates (chmod 777)
forums (chmod 755)
I have the ability to connect remotely to my dedicated server via windows remote desktop.
|
| |
April 2nd, 2006, 02:47 PM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,680
|
You need to set the gallery directory to READ WRITE and then uploads and data to READ WRITE EXECUTE
|
| |
April 2nd, 2006, 03:18 PM
|
#7 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2006
Posts: 7
|
Okay I have no errors in adm-index.php. But still am unable to upload.
On my last installation error I get this error
Warning: fopen(C:/Inetpub/vhosts/mydomain.com/httpdocs/photopost/config-int.php): failed to open stream: Permission denied in C:\Inetpub\vhosts\mydomain.com\httpdocs\photopost\install.php on line 1652
Warning: fwrite(): supplied argument is not a valid stream resource in C:\Inetpub\vhosts\mydomain.com\httpdocs\photopost\install.php on line 1653
Warning: fclose(): supplied argument is not a valid stream resource in C:\Inetpub\vhosts\mydomain.com\httpdocs\photopost\install.php on line 1654
Last edited by NemoTech; April 2nd, 2006 at 03:20 PM.
|
| |
April 2nd, 2006, 03:56 PM
|
#8 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2006
Posts: 7
|
Looks like i needed to allow users in the admin. |
| |
April 2nd, 2006, 04:13 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,680
|
Allow users into the admin no way you do not do that.
The error above tells me you have not set the gallery directory to writable.
You need to set permissions as stated above.
If you can not upload after you get things installed right then you would need to post your error but as you found that other thread you can see common issues with permissions and it is easier to use GD2 if you have it.
|
| |
April 2nd, 2006, 04:33 PM
|
#10 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2006
Posts: 7
|
GD2 did the trick.
Oh I meant I have to give users permission from the admin to upload pictures. |
| |
April 2nd, 2006, 05:15 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,680
|
Yes you need to set permissions after an install accordingly |
| |
July 24th, 2006, 02:46 PM
|
#12 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2006
Posts: 18
|
My Photopost has been working fine until today.
My server has just given me this notice "If you have a script that is not executing, please ensure the permission on the file is set to CHMOD 755. Scripts or folders that are chmodded to 777 will no longer work due to security risks involved with 777 settings. Setting 755 is equivalentto 777 in the new environment."
As far as I can tell all my permissions are correct but I'm getting this message "Warning: move_uploaded_file(/home/liddyslo/public_html/Photopost/uploads/2/liddyinsand.jpg): failed to open stream: Permission denied in /home/liddyslo/public_html/Photopost/image-inc.php on line 37
Warning: move_uploaded_file(): Unable to move '/tmp/phpbDWqDZ' to '/home/liddyslo/public_html/Photopost/uploads/2/liddyinsand.jpg' in /home/liddyslo/public_html/Photopost/image-inc.php on line 37"
Can anyone help? I'm very new to PHP and all.
I also have an issue with thumbnails not showing up in Members Galleries alone. I don't know if this is related.
My site is http://www.liddysloft.com/Photopost |
| |
July 24th, 2006, 04:17 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Oct 2005
Posts: 264
|
I changed all my 777's to 755 when I discovered that my host did not run php as an Apache module (ie it runs as a cgi) and was not happy with anyone having 777 folders in their sites. Photopost works fine this way for me. There were an awful lot of folders to change though! (ie hundreds). Are you sure you got them alll? (it is easier to do it with a script if you know how).
Last edited by pistebasher; July 24th, 2006 at 05:21 PM.
|
| |
July 25th, 2006, 12:48 PM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Sep 2002
Posts: 201
|
chmod -R <number> <directory>
-R is for recursive mode, so it will change all directories and all files in the <directory> you specify.
<number> would be the permission you would want to change it to (ie. 777, 755, etc.)
|
| |
July 25th, 2006, 03:26 PM
|
#15 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2006
Posts: 18
|
Okay, I've checked each and every folder and file under data and uploads and I'm still getting the same message. Am I missing something?
Warning: move_uploaded_file(/home/liddyslo/public_html/Photopost/uploads/2/liddyinsand.jpg): failed to open stream: Permission denied in /home/liddyslo/public_html/Photopost/image-inc.php on line 37
Warning: move_uploaded_file(): Unable to move '/tmp/phpicxmqs' to '/home/liddyslo/public_html/Photopost/uploads/2/liddyinsand.jpg' in /home/liddyslo/public_html/Photopost/image-inc.php on line 37
|
| |
July 25th, 2006, 04:15 PM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Oct 2005
Posts: 264
|
Re your post above, I can see thumbnails in some parts of your member galleries but not others. Is that what you mean? Have you tried rebuilding the thumbnails?
|
| |
July 25th, 2006, 04:32 PM
|
#17 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2006
Posts: 18
|
Okay, I've tried rebuilding before to no avail, but TODAY it is working and I now have thumbnails. Thank you! Thank you!
Any ideas about the upload problem?
|
| |
July 25th, 2006, 05:57 PM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,680
|
We require permissions to be 777 on the uploads and data directories to allow successful file uploads. You might want to inquire with your new host setup if they allow 755 permissions to act like 777 so PHP commands like move_uploaded_file will work.
|
| |
July 26th, 2006, 07:43 AM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Oct 2005
Posts: 264
|
My host is site5 and 755 permissions definitely work for me.
|
| |
July 26th, 2006, 09:05 AM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,680
|
Pistebasher yes your host has it setup correctly to allow file uploads on 755 evidently this host does not.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | Can't upload Photos | DataAve | Photopost Pro Installation & Upgrades | 3 | November 16th, 2005 07:34 PM | | can not upload photos :( | majed | Photopost Pro Bug Reports | 2 | October 11th, 2005 01:05 AM | | Cannot upload photos | amymarco | Photopost Pro Installation & Upgrades | 26 | May 12th, 2005 09:41 PM | | Can't upload photos... | banuchi | Photopost Pro Installation & Upgrades | 12 | March 19th, 2005 11:56 AM | | Photos will not upload | bill03 | Photopost Pro Installation & Upgrades | 1 | August 20th, 2004 08:10 AM | All times are GMT -5. The time now is 08:38 AM. | |