# CLI update but http not updated without apache restarted

**URL:** <https://help.nextcloud.com/t/cli-update-but-http-not-updated-without-apache-restarted/165226>\
**Category:** ℹ️ Support\
**Created:** [June 30, 2023, 9:09am UTC](https://help.nextcloud.com/t/cli-update-but-http-not-updated-without-apache-restarted/165226 "2023-06-30T09:09:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shnoulle](https://help.nextcloud.com/letter_avatar/shnoulle/32/5_5575768a8748004e209b776fc1b2916d.png) [@Shnoulle](https://help.nextcloud.com/u/Shnoulle)\
**Post date:** [June 30, 2023, 9:09am UTC](https://help.nextcloud.com/t/cli-update-but-http-not-updated-without-apache-restarted/165226/1 "2023-06-30T09:09:42Z")

</div>

> **Support intro**
>
> Sorry to hear you’re facing problems 🙁
> 
> _**[help.nextcloud.com](http://help.nextcloud.com) is for home/non-enterprise users. If you’re running a business, paid support can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where we can ensure your business keeps running smoothly.**_
> 
> In order to help you as quickly as possible, before clicking **Create Topic** please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
> 
> ```
> example
> 
> ```
> 
> Or for longer, use three backticks above and below the code snippet:
> 
> ```auto
> longer
> example
> here
> 
> ```
> 
> Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can ❤

Nextcloud version _(eg, 20.0.5)_: 2.6.3 to 2.7.0  
Operating system and version _(eg, Ubuntu 20.04)_: `debian`  
Apache or nginx version _(eg, Apache 2.4.25)_: `apache`  
PHP version _(eg, 7.4)_: `8.1`

The issue you are facing:

After upgrade via CLI : web access stay disable and i don’t find any way to reset file cache.

On CLI :

```auto
$ php8.1 -d apc.enable=1 -d apc.enable_cli=1 /home/www/sites/cloud.example.pro/htdocs/occ --version
Nextcloud 27.0.0
$ php8.1 -d apc.enable=1 -d apc.enable_cli=1 /home/www/sites/cloud.example.pro/htdocs/occ upgrade
Nextcloud is already latest version
$ php8.1 -d apc.enable=1 -d apc.enable_cli=1 /home/www/sites/cloud.example.pro/htdocs/occ maintenance:mode --off
Maintenance mode already disabled

```

But on web : on cloud.example.pro/status.php  
`{"installed":true,"maintenance":true,"needsDbUpgrade":true,"version":"26.0.3.2","versionstring":"26.0.3","edition":"","productname":"Nextcloud","extendedSupport":false}`

Is this the first time you’ve seen this error? _(N)_:

Steps to replicate it:

1. Upgrade via CLI
2. maintenance mode off via CLI
3. Try to log

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

```auto
<?php
$CONFIG = array (
  'debug' => false,
  'instanceid' => 'XXXXXXXXXX',
  'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'trusted_domains' => 
  array (
    0 => 'cloud.example.pro',
  ),
  'datadirectory' => '/home/www/sites/cloud.example.pro/docs',
  'dbtype' => 'mysql',
  'version' => '27.0.0.8',
  'overwrite.cli.url' => 'https://cloud.example.pro',
  'dbname' => 'example_nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'example_nextcloud',
  'dbpassword' => 'XXXXXXXXXXXXXXXXXXXXXXXXXxxx',
  'installed' => true,
  'maintenance' => false,
  'loglevel' => 2,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'default_phone_region' => 'FR',
  'htaccess.RewriteBase' => '/',
  'theme' => '',
  'mail_smtpstreamoptions' => 
  array (
    'ssl' => 
    array (
      'allow_self_signed' => true,
      'verify_peer' => false,
      'verify_peer_name' => false,
    ),
  ),
  'mail_sendmailmode' => 'smtp',
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'localhost',
  'mail_smtpport' => 25,
  'mail_smtpsecure' => '',
  'mail_from_address' => 'contact',
  'mail_domain' => 'sondages.pro',
  'mail_smtpauth' => false,
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
);

```

Is there a way to avoid such situation ? Maybe a [https://cloud.example.pro/cleancache](https://cloud.example.pro/cleancache) ?

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 12:41pm UTC](https://help.nextcloud.com/t/cli-update-but-http-not-updated-without-apache-restarted/165226/2 "2024-12-14T12:41:00Z")

</div>


