So I did a few things... I did the PHP downgrade with this:
Code:
From php5.6 to php7.0:
Apache:
sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart
CLI:
sudo update-alternatives --set php /usr/bin/php7.0
From php7.0 to php5.6:
Apache:
sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart
CLI:
sudo update-alternatives --set php /usr/bin/php5.6
I have also installed phpMyAdmin, installed let's encrypt (and added a certificate for alternativegirlshardpics.com) figured out how to load via SFTP.
But it does not work almost anything...
PHP does not seem to work, I put 2 files in the root, index.php and Info.php (phpinfo), return 2 pages blank... looking at the source code you see the PHP code...
By visiting https:alternativegirlshardpics.com, it says invalid certificate
Shit, it happened some mess... you think I can fix it?
Even when I install modules I'm not sure about installing them on PHP 5.6 or 7
I almost thought about making a new droplet and install directly only PHP 5.6
Then I noticed that the folder structure is
domain1.com/public_html
Domain2.com/public_html
I would like to
public_html/domain1. com
public_html/domain2. com
Just change the addresses of the files on VirtualHost?