In case of M1 and M2 managed servers, PHP runs as FPM and you can use multiple PHP versions at the same time. We support the following versions of PHP on managed servers: How to buy an ssl certificate (managed servers)Īvailable Software Versions - Debian 10 (Buster)Īvailable Software Versions - Ubuntu 20.04 (Focal)Īvailable Software Versions - Ubuntu 22.04 (Jammy)Īvailable Software Versions - Debian 11 (Bullseye)Īvailable Software Versions - Debian 12 (Bookworm)Īvailable Software Versions - Debian 9 (Stretch) Mysql database management with managed toolsĭivision of competencies in managed servicesĭiscontinuation of Support For TLS 1.0 and TLS 1.1 Protocols Restricting access using HTTP basic authenticationĪdding domain alias to webserver configuration using Managed Tools Sending Newsletters and Automatic Emails from Servers Why Should You Not Use And As Recursive Nameservers?Īutoincrement in MariaDB Master-Master Replication Which DNS Servers Should I Use on My Server? What dns servers should you use for your domain? So you can have any number of different versions of Apache PHP modules sitting on the system ready to go just adjust a config and restart Apache and you should be all in business to use whatever PHP version you specified Apache should use.Calendar - Contact Sharing in ThunderbirdĬloudMail Limits For Outgoing Email MessagesĬheck Web Functionality Prior To DNS Change This way I have them both available to me side-by-side on the system.Īnd-like I said at the outset-the PHP version used in the command line has utterly nothing to do with the Apache PHP module. Note how one line is commented out for libphp535.so and the other one for libphp516-gd.so is uncommented? What I did is I renamed the default PHP 5.3.5 libphp5.so Apache module to libphp535.so with the version number in the name so I could have it there for reference and then named the PHP 5.1.6 (with GD library support) module libphp516-gd.so so I know what that is as well. LoadModule php5_module /usr/lib/apache2/modules/libphp516-gd.so I had lines like this: # LoadModule php5_module /usr/lib/apache2/modules/libphp535.so In the server’s PHP module loading file here: /etc/apache2/mods-available/php5.load If for some reason you wanted to use a different version of PHP with Apache, all you need to do is install the compiled Apache PHP module somewhere and add-or adjust-this line in your system’s Apache config: LoadModule php5_module /path/to/php/and/the/module/for/apache2/libphp5.soĪnd just adjust the path to the libphp5.so-which is what Apache uses to parse PHP-then restart Apache and you are in business.įor example, at one point I had to compile PHP version 5.1.6 from source (with GD library support) for use on an Ubuntu 12.04 machine running PHP 5.3.5. So the only thing that matters is the output of phpinfo(). The command line version of PHP is a completely separate system item. So if you are concerned about which version of PHP your web application is using, if phpinfo() shows version 5.6.10 and that is what you want/need that is 100% fine. The version of PHP available from the command line has 100% nothing to do with the version of PHP loaded as a module. It shows me PHP version 5.3.2 which I don’t need. When I tried in terminal: php -i or php -v Which gives me PHP version 5.6.10- the correct PHP version neededįor my application. I wanted to know which php version I am using so I wrote the The command line version of PHP is simply there for command line specific tasks and the PHP module for Apache will never touch, use or need that. The PHP command line interface will never come into play in the case of Apache parsing PHP pages. In fact you can compile and load various PHP versions you want to work with Apache as long as you adjust Apache to properly load it. The Apache PHP module and the PHP command line binary are two different things that don’t interfere with each other. Don’t panic! If you are concerned about what PHP version your Apache server is using, the output of phpinfo() is always what you should pay attention to.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |