Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an Apache 2 with PHP 5 (module) running locally for development. It works just fine, but my webhoster requires PHP 5 files to have the extension .php5 (.php files being interpreted as PHP 4 ). Unfortunately, I have not been able to tweak my Apache to correctly process those files. I have the line
in my httpd.conf, but no luck - instead of to the PHP interpreter, .php5 files are sent straight to the browser, resulting in a download dialog
Any help on fixing this would be appreciated, as I'm not keen on keeping my files as .php and having to rename them to .php5 every time I want to upload them.
Did you restart apache after making your changes? You may also need to add something like index.php5 in your DirectoryIndex section of your httpd.conf.
Well it should, that's how you do it. Are you sure you are editing the correct config file? Are you sure it isn't in, say, some VirtualHost directive that doesn't apply?
But anyway, why don't you just keep your local files as *.php if it is working, and simply rename them when you upload to your webhost?
Yes, I am sure. Other changes I've made in the same file have worked before.
Just noticed something strange. When I open a .php5 file in Firefox, the download prompt says, "You have chosen to open [filename].php5, which is a: PHP5 file". Whereas, if I open a directory with an index.php5 in it, it says, "You have chosen to open [empty string], which is a: application/x-httpd-php". That would mean the MIME type is recognized only in the second case. Neither file is interpreted as it should, however.
And I don't want to go the renaming route because it's a pain
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.