php

  1. zestylemon

    How do I to setup Virtual Host-specific PHP using VHost Template?

    How do I to setup Virtual Host-specific PHP using VHost Template on Ubuntu 20.04.1 LTS? I came across these two articles: * https://openlitespeed.org/kb/how-to-set-up-a-virtual-host-specific-php/ * https://openlitespeed.org/kb/setup-ols-with-more-than-one-php-build/ The article gives...
  2. scottnzuk

    PHP Version In Use Contains Known Vulnerabilities v5.6 php - ADMIN PORTAL ONLY.

    So I run a security scan on my website from intruder.io it has come back with below error message: The version of PHP in use contains a number of known security vulnerabilities which could be used to compromise the system or affect its availability. PHP is a scripting language usually used for...
  3. slowaways

    PHP Backdoor - My WordPress websites was hacked

    I didn't think this was possible, but hackers had enough access to upload a backdoor .php file to various websites hosted via OpenLiteSpeed. They exploited some WordPress vulnerability and uploaded a .php file somewhere containing a backdoor. This file was a backdoor that allowed you to...
  4. S

    OLS not parsing PHP files

    Hello, I have just set up OLS on my Ubuntu 18.04 server. I have compiled PHP from Tools > Compile PHP and it succeeded successfully. I have also created a Virtual Host for a domain, added a script handler for the same (prefix: php handler: lsphp) and added it to the default listener. The site...
  5. I

    vhosts configuration

    OLS v1.6.18 on Ubuntu 18.04 LTS with PHP73 (for Drupal v8 & 9 & phpMyadmin) OLS run as nobody:nogroup I have successfully installed OLS in the "default" configuration - also setup three (3) similar (basic) vhosts (example1.local & example2.local & example3.local) using a simple basic vhost...
  6. R

    Should I switch from nginx?

    Hi all, I'm considering if I should switch from nginx which has been running quite stable for me to be honest. I'm interested in the ability to serve more requests faster, but I'm not sure if my case fits the bill. At my company we run hundreds if not thousands of websites for our clients with...
  7. F

    Upgrading PHP from 7.3.22-1+focal to 7.4

    Hello everybody, I am running a WordPress website using Google Cloud Platform OpenLiteSpeed deployment. Since PHP 7.4 is out, I would like to upgrade. I have tried running sudo apt update and sudo apt upgrade and it resulted in my PHP version updating from v7.3.17-1+focal to 7.3.22-1+focal. How...
  8. bhanusingh

    How do I purge cahce for some custom data that I show ?

    I have a Digital Ocean Server, with openlitespeed droplet installed on it. I also have installed the litespeed plugin in my WordPress install. This is a custom woocommerce project where people come and buy meetings which are time-sensitive events. I am facing issues with able to cache my code...
  9. K

    PHP errors are not displayed

    Hello, I installed OpenLiteSpeed 1.6.14 a day ago and I am experiencing an issue with the PHP errors not displaying. In addition to that, no error messages are logged in any of the server level or virtual host level logs. I tried using: ini_set('display_errors', '1')...
  10. A

    I can't do shell_exec using PHP

    Hello, I'm new here. I've just created a new Wordpress OpenLiteSpeed Droplet on DigitalOcean. When I use PHP to call a python script using shell_exec it doesn't show anything. I've checked the php.ini file and looked for disable_function but there isn't shell_exec there. Please let me know how...
  11. jwbjnwolf

    AddType for parsing PHP in xml files not working

    Hi, I have some RSS feeds being generated from a PHP array. I a while back moved my site to my own server where I run OpenLiteSpeed (reverse proxied through Nginx). My feeds worked fine on the CloudLinux LiteSpeed hosting I used before, with PHP being parsed inside of XML files using this...
  12. L

    Example vhost - Getting upload progress bar to work

    In the Example vhost you have a pop-up that let's us test file upload capabilities. The upload itself works fine but I cannot get the progress bar to work. I get the error: "ERROR -- uploadProgress module not enabled?" At first I thought this had to do with the uploadprogress module for PHP...
  13. A

    php7.2-common and php7.2-readline listed for installation for all PHP 7.x versions

    Hi! I'm new to the OpenLiteSpeed world :) Installed the server on fresh installation of Ubuntu server 18.04 without issues, but when tried to install PHP 7.4, I noticed the above PHP 7.2 packages listed for installation after typing the apt-get install lsphp74 command. This is the output I'm...
  14. ltynk

    Proper way to upgrade PHP version

    Hi, I run OLS on the Ubuntu 18.04 (from cloud image). Is there any proper way how to upgrade PHP version? Now default is 7.3 but I would like to have 7.4. I know I can install lsphp74 package but changes in configuration of server seems to be not working. Should I wait to some newer version of...
  15. humzayunas

    Trying to compile php7.4 with gd and webp support

    I am trying to compile own php using this guide https://openlitespeed.org/kb/build-custom-php-for-openlitespeed/ Prefix path : /usr/local/lsws/lsphp74 Configure options : --with-mysqli --with-zlib --with-gd --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbstring...
  16. G

    Equivalent to header('X-Accel-Buffering: no') in Openlitespeed to disable output buffering?

    Hello, i am moving from NGINX to Openlitespeed. On NGINX to stream a file (php readfile()) i could use header('X-Accel-Buffering: no'); to disable output buffering. How would i do this on Openlitespeed? is there a setting or a special header? Any help is appreciated.
  17. J

    Openlitspeed along with MySQL and not MariaDB

    Hi everyone, I want to install Openlitespeed on Ubuntu 18.04 with MySQL (not MariaDB). I tried to find some information on this but without success. It seems like Openlitespeed work only with MariaDB. The reason for this is I have some php app which have some compatibility issues whith MariaDB...
  18. B

    Php72 - pdosqlsrv install help

    I want to install php_pdosqlsrv on the server but couldn't find enough resources. lsphp 72 board can you help?
  19. V

    PHP UPLOAD SSL HTT2 Error net::ERR_CONNECTION_CLOSED, ERR_SPDY_PROTOCOL_ERROR

    Hi, I have installed SiberianCMS, without problems, I can upload files without the SSL certificate perfectly, when I enable SSL I can no longer upload files from the program. OpenLiteSpeed 1.4.28. PHP 5.6.32. Centos 7 Minimal. Error with: http/1.1 and http/2 Log Server: Error...
  20. V

    PHP Commands

    How can I execute: /usr/local/lsws/lsphp56/bin/lsphp -d memory_limit=512M -f /home/domain/public_html/cron.php >> /home/domain/public_html/var/log/cron.log 2>&1 options -d memory_limit=512M -f no exist in lsphp Thks,
Top