This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hello Everyone,
It took me some digging around on how to upgrade my behind October build to the latest installment on the new PHP7. I'm posting the steps it took me to update October to 1) maybe help someone else get it working and 2) if someone can else can help me understand this process better, say if there is a security risk by upgrading October CMS this way, I dont know. And by no means am I an expert at this command line stuff. Anyways, here are my findings:
Trough the command line....
UPGRADE TO PHP 7.2
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.2
Switching PHP Versions
restart required
sudo a2dismod php5
sudo a2enmod php7.2
RESTART APACHE
sudo service apache2 restart
As soon as I did this, my site broke.
MCRYPT
actually not sure if you need this since we are no longer using MCRYPT. This was just part of my notes...
sudo apt-get update sudo apt-get install mcrypt php7.2-mcrypt sudo apt-get upgrade
INSTALL CURL
sudo apt-get install php7.2-curl
INSTALL ZIP ARCHIVES
sudo apt-get install php7.2-zip
UPDATE PHP FOR MYSQL
sudo apt-get install php7.2-mysql
Install xml reader for Rain Labs's blog plugin
sudo apt-get install php-xml
UPDATE OCTOBER BUILD
(In /your directory) you will need to run this twice in a row, as it will fail the first time around
sudo php artisan october:update
UPDATE THE STORAGE PERMISSIONS
(In /your directory)
sudo chmod -R 777 storage/
UPDATE THE ENCRYPTION KEY IN config/app.php FILE.
I had to change the actual lines of code. I went online to generate a AES-256-CBC code. the code to use is 32 in length, as it may generate other combinations.
'key' => "[32 character encryption]",
'cipher' => 'AES-256-CBC',
and that was it. You might run into missing modules if you have plugins, but you can apt-get them. If your site is still broken, you can turn on the bebug log in the config and hopefully see what else you are missing.
Last updated
1-1 of 1