<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Is there an easy way to update an old PHP 7.2 LAMP app to PHP 7.3?]]></title><description><![CDATA[<p dir="auto">When I set up my app, I chose the LAMP app that just said "LAMP" and not one that specified the version - and am now realizing that I should have chosen 7.3 specifically.<br />
So, I'm wondering if there's an easy way to update the PHP in that app without needing to create a new app (with new database information, new redis information, etc.).</p>
]]></description><link>https://forum.cloudron.io/topic/2657/is-there-an-easy-way-to-update-an-old-php-7-2-lamp-app-to-php-7-3</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 06:53:31 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/2657.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Jun 2020 00:56:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is there an easy way to update an old PHP 7.2 LAMP app to PHP 7.3? on Mon, 15 Jun 2020 16:08:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nicolas" aria-label="Profile: Nicolas">@<bdi>Nicolas</bdi></a> One way to avoid this mistake is use getenv('CLOUDRON_MYSQL_USERNAME'), getenv('CLOUDRON_MYSQL_DATABASE') instead of the raw values. This way when you migrate next time, it will pick up the correct database connection values.</p>
<p dir="auto">The full env list for MySQL is at <a href="https://cloudron.io/documentation/custom-apps/addons/#mysql" target="_blank" rel="noopener noreferrer nofollow ugc">https://cloudron.io/documentation/custom-apps/addons/#mysql</a></p>
]]></description><link>https://forum.cloudron.io/post/9652</link><guid isPermaLink="true">https://forum.cloudron.io/post/9652</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 15 Jun 2020 16:08:16 GMT</pubDate></item><item><title><![CDATA[Reply to Is there an easy way to update an old PHP 7.2 LAMP app to PHP 7.3? on Sun, 14 Jun 2020 19:24:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/makemrproper" aria-label="Profile: makemrproper">@<bdi>makemrproper</bdi></a> yes, I think this method isn't going to work for me. Especially if it still refers to the old app's database. (Though, if that's the case, I'm not sure why it continually fails due to a MySQL disconnection error) I'll just transfer the files and the database myself. Seems like way less headache!</p>
]]></description><link>https://forum.cloudron.io/post/9635</link><guid isPermaLink="true">https://forum.cloudron.io/post/9635</guid><dc:creator><![CDATA[Nicolas]]></dc:creator><pubDate>Sun, 14 Jun 2020 19:24:18 GMT</pubDate></item><item><title><![CDATA[Reply to Is there an easy way to update an old PHP 7.2 LAMP app to PHP 7.3? on Sun, 14 Jun 2020 20:12:36 GMT]]></title><description><![CDATA[<p dir="auto">Caution. There are dragons.</p>
<p dir="auto">Although this approach worked perfectly.</p>
<p dir="auto">I just totally screwed up.<br />
To do a little cleanup, I deleted the "old" container with my 7.2 LAMP application.<br />
Little did I know that my migrated 7.3 app was still persisting data to the 7.2 database instance!<br />
It was all my fault, but this was not obvious to me. <strong>Make sure to check which Mysql database your 7.3 version is actually connecting to!</strong></p>
<p dir="auto">This has now led me down the disaster recovery path to try and fish out a backup package of the 7.2 version.<br />
About to write another post about this situation. (<a href="https://forum.cloudron.io/topic/2688/disaster-recovery-restoring-a-backup">link to disaster recovery thread</a>)</p>
]]></description><link>https://forum.cloudron.io/post/9628</link><guid isPermaLink="true">https://forum.cloudron.io/post/9628</guid><dc:creator><![CDATA[makemrproper]]></dc:creator><pubDate>Sun, 14 Jun 2020 20:12:36 GMT</pubDate></item><item><title><![CDATA[Reply to Is there an easy way to update an old PHP 7.2 LAMP app to PHP 7.3? on Sat, 13 Jun 2020 23:25:27 GMT]]></title><description><![CDATA[<p dir="auto">I tried to migrate to 7.3 using the steps provided above - and all seemed to be working swimmingly until it errored out with "ECONNRESET" importing the mysql DB.<br />
It's a very large mysql DB (5.8 GB). Any idea why the connection might reset (the backup is on a linode volume connected to the local filesystem)? Or a way to go about upgrading this app without hitting the same error again?</p>
<p dir="auto">EDIT: To make matters worse, I also can't uninstall the app where I tried to do the upgrade for likely the same reason. Error was: " Error : Addons Error - Error tearing down mysql: socket hang up "</p>
<p dir="auto">EDIT 2: I resolved, at least the uninstall problem, by allocating more RAM to mysql. Seeing if that solves the over all problem now!</p>
]]></description><link>https://forum.cloudron.io/post/9622</link><guid isPermaLink="true">https://forum.cloudron.io/post/9622</guid><dc:creator><![CDATA[Nicolas]]></dc:creator><pubDate>Sat, 13 Jun 2020 23:25:27 GMT</pubDate></item><item><title><![CDATA[Reply to Is there an easy way to update an old PHP 7.2 LAMP app to PHP 7.3? on Sun, 14 Jun 2020 10:30:49 GMT]]></title><description><![CDATA[<p dir="auto">Confirmed. I just tested <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> 's suggested method here, and it worked flawlessly.</p>
<p dir="auto">I did the following steps to</p>
<p dir="auto"><strong>Upgrade my LAMP application from PHP 7.2 to PHP 7.3</strong></p>
<ul>
<li>Backed up my LAMP with php7.2.</li>
<li>Downloaded the "Backup Configuration" JSON file for the backup of the old container</li>
<li>Created a new LAMP container.</li>
<li>Went to Backups -&gt; Restore</li>
<li>Uploaded the "backup configuration file" downloaded from the old container</li>
<li>Entered the secret for my storage block storage space</li>
<li>Clicked restore</li>
</ul>
<p dir="auto">After that everything worked, and I was on PHP 7.3<br />
The LAMP application I migrated was a regular forum; Vanillaforums php/mysql stack.</p>
<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a></p>
]]></description><link>https://forum.cloudron.io/post/9429</link><guid isPermaLink="true">https://forum.cloudron.io/post/9429</guid><dc:creator><![CDATA[makemrproper]]></dc:creator><pubDate>Sun, 14 Jun 2020 10:30:49 GMT</pubDate></item><item><title><![CDATA[Reply to Is there an easy way to update an old PHP 7.2 LAMP app to PHP 7.3? on Mon, 08 Jun 2020 14:40:41 GMT]]></title><description><![CDATA[<p dir="auto">The approach would be outlined in <a href="https://cloudron.io/documentation/backups/#import-app-backup" target="_blank" rel="noopener noreferrer nofollow ugc">https://cloudron.io/documentation/backups/#import-app-backup</a><br />
This case however is special since usually this only works for the same app package (ie you cannot import a Nextcloud backup into say WordPress) but since in your case both apps are sufficiently similar it should just work.</p>
]]></description><link>https://forum.cloudron.io/post/9423</link><guid isPermaLink="true">https://forum.cloudron.io/post/9423</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 08 Jun 2020 14:40:41 GMT</pubDate></item><item><title><![CDATA[Reply to Is there an easy way to update an old PHP 7.2 LAMP app to PHP 7.3? on Mon, 08 Jun 2020 14:34:46 GMT]]></title><description><![CDATA[<p dir="auto">To be clear: When you say "The approach would be to restore from an app backup into a new instance of the lamp app with php 7.3"<br />
Do you mean that I do the normal stuff of downloading the DB, copying over all the files, then editing DB/redis credentials across the app - or do you mean download the backup file for the LAMP app the Cloudron supplies, create a new LAMP app, and use the "import from external file" function?</p>
]]></description><link>https://forum.cloudron.io/post/9422</link><guid isPermaLink="true">https://forum.cloudron.io/post/9422</guid><dc:creator><![CDATA[Nicolas]]></dc:creator><pubDate>Mon, 08 Jun 2020 14:34:46 GMT</pubDate></item><item><title><![CDATA[Reply to Is there an easy way to update an old PHP 7.2 LAMP app to PHP 7.3? on Mon, 08 Jun 2020 10:58:05 GMT]]></title><description><![CDATA[<p dir="auto">There is indeed no easy way to do this currently. The cli tool used to be able to override existing apps with another package appstore id, however that is not the case anymore.<br />
The approach would be to restore from an app backup into a new instance of the lamp app with php 7.3</p>
<p dir="auto">Usually this should not be required as we update apps with new versions directly, this however was not easily possible with the LAMP app since it would break too many existing installations <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f615.png?v=223f9defb2f" class="not-responsive emoji emoji-android emoji--confused" style="height:23px;width:auto;vertical-align:middle" title=":-/" alt="😕" /></p>
]]></description><link>https://forum.cloudron.io/post/9404</link><guid isPermaLink="true">https://forum.cloudron.io/post/9404</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 08 Jun 2020 10:58:05 GMT</pubDate></item></channel></rss>