Page 1 of 1

Problem running php after moving files to server

PostPosted: 27. August 2009 07:02
by OrcaSoul
I just made a small image gallery inside my XAMPP local server - and it works just fine.

I then uploaded the folder to my Godaddy based server...when I tried to run it I get the header - but no footer or body with the images...

I built this using the PHP Easy Downloader V2.0 template from http://www.ironclad.net/scripts/.

The gallery is at http://www.orcasoul.com/ANT/

Any hints?

Re: Problem running php after moving files to server

PostPosted: 27. August 2009 07:32
by Izzy
Try adding this line as the first line of a .htaccess file and upload to the web root (where your site index.php file lives) of your server - or add it as the first line to an existing .htaccess file:
Code: Select all
AddHandler x-httpd-php5 .php
Please let me know back if that helps or not.

I believe that GD uses php 4 for the free servers and you have to tell it to use php 5 for your scripts and may be that is why it works in your Apache in XAMPP with php 5 but not in Apache of GD with php 4.

BTW GD have a support facility for their servers and maybe it would be worth contacting them if the above does not fix your problem.

Re: Problem running php after moving files to server

PostPosted: 27. August 2009 08:25
by OrcaSoul
Thanks for the tip - I created an .htaccess file & added the code into it, and then uploaded it.

It didn't seem to work...just took a long time to load...

I'll contact GD in the morning, see what they have to say.

Thanks.

Re: Problem running php after moving files to server

PostPosted: 28. August 2009 00:05
by OrcaSoul
An update - I contacted Godaddy, and they responded that the account was not configured for PHP...but it was just a matter of upgrading it to run the script. I followed the instructions, and now need to wait 24 hours for it to take effect.

Re: Problem running php after moving files to server

PostPosted: 28. August 2009 00:12
by Izzy
Thanks for the update - it had to be something at GD blocking the pipes. :)

All is well that ends well, and BTW often GD do things quicker than they tell you.

Good luck.

Re: Problem running php after moving files to server

PostPosted: 29. August 2009 12:01
by dmphotography
@IZZY;
Godaddy has amazing customer service! I don't like all the "try to get you to accidentally buy something you don't need" crap you have to deal with when purchasing something, but the fact you can pick the phone up and get instant support from someone who knows what they're doing is priceless.
It's been the best hosting experience I've had.

@OrcaSoul;
I see you got your gallery working, but you have a permissions issue that flashes when you click on an image to enlarge it. I managed to catch it and it looks as simple to fix as changing the directory permissions to 777.

Code: Select all
Warning: fopen(file_info/descriptions/IMG_1577.JPG.dsf)[function_fopen]: failed to open stream: Permission denied in D:\Hosting\2436763\html\ANT\index.php on line 1211


It also gives a warning about fwrite(), which is due to the fopen()failure.

This should be easy to fix, although it is odd to have a read/write problem on a Windows server. I'd contact Godaddy if you can't get it fixed and have them do it for you since it's on a Windows server.