![]() ![]() You would create a PHP file with the following contents in your document root or another directory that is configured for web access: You can verify the location of the php.ini configuration file this way as well. The phpinfo() page should show the correct version of PHP and LiteSpeed as the Server API. You can check that your PHP installation is correct by creating & then viewing a phpinfo() page. If you are using external applications other than OpenLiteSpeed’s default external application “lsphp5,” see our guide to setting up multiple PHPs for further details. The above command symbolically links the new version of PHP to the place OpenLiteSpeed’s default external application looks for PHP. The easiest way to do this is from the command line: ln -sf /usr/local/lsws/lsphp56/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp5 This is not the place LSWS normally looks for PHP, so we will now need to direct LSWS to look there. Full list of available packages =įull list of all available packages Direct LSWS to the Location of the Installed PHPĪs noted above, the LiteSpeed Repository installs PHP to /usr/local/lsws/lsphp5x/bin/lsphp. See our guide to setting up multiple PHPs for further details. This allows you to easily install multiple versions of PHP because different versions of PHP are installed to different directories. Thus PHP 5.6 would be installed to /usr/local/lsws/lsphp56/bin/lsphp. The LiteSpeed Repository automatically installs PHP to /usr/local/lsws/lsphp5x/bin/lsphp where 5x is the version and subversion. The following command will install LSPHP 5.6: yum install lsphp56 lsphp56-common lsphp56-mysql lsphp56-gd lsphp56-process lsphp56-mbstring lsphp56-xml lsphp56-mcrypt lsphp56-pdo lsphp56-imap lsphp56-soap lsphp56-bcmath Once you’ve added our repository, you can use yum to install PHP for LiteSpeed with a variety of modules. Use the following commands to add our CentOS/AlmaLinux/RockyLinux repositories: sudo wget -O - | sudo bash For Debian and Ubuntu Users sudo wget -O - | sudo bash ![]() Contains multiple opcode caching options: APC, Xcache, Zend Opcache.įor CentOS/RHEL Users Add EPEL Repository yum install epel-release Add LiteSpeed Repository.Contains multiple possible MySQL support packages (via native driver or client library).Contains all frequently used PHP packages.Easily install multiple versions of PHP (by default installed to different locations).(Do not have to wait for a new PHP version to be released.) Contains most up-to-date versions of LSAPI.You can install PHP from LiteSpeed Repository Installing PHP from the LiteSpeed Repository Direct OpenLiteSpeed to the Location of the Installed PHP.Install PHP for OpenLiteSpeed from the Repository.Direct LSWS to the Location of the Installed PHP.Installing PHP from the LiteSpeed Repository.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |