Error upgrading from 1.2 to 1.3 rc 25
-
@lebrun78 Hi, please do
rm -rf /var/www/html/fog rm -rf /var/www/fog
Then try running the installer again.
-
Error is in the file /opt/fogproject/packages/web/commons/init.php, no ?
-
other problem, php version seems to not be checked before installation,
so when I’m connect to http://192.168.122.3/fog/management/ to valid myslq backup and update, I got that:
“FOG Requires PHP v5.5.0 or higher. You have PHP v5.3.3” -
@lebrun78 You will need to remove the packages line from /opt/.fogsettings and remove PHP.
Something like
yum remove php*
-
yum remove php* did not make me have a succes
So I edited lib/redhat/config.sh, lib/common/functions.sh and lib/redhat/.svn/text-base/config.sh.svn-base to change php to php55w after
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
yum install yum-plugin-replace
yum replace php-common --replace-with=php55w-commonBut now I have this error:
- Setting up fog user…Already setup
- Setting up fog password…OK
- Stopping FOGMulticastManager Service…OK
- Stopping FOGImageReplicator Service…OK
- Stopping FOGSnapinReplicator Service…OK
- Stopping FOGScheduler Service…OK
- Stopping FOGPingHosts Service…OK
- Setting up and starting MySQL…OK
- Backing up user reports…Done
- Stopping web service…Failed!
Here is the tail of error_logs/fog_error_1.3.0-RC-25.log
Arrêt de FOGMulticastManager : [ÉCHOUÉ]
Arrêt de FOGImageReplicator : [ÉCHOUÉ]
Arrêt de FOGTaskScheduler : [ÉCHOUÉ]
Arrêt de mysqld : [ OK ]
Démarrage de mysqld : [ OK ]
mysqld (pid 6322) en cours d’exécution…
Arrêt de httpd : [ OK ]
php55w-fpm: service non reconnu -
I was to much violent with sed .
Repaired …
Now Setting up Apache and PHP files…Failed
###########################################PHP Failed to install properly
###########################################
Could not find !
-
Please try:
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm ; sudo rpm -Uvh remi-release-6*.rpm
Then run:
yum -y update --enablerepo=remi,remi-php56
Then rerun the installer.
-
You shouldn’t alter the installation files. I have no idea what state they’re in or what they’re actually doing now, making it impossible to assist.
The only problem you had was that PHP5.3 was installed and that a newer version needed to get installed. The installer has ways of managing that, no need to alter the scripts themselves.
So, remove your FOG svn folder and pull a fresh version to make sure everything is as it should be.
Then remove the packages= line from /opt/fog/.fogsettings (otherwise it will continue to select PHP5.3 packages as previously defined by 1.2 installer)
Remove every trace of PHP 5.3 from your system.
Run the commands Tom gave.
Then run the installer.
-
Thank you
As you told me, I upgraded PHP to 5.6 and it works
I tried with 26 released -
Ok, thanks for letting us know. Marking this as solved then.