Reputation: 98
Hey guys its a very general question, but I need your help. I already have an application at [Edited - Removed my site's link] which uses php 5.3 & now OpenShift has a new catridge called php 5.4..so how can I update the catridge without deleting my app?
Upvotes: 2
Views: 2309
Reputation: 177
Hack for fast switching from PHP 5.3 to 5.4 and back.
This is not completely updates the cartridge and may works incorrect.
# Create backup configuration
mv ~/php/configuration ~/php/configuration-orig
cp -r ~/php/configuration-orig ~/php/configuration
# Switch PHP 5.3 -> PHP 5.4
sed -i 's|libphp5.so|libphp54-php5.so|' ~/php/configuration/etc/conf.d/php.conf
gear restart --cart php
# Switch PHP 5.4 -> PHP 5.3
sed -i 's|libphp54-php5.so|libphp5.so|' ~/php/configuration/etc/conf.d/php.conf
gear restart --cart php
Upvotes: 0
Reputation:
You would need to create a new application with the 5.4 cartridge and migrate your application to the new gears. You currently can not remove and add a new version of a web cartridge. (you can try doing the migration with the rhc snapshot command)
Upvotes: 4