Check if your application works with the installed version from Ubuntu, for this, remove the FilesMatch directive from apache, restart it and access your website. So, I upgraded, then afterwards, I didn’t need the old php version. #E Package Apache2 Has No Installation Candidate upgradeOn my case, I only needed an older php version to upgrade an old application that didn’t supported the latest official php version from Ubuntu. #E Package Apache2 Has No Installation Candidate how toYou should also add how to undoing changes. This website is configured to work with PHP 5.6. Make sure to use correct ServerName and directory path according to your setup. sudo vim /etc/apache2/sites-available/Īdd the following content. Create a file for the first virtual host and edit in your favorite text editor. Apache keeps all the VirtualHost configuration files under /etc/apache2/sites-available with the extension. Now, create and index.php containing the phpinfo() function. First, create two directories on your server. For the testing purpose, I am configuring two websites to work with two different-2 PHP versions. Get ready for the configuration of websites on your Apache server. Ubuntu 18.04 Users: sudo a2enmod actions fcgid alias proxy_fcgi sudo a2enmod actions fastcgi alias proxy_fcgi These modules are necessary to integrate PHP FPM and FastCGI with Apache server. Now enable few modules required for the configuration of multiple PHP versions with Apache.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |