Login or Register

RSS IconRecent posts in this topic

avatar
Nikola on Nov 8. 2006. 7:16 pm
Question: how to run activeCollab when your hosting needs a .php5 extension?

A lot of hosting solutions have both PHP4 and PHP5, on the same server. To make the difference, a file with .php extension is interpreted by PHP4, a file with PHP5 is interpreted by PHP5...

First solution: you rename every file with a php5 extension, and then you modify to code to let includes work properly, and then you pray, and then you try to find the few lines of code that are still buggy... and then you redo the same thing for every release! OK, I've done that once, thank you.

Second solution (worked for me): create a .htaccess file at the root of the aC folder.
1. Create a text file named .htaccess
2. Insert the following line:
AddType x-mapp-php5 .php
3. Drop the file on your aC folder
4. done!
(just run a phpinfo() to check!)

Notice: this directive works for my hosting (1and1). It may be different from one hosting to another. On Google, I found most of the time the following directive (not tested):
AddType application/x-httpd-php5 .php .php5
avatar
Bigholly on Nov 25. 2006. 8:06 pm
Nikola,

Thanks so much - "AddType x-mapp-php5 .php" worked like a charm in my 1and1 .htaccess file!

For you other 1and1 types out there - be careful. I pinged the 1and1 staff (who are generally ok), and they gave me this to add:

AddType text/x-server-parsed-php5 .php

which didn't work for me at all. Every browser on every platform would simply render the code directly to screen or download it. Not so helpful - so use Nikola's code in line 2 above!

Thanks again.
avatar
zika on Nov 26. 2006. 4:31 am
In my case I had to add one line of code to config/config.php file.
ini_set('allow_url_fopen','on');

First I tried it in .htaccess file :

php_flag allow_url_fopen on

but it just made an 'internal server error', so I decided to do what s the easiest for me
and wrote it in config.php because that file is always loaded.

I hope it will help somebody
Topic is locked. If you have something important to say about issues discussed on this page please write at hi@a51dev.com.

RSS IconRecent posts in this topic