View Full Version : help (please)
recomdos
08-27-2005, 09:57 PM
Firstly, hello everyone.
I'm very new to server stuff, with the likes of all this php and stuff, so you may need to go steady with me! Also, I've tried reading and searching for as much help as I can before having to submit to asking another question, which is more than likely VERY common (so my apologies).
I've uploaded and installed the latest pixelpost software, and I'm lookign forward to giving it a whirl! (well - if it's all possible).
Everything was going fine, until I tried to upload my test image. Here is where I got the first problem with the CHMOD 777. I tried to change this in my ftp software on the folder attributes as instructed, and looked like it all went well! :D Then I kept getting the same error, so I went and checked the folders again and they have reset! :( I checked the help on my hosts' site and it says all folder permissions have to be 755. Already I was thinking 'bugger - it's not gonna work'. After a bit more reading I saw all the talk of these /images/ folders, so I went on a hunt around for this, and set it to the most common recommendation of just that.
I then tried another image upload, but I get a different error now :eek: lol - well at least it's different! The error is this:
Warning: move_uploaded_file(/images/20050827213934_me.jpg): failed to open stream: No such file or directory in C:\Inetpub\vhosts\recommendeddosage.co.uk\httpdocs \gallery\admin\index.php on line 419
Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\Temp\php8AA.tmp' to '/images/20050827213934_me.jpg' in C:\Inetpub\vhosts\recommendeddosage.co.uk\httpdocs \gallery\admin\index.php on line 419
Also here is my server info, as I know all the gods out there require it and not the use of the traditional crystal ball! lol
Host Information
PHP-version 4.3.11 (Pixelpost's min requirement: PHP version 4.3.0)
MySQL version 4.1.12-nt (Pixelpost's min requirement: MySQL 3.23.58)
GD-lib bundled (2.0.28 compatible) with JPEG support
Server software Microsoft-IIS/6.0
EXIF Pixelpost is using exifer v1.5 for EXIF information.
Guessed imagepath: /gallery/images/
Configured Imagepath /images/
Image Directory: Does Not Exist (should be /images) - Thumbnails folder not writable!
You must set correct permissions on this folder or you will not be able to create any thumbnails.
Set the folder to chmod 777 (read, write and execute permissions for owner, group and world).
Thumbnails Directory: Does Not Exist (should be /thumbnails) -
Language Directory: Does Not Exist (should be /language)
Addons Directory: Does Not Exist (should be /addons)
Includes Directory: Does Not Exist (should be /includes)
Templates Directory: Does Not Exist (should be /templates)
Now just looking at that - it looks like I still have the 777 error too!
If anyone could help me I would be so most grateful, and apologies once more for being so long winded!
Thanks in advance everyone!
Joe[y]
08-27-2005, 10:00 PM
try your configured image path as ../images/ rather than just /images/
../images/
recomdos
08-27-2005, 10:08 PM
WOW - super fast reply!
Thanks Joey.
Ok - well it hasn't fixed the problem (well there could be more) but it has fixed everything in the general info:
Guessed imagepath: /gallery/images/
Configured Imagepath ../images/
Image Directory: OK - Can we write to the directory? YES.
Thumbnails Directory: OK - Can we write to the directory? YES.
Language Directory: OK
Addons Directory: OK
Includes Directory: OK
Templates Directory: OK
so that's BRILL! I didn't realise it literally needed two fullstops before!
Great, so that being fixed, I refreshed everything, and tried another attempt at uploading, but get the same error:
Warning: move_uploaded_file(../images/20050827220655_me.jpg): failed to open stream: Permission denied in C:\Inetpub\vhosts\recommendeddosage.co.uk\httpdocs \gallery\admin\index.php on line 419
Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\Temp\php8AD.tmp' to '../images/20050827220655_me.jpg' in C:\Inetpub\vhosts\recommendeddosage.co.uk\httpdocs \gallery\admin\index.php on line 419
So you think there is something easy to fix from here? Is it anything to do with this CHMOD stuff?
Thanks very much mate,
p.s. I was actually checking out your photography whilst you were replying - loving the shot of that little insect! Good stuff!
Joe[y]
08-27-2005, 10:14 PM
thanks. i like to make replies to threads that present the problem clearly like yours has.
i'm not 100% sure of the solution but have a shot at adding the following line to the very top of your admin/index.php and reupload the file :
// error_reporting(0);
then see what happens.
recomdos
08-27-2005, 10:25 PM
cool - at least I ain't peein' everyone off yet. and of course anyone that can help me needs as much info as possible!
right, when you said add that line, I did it like this on my web address:
admin/index.php?error_reporting(0);
was that what you meant? (I know - I'm a bit slow - heh!) well if so it just came back to the Admin page to post a new image. There was nothing that stood out very much.
However, one thing I forgot to say at the very begining, and i have been worried about this. I already have a little blog setup. Now I couldn't ass another database, so just used the same one as I did on my blog - perhaps this is why it's not working? Although I'm sure lots of people have blogs and photoblogs and lots of stuff running off the same databases - no? :S
Joe[y]
08-27-2005, 10:27 PM
sharing the database is no problem.
but no - i didn't express myself clearly. sorry.
i meant open /admin/index.php in a text editor, add // error_reporting(0); to the very top line and upload again.
recomdos
08-27-2005, 10:45 PM
ok - right I did that, in the middle of my machine crashing twice and not being able to overwrite teh file on my FTP! grrrr
so what I did:
open the file admin/index.php in Dreamweaver, then I put in that bit of info: // error_reporting(0); straight after the very first tag at the top, so it looked like this:
<?php // error_reporting(0);
I've just uploaded it all again and nothing looks different (but I've probably done that editing bit wrong)
still get the errors:
Warning: move_uploaded_file(../images/20050827224306_me.jpg): failed to open stream: Permission denied in C:\Inetpub\vhosts\recommendeddosage.co.uk\httpdocs \gallery\admin\index.php on line 419
Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\Temp\php8B2.tmp' to '../images/20050827224306_me.jpg' in C:\Inetpub\vhosts\recommendeddosage.co.uk\httpdocs \gallery\admin\index.php on line 419
Error
Upload went without error.
I was thinking I could just delete the whole lot, and reload it all - fix the image file like u helped ../images/ and see if anything happens from there? What do ya think?
Thanks very much for all this help, late on a Saturday night! :D
recomdos
08-27-2005, 11:32 PM
...to update, I deleted it all from my server, reinstalled under a new directory - checked all the settings, sorted the ../images/ and it still remains to have the following error:
Warning: move_uploaded_file(../images/20050827233112_rkuk.jpg): failed to open stream: Permission denied in C:\Inetpub\vhosts\recommendeddosage.co.uk\httpdocs \photoblog\admin\index.php on line 419
Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\Temp\php8B7.tmp' to '../images/20050827233112_rkuk.jpg' in C:\Inetpub\vhosts\recommendeddosage.co.uk\httpdocs \photoblog\admin\index.php on line 419
Error
Upload went without error.
so I'm still baffled! lol I still can't set attributes to the folders: images & thumbnails so I think it could be this - anyone else?
Cheers :P :)
raminia
08-28-2005, 10:29 AM
search the forum . I remember similar problem with the host.
Joe[y]
08-28-2005, 10:30 AM
I'm almost sure that sticking
error_reporting(0);
on the line below <?php by itself should do the job. This is error is simply caused because you are running on a windows server. I'll search the forum and find the previous solution.
raminia
08-28-2005, 10:31 AM
it think your host server does not permit moving files. ask them to set permission for uploading purposes.
recomdos
08-28-2005, 10:46 AM
hi guys (and morning Joey)
good to see you all up ready to help me! :p I've been having a search around and I did think it was the server software that has been the problem. I'm going to try the php command now though joey - stand by.
:)
recomdos
08-28-2005, 10:53 AM
right - I just tried that again, and no joy. :(
to confirm this is the info I put in the admin/index.php file:
<?php
// error_reporting(0);
/*
Pixelpost version 1.4.2
index.php version 1.7
I'm beginning to think this might just not work for me :(
Joe[y]
08-28-2005, 11:01 AM
<?php
error_reporting(0);
try this. sorry, i think my original suggestion was a bit thoughtless. maybe this will have more luck. don't give up quite yet.
recomdos
08-28-2005, 11:06 AM
thanx Joey mate - you are a true gent.
I will try removing the /* and see what happens.
I've just been on my hosting site and looked through a couple of tutorials. There was one that demonstrates the method to CHMOD directories (which I was doing) excpet I don't get any confirmation when I do it - I wonder if this is the problem?
back in a moment!
recomdos
08-28-2005, 11:15 AM
right - we got something different now:
Parse error: parse error in C:\Inetpub\vhosts\recommendeddosage.co.uk\httpdocs \photoblog\admin\index.php on line 5
...any ideas on what this means?
Joe[y]
08-28-2005, 11:54 AM
what is on line 5?
Joe[y]
08-28-2005, 11:56 AM
sorry! keep /* !!!! it's what comments out our little disclaimer at the top of the file. you should have
<?php
error_reporting(0);
/*
Pixelpost version 1.4.2
index.php version 1.7
recomdos
08-28-2005, 12:19 PM
right - done that.
not sure if it is identifying the results we want though, as it takes me to the upload page as usual. So I attempted to do an upload, and all I get in a red box is:
Error
Upload went without error
There are no strings of text with error numbers etc, and the image still does not upload. :confused:
Joe[y]
08-28-2005, 12:21 PM
http://forum.pixelpost.org/showthread.php?t=1924&highlight=Upload+error
what is your configured imagepath now? is it ../images/ ? this helped in the problem above.
recomdos
08-28-2005, 12:25 PM
yeah - it still remains at
../images/
Joe[y]
08-28-2005, 12:33 PM
it think your host server does not permit moving files. ask them to set permission for uploading purposes.
raminia's suggestion is the most likely. get in touch with your host. good luck.
recomdos
08-28-2005, 12:36 PM
okay dokay - thanx very much for all your help!
It's very much appreciated.
Any suggestions on how to word my problem to my host? Ya know - so they understand me! lol
Joe[y]
08-28-2005, 12:42 PM
um.. i'd just explain to them that you are attempting to use a 'very popular photoblogging application' but are having troubles uploading photos due to the permissions enforced by the host. Also to prove the point quote an error as such:
Warning: move_uploaded_file(../images/20050827224306_me.jpg): failed to open stream: Permission denied in C:\Inetpub\vhosts\recommendeddosage.co.uk\httpdocs \gallery\admin\index.php on line 419
If they're a half reasonable host they'll give you the permissions to upload files.
recomdos
08-28-2005, 12:57 PM
hey guys!
I managed to chat to them on their support chat. On a my windows server I can't change CHMOD through FTP, so I did it through the admin cp (like I did lots before) and it's all working!
check out my test image (http://www.recommendeddosage.co.uk/photoblog/)
THANX so much! Now I can go and play for a bit and see what happens - no doubt I will be back for LOTS more help in the future!
Joe[y]
08-28-2005, 03:29 PM
grrrrrreat. i like it. nice photo. the resolution is a bit big though - even on 1024 it's too big. i wouldn't recommend any more than 700px width.
recomdos
08-28-2005, 03:33 PM
lol - yeah. I know - it's hooooge! I just threw it up there asa test.
what I want to do now is pic the template. there are some really good ones!!! I just want a nice minimalist one. simple buttons, no thumbs - maybe a comments page.
I've just spotted this and fell in love with it instantly! http://zoomcollective.com/
If I could get mine somethign like that to fall in with my original site design - i'd be a happy bunny. (but one step at a time :rolleyes: ;) )
Joe[y]
08-28-2005, 05:09 PM
well then you have a reasonably easy job. minamilist designs usually have minimal code!
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.