Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - waryah

Pages: [1]
1
PHP Selector / Re: PHP version on specific website (htaccess)
« on: August 26, 2016, 07:37:25 AM »
well, I am not some guru, myself am pretty much just-get-it-done-guy but I would say
Code: [Select]
AddHandler application/x-httpd-php7 .php .php5 .php4 .php3tells Apache whilch file types (identified by extension .php .php5 etc) to be treated as PHP Applications or applications/x-httpd-php7

the other one is possible an incomplete command

that's my guess until someone posts a better response

2
PHP Selector / Re: PHP version on specific website (htaccess)
« on: August 18, 2016, 12:21:39 AM »
oh, and don't forget restarting apache for this to work

3
PHP Selector / Re: PHP version on specific website (htaccess)
« on: August 18, 2016, 12:15:25 AM »
It is a tricky thing to get PHP version working, I have been beating my head around for few days, but finally I have found a kind of workaround.
I was however not able to make a different version of PHP as default and I think the Menu Item PHP Version Switcher is pretty much useless, or at least for me it was, even after many attempts I was unable to get it working.

But here is how I got things working


1. Goto PHP -> PHP Selector


2. Click Install Dependencies

3. Select all the versions that you may want to use for some website and Hit Start Compiler
It will take some time to compile, you can see the progress by typing  tail -f /var/log/php-selector-rebuild.log in your SSH terminal. Once it is completed, You are ready for the next step.


4. ADD PHPx Handler through .htaccess file where you want to change PHP version, remember the version you want to use must be compiled first using the above method.

in my case I wanted to use PHP7 so here is what I added to my .htaccess
AddHandler application/x-httpd-php7 .php .php5 .php4 .php3

for me that was all I needed to do and I was able to use PHP 7 under this directory.

Go ahead try, I hope it will work, if doesn't post back. maybe someone can help.

Have a Nice Day

4
PHP Selector / How can I change my PHP Version to 7.0.x
« on: August 17, 2016, 06:24:52 AM »
I have installed CWP multiple times on my VPS and tried to change my PHP version to 7x but have not been able to do so.
Everything works fine, just can't change PHP version no matter what I do.

Can somebody please help me how I can change my PHP version without ruining my installation just to go through everything again?

Pages: [1]