Problem with .php file extensions Problem with .php file extensions
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Problem with .php file extensions

Started by gschimek, September 13, 2005, 11:02:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gschimek

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?

kegobeer

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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

gschimek

#2
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.

Nibbler

Ask your host for support. With such an odd server setup I expect they'll be asked about this problem frequently.

gschimek

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?

kegobeer

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.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Tranz

They should stick to being an ISP rather than being a web host.