Prevent maintenance mode to be set on from occweb #3

Closed
opened 2019-07-30 18:45:28 +00:00 by adphi · 10 comments
Owner
No description provided.

Hi,
using occweb interface, set the maintenance mode to on so as to increase the php memory limit to the recommended value of 512MB.
Nextcloud has now switched to maintenance mode and and i have not been able to access my instance of nextcloud for the last 24 hours.
I am therefore unable to access nextcloud to set maintenance mode to off.
How can this be resolved?

Hi, using occweb interface, set the maintenance mode to on so as to increase the php memory limit to the recommended value of 512MB. Nextcloud has now switched to maintenance mode and and i have not been able to access my instance of nextcloud for the last 24 hours. I am therefore unable to access nextcloud to set maintenance mode to off. How can this be resolved?
Author
Owner

You need to edit the nextcloud config file, usually /var/www/nextcloud/config/config.php and remove the line :

"maintenance" => true,

In the next versions, the command occ maintenance:mode will be disabled in OccWeb.

You need to edit the nextcloud config file, usually `/var/www/nextcloud/config/config.php` and remove the line : ```php "maintenance" => true, ``` In the next versions, the command `occ maintenance:mode` will be disabled in OccWeb.

Followed your suggestion and nextcloud is back!!
Thanks

Followed your suggestion and nextcloud is back!! Thanks

Is it possible to change the following nextcloud settings using occweb?

There are some warnings regarding your setup.

1-The PHP memory limit is below the recommended value of 512MB.

2 The "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips ↗.

3 No memory cache has been configured. To enhance performance, please configure a memcache, if available. Further information can be found in the documentation.

4 The PHP OPcache module is not loaded. For better performance it is recommended to load it into your PHP installation.

5 This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them.
imagick

Is it possible to change the following nextcloud settings using occweb? There are some warnings regarding your setup. 1-The PHP memory limit is below the recommended value of 512MB. 2 The "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips ↗. 3 No memory cache has been configured. To enhance performance, please configure a memcache, if available. Further information can be found in the documentation. 4 The PHP OPcache module is not loaded. For better performance it is recommended to load it into your PHP installation. 5 This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them. imagick
Author
Owner

I guess you are using a shared hosting, aren't you?

These are not Nextcloud settings. You will not be able to fix them using the occ command.

1-The PHP memory limit is below the recommended value of 512MB.

This is a php configuration parameter, in php.ini, I don't know if you have access to the PHP configuration.

2 The "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips ↗.

This is a web server configuration, this can be nginx, apache, caddy ... Modifying the web server configuration is not available in most shared hosting solutions.

3 No memory cache has been configured. To enhance performance, please configure a memcache, if available. Further information can be found in the documentation.

4 The PHP OPcache module is not loaded. For better performance it is recommended to load it into your PHP installation.

These two are related: PHP OPcache module is not loaded, this is (usually) the memory cache used by PHP. You may not be able to install it on shared hosting.

5 This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them. imagick ...

Same as point 4.

I guess you are using a shared hosting, aren't you? These are not Nextcloud settings. You will not be able to fix them using the `occ` command. > 1-The PHP memory limit is below the recommended value of 512MB. This is a php configuration parameter, in `php.ini`, I don't know if you have access to the PHP configuration. > 2 The "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips ↗. This is a web server configuration, this can be nginx, apache, caddy ... Modifying the web server configuration is not available in most shared hosting solutions. > 3 No memory cache has been configured. To enhance performance, please configure a memcache, if available. Further information can be found in the documentation. > 4 The PHP OPcache module is not loaded. For better performance it is recommended to load it into your PHP installation. These two are related: `PHP OPcache module is not loaded`, this is (usually) the memory cache used by PHP. You may not be able to install it on shared hosting. > 5 This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them. imagick ... Same as point 4.

I am using shared hosting on Hostgator which has a phpmyadmin control panel.

Can i use this to make these changes?

I am using shared hosting on Hostgator which has a phpmyadmin control panel. Can i use this to make these changes?

I can also access the php.ini using hostgator's file manager, download it, make ammendments (using ms notepad) and upload/replace the php.ini in the file manager.

Would this method work?

I can also access the php.ini using hostgator's file manager, download it, make ammendments (using ms notepad) and upload/replace the php.ini in the file manager. Would this method work?
Author
Owner

Please refer to the nextcloud configuration documentation and phpmyadmin documentation for php module installation, or ask on the Nextcloud Forum.

Please refer to [the nextcloud configuration documentation](https://docs.nextcloud.com/server/18/admin_manual/) and phpmyadmin documentation for php module installation, or ask on the [Nextcloud Forum](https://help.nextcloud.com/).

Will do.

Thanks for the great help you have provided.

Will do. Thanks for the great help you have provided.
Author
Owner

You're welcome.

You're welcome.
adphi closed this issue 2020-06-20 02:04:51 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: adphi/occweb#3
No description provided.