Skip to main content

Hi, 

I’m trying to change the Central server IP, I have changed the IP of the server and the /etc/hosts. 

All Centreon processes are running but i’m trying to enter to the web interface and doesnt work. It is still taking the old IP, I’m trying to change that but I dont locate the correct file…

I have try to grep the lines that have the http://old_ip.. but I still cant find the file.
Does anyone know where is the file?

 

Thanks!!!

 

(I have look at this post Help! I have to change the IP Address of a Centreon server - Part I | Community with no result...)

Hi @aalz0 can you put here your Apache configuration (/etc/httpd/conf.d/10-centreon.conf)


But on Debian 11? In /etc/apache2 I dont have that file…

I have /etc/apache2/apache2.conf but the IP is not defined


Yes it was /etc/apche2/centreon.conf

 

Using netstat can you check on which IP Apache is listening?

netstat -ano | grep 80

 


/etc/apche2/centreon.conf doesnt exist neither.

After doing netstat -ano | grep 80 I get:

 

 


Now I can enter, but I get the following error, without that I can’t continue the upgrade.

I have edited the /etc/php/8.1/apache2/php.ini and added in the timezone : Europe/Madrid

Then, I restarted the apache, the php8.1-fpm and even reboot the system but I get the same error.
 

 


Hi @aalz0 as describe in our documentation you must define timezone into /etc/php/8.1/mods-available/centreon.ini file then restart php-fpm:

systemctl restart php8.1-fpm

 


Thanks @Laurent 
So maybe that text (php.ini file) should be updated to centreon.ini…

But I still have the same message… By the default it was UTC and I have put Europe/Madrid

I have also restart centreon, centengine etc...😭


Hello,

Try to find this file : /etc/php/8.1/mods-available/centreon.ini

And then modify the timezone.

 

After that, Restart your php-fpm service : systemctl restart php8.1-fpm

You can have more informations at by searching timezone : https://docs.centreon.com/docs/installation/installation-of-a-central-server/using-packages/


Thanks for the reply @zaledia.

Thats exactly what I have done but seems it doesnt have any effect…

I also checked that it isnt been overwrited


Go check this link and search for timezone : https://docs.centreon.com/docs/installation/installation-of-a-central-server/using-packages/

 

Try emptying your browser’s cache before accessing the centreon interface.


In that article appears the same you told me… I have tried on another bowser and I get the same error.

I dont even understand why after changing the IP I have to do this upgrading process… I need to solve this

 

When I do:

php -i | grep “timezone”

I get:

Default timezone => Europe/Berlin
date.timezone => no value => no value

 

Show the config isnt taking the new changes… Any idea?


SOLUTION

Maybe this isn’t the best solution but has worked for me.

I have edited the /usr/share/centreon/www/install/step_upgrade/step2.php file. I commented the timezone check lines.

Doing that I have been able to update the version to 10.


@aalz0 if you comment the timezone check lines, you may have a problem in the future because timezone are not well configured for php-fpm is Centreon can’t valide it.


Yes but from everything I tried this was the only “solution”…

If I do

php -i

I see that the config file is: /etc/php/8.1/cli/php.ini

I fill it with the rigth timezone and but doesn’t change...


Reply