coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: gschimek on September 13, 2005, 11:02:32 PM

Title: Problem with .php file extensions
Post by: gschimek on September 13, 2005, 11:02:32 PM
My site is hosted by Earthlink and they are running PHP version 4.  The problem is that any php scripts run on there will only work with a .php4 extension.  I tried changing install.php to install.php4 and it ran, but after putting in the initial info, it errored out, saying that install.php couldn't be found.

Is there a way to get around the .php4 issue?
Title: Re: Problem with .php file extensions
Post by: kegobeer on September 13, 2005, 11:22:06 PM
Ask your host to enable .php files.  If they won't, you could try using htaccess (if you are on an Apache powered webserver) to redirect .php requests to .php4.  If you can't do that, then you'll have to open every file up, and change .php to .php4.  This may work in your htaccess file:

RewriteEngine ON
RewriteRule ^([a-zA-Z]+)\.php$ $1.php4 [L]


It should automatically redirect .php requests to .php4.
Title: Re: Problem with .php file extensions
Post by: gschimek on September 14, 2005, 12:05:13 AM
I put that file in my coppermine folder, called it .htaccess, tried it with chmod 644 and 755, and always get a 500 Internal Server Error.  If I delete the file, it works like before but still have the php4 problem.

Any ideas.
Title: Re: Problem with .php file extensions
Post by: Nibbler on September 14, 2005, 08:50:55 AM
Ask your host for support. With such an odd server setup I expect they'll be asked about this problem frequently.
Title: Re: Problem with .php file extensions
Post by: gschimek on September 14, 2005, 03:38:01 PM
Well, I called them up again (Earthlink) and asked them what they could do for me.  Their answer was to try putting a 4 at the end of the extensions, and if that doesn't work, I should look for an alternative script that will work.  I thought that was a load of bulll.  Since I also had problems a couple months ago with their implementation of Perl not working with a new version of my forums, I'm going to look for another web host.

So, does anyone have a good webhost that they can suggest to me?
Title: Re: Problem with .php file extensions
Post by: kegobeer on September 14, 2005, 04:36:18 PM
There are plenty of good hosts - check out the general discussion board.

They sound like lazy hosts - all they have to do is edit the httpd file and add

AddType application/x-httpd-php .php

I guess that's too much work for them, or they have absolutely no idea what they're doing.
Title: Re: Problem with .php file extensions
Post by: Tranz on September 14, 2005, 04:54:48 PM
They should stick to being an ISP rather than being a web host.