[PlugIn] PHP Version selector FREE!

Hello,

I have installed it on DA version 1.32.3 but there is no link into the admin and user accounts.
I have the standard skin and Language from directadmin..

All others servers are ok, whats going rong?
 
Update

Version 0.95 allow multiline just like DA wants
 
so this thing is still working?

i have lots of users telling me that its not working.

and ended up, i have to tell them to change the file extension to .php5 and also change the extension in the scripts...


Question: do i have to change those Mime Type editor ?
 
Last edited:
This plugin is only a "writer" to modify the file .htaccess of each domain. It always work as it is.
If you server changes you need to change the configuration of this plugin.
 
this is what i did.
i am using php4, i made a phpinfo.php and i see its php 4.4

then i go into the plugin and change my site to php5. and i check the phpinfo.php again. but it is still php4.4




is there a way i can test it?

like how do i know i am running on php4 or php5?
 
Last edited:
Look in directadmin/plugings/phpvs/data/php4cgi.txt

I use for php4 CGI:
<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$"> # phpvs v4
AddHandler x-httpd-php4 .php # phpvs v4
</FilesMatch>

and for php5 CGI:
<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$"> # phpvs v5
AddHandler x-httpd-php5 .php # phpvs v5
</FilesMatch>

Its working on CentOS 5.2 and Directadmin all versions.
 
i only have

ddHandler x-httpd-php4 .php .php3 .php4 .phtml


in my directadmin/plugings/phpvs/data/php4cgi.txt
 
And what do you expect to see there?
Just overwrite the file via admin interface or via shell. And put into the file whatever you want.

P.S. Did you download the latest release?
 
As I've already said, edit your

/usr/local/directadmin/plugins/phpvs/data/php4cgi.txt

remove everything and add lines:

Code:
<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
AddHandler x-httpd-php5 .php5
AddHandler x-httpd-php4 .inc .php .php3 .php4 .phtml
</FilesMatch>

/usr/local/directadmin/plugins/phpvs/data/php5cgi.txt

remove everything and add lines:

Code:
<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
AddHandler x-httpd-php4 .php4
AddHandler x-httpd-php5 .inc .php .php3 .php5 .phtml
</FilesMatch>

In case, you use PHP as CGI (suPHP).
 
alright. i have done adding it :)

so now how can i test if i am on php5.....

oh i have set the plugin to php5 too.
 
installation did not work

I got the following message while installing the plugin.
Details

phpvs successfully downloaded
Error unpacking /usr/local/directadmin/plugins/phpvs/plugin.tar.gz : Error restoring file /usr/local/directadmin/plugins/phpvs/plugin.tar.gz : tar: Unrecognized archive format: Inappropriate file type or format : tar returned error code 256

No install.sh script was found. Script not executed.
Error with install script

My system runs freebsd 6.1

Any ideas?
 
PHP Selector should be a standard option in DA now as far as im concerned. If DA is going to approve custombuild and even encourage its use as per the knowledgebase they should provide a way to select which version of php you want to use from DA. Without any kinds of hack or plugin.
 
I got the following message while installing the plugin.
Details

phpvs successfully downloaded
Error unpacking /usr/local/directadmin/plugins/phpvs/plugin.tar.gz : Error restoring file /usr/local/directadmin/plugins/phpvs/plugin.tar.gz : tar: Unrecognized archive format: Inappropriate file type or format : tar returned error code 256

No install.sh script was found. Script not executed.
Error with install script

My system runs freebsd 6.1

Any ideas?
Any ideas?

Make sure, that you've downloaded the whole tar.gz-file, and can untar it manually.
 
tar error message

I tried this tar -xf plugin.tar.gz

and get this message:

tar: Unrecognized archive format: Inappropriate file type or format

I am on a freebsd box
 
Back
Top