Changed Server now can't browse to Gallery directory

casilvr
casilvr's picture

Joined: 2002-10-28
Posts: 11
Posted: Mon, 2002-10-28 04:38

I had Gallery running on a different server with no problems. I needed to switch servers and seemed to get everything installed correctly but when I browse to the Gallery directory to start the setup (i.e. domain/gallery) it trys to download a file "gallery". I downloaded it just to see and it was simply a licensing info file. What is wrong. I suspect that either I have not placed Gallery in the proper directory but can't seem to figure it out. If it means anything the old server was using Plesk as the admin tool. The new one is cPanel. Any ideas or advice? :smile:

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Mon, 2002-10-28 15:49

Try using a fresh download of gallery. The only thing you need to keep is your album directory.

 
casilvr
casilvr's picture

Joined: 2002-10-28
Posts: 11
Posted: Wed, 2002-10-30 01:08

Tried reinstalling. Same thing occurs...browse to the /gallery directory and it starts to download a file instead of running the configure process. Tried messing with the permissions to see if that made a difference. It didn't however it does look like when I change the .htaccess file to 777 it rollus up and changes thhe /setup directory to 777 vice 755.

I have gallery running on another server with no problems. Both are linux, the only difference is the control panel. The one with the problem is running cPanel.

Any other idea???

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Wed, 2002-10-30 01:24

What file is it downloading this time?

Try requesting this page

http://yourserver.com/gallery/index.php

(index.php being the important part, replace the rest with your site info). Also, a link to your gallery could be helpful.

 
casilvr
casilvr's picture

Joined: 2002-10-28
Posts: 11
Posted: Wed, 2002-10-30 01:41

I'll go give that a shot. Meanwhile here's a linkto the site: <!-- BBCode Start --><A HREF="http://www.silvrants.com/gallery" TARGET="_blank">gallery</A><!-- BBCode End -->
Thanks for the help.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Wed, 2002-10-30 01:56

Yep, PHP is not configured correctly. Make sure you have PHP support on your server. If you should, you should contact your ISP, because it's not setup correctly. The only other thing that could be wrong is that they are using PHP3, but this version is extremely outdated and shouldn't be used

 
casilvr
casilvr's picture

Joined: 2002-10-28
Posts: 11
Posted: Wed, 2002-10-30 02:57

Kind of what I figured. The version is PHP Version 4.2.3. I don't have lot of confidence in the ISP. I will need to tell them exactly what to do. How can I tell if it's configured correctly. I can do a phpinfo to see what the setting are. I have linked some images with the php config info. See anything wrong?
<!-- BBCode Start --><IMG SRC="http://www.silvrants.com/images/php core config1.jpg"><!-- BBCode End -->
<!-- BBCode Start --><IMG SRC="http://www.silvrants.com/images/php core config2.jpg"><!-- BBCode End -->
<!-- BBCode Start --><IMG SRC="http://www.silvrants.com/images/php core config3.jpg"><!-- BBCode End -->

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Wed, 2002-10-30 03:01

Let me get this straight, PHP is working for other scripts (e.g. your phpinfo script), but not for gallery? If this is the case, it's very weird--your server is returning the source of Gallery, but working for other scripts.

 
casilvr
casilvr's picture

Joined: 2002-10-28
Posts: 11
Posted: Wed, 2002-10-30 03:10

Yes. But I have to login to the cPanel admin screen in order to run phpinfo. I can't run it from the gallery directory at the domain level. I am going to try to install into a different domain and see if I get the same result.

 
casilvr
casilvr's picture

Joined: 2002-10-28
Posts: 11
Posted: Wed, 2002-10-30 03:43

I got the same problem when I installed under a different domain. i did notice that this may have something to do with the .htaccess file in the setup folder. Normally all I get is an error screen, but if I rename .htaccess then setup tries to downlaod. Think .htaccess is not being handled properly which is causing the problem?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7985
Posted: Wed, 2002-10-30 06:40

It sounds like your ISP is doing something unusual with their PHP setup. It sounds like they've got PHP as a CGI and are using .htaccess to control remapping .php files to use the CGI binary.

There are so many different ways that an ISP can do this; it's hard for us to really diagnose your problem. Have you asked your ISP for assistance yet?

 
casilvr
casilvr's picture

Joined: 2002-10-28
Posts: 11
Posted: Wed, 2002-10-30 23:52

Got it fixed. There was a bug in cPanel that was locking out the domains. Everything is running great now. Thanks for all your help.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Thu, 2002-10-31 00:02

You're welcome..hope you enjoy gallery