Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
litespeed_wiki:cwp:building-php [2017/02/16 22:10]
Johathan Kagan created
litespeed_wiki:cwp:building-php [2018/07/09 01:30]
qtwrk
Line 18: Line 18:
   - Visit the CWP Install %%https://​IP_OR_HOSTNAME:​2031%% and log in.   - Visit the CWP Install %%https://​IP_OR_HOSTNAME:​2031%% and log in.
   - Navigate to PHP Settings -> PHP Selector.   - Navigate to PHP Settings -> PHP Selector.
 +  - Install Dependencies.
   - Next to each new PHP version click on Edit Flags.   - Next to each new PHP version click on Edit Flags.
   - A text box near the top should pop up with ./configure and the compilation flags. ​ Scroll to the bottom of the text box and on a new line add the following: ‘--with-litespeed’. This step is required for each version that is to be compiled.   - A text box near the top should pop up with ./configure and the compilation flags. ​ Scroll to the bottom of the text box and on a new line add the following: ‘--with-litespeed’. This step is required for each version that is to be compiled.
   - After selecting and setting the flags for each version, Click Start Compiler and that is it!   - After selecting and setting the flags for each version, Click Start Compiler and that is it!
 +  - Add following code into ''/​home/​username/​public_html/​.htaccess''​
 +
 +<​code>​AddHandler application/​x-httpd-php56 .php</​code>​
 +
 +Replace ''​56''​ to the PHP version you built and wish to use.
  
  • Admin
  • Last modified: 2018/07/09 15:20
  • by Lisa Clarke