# After installation one problems

**URL:** <https://help.nextcloud.com/t/after-installation-one-problems/10035>\
**Category:** ℹ️ Support\
**Created:** [March 12, 2017, 5:05pm UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035 "2017-03-12T17:05:13Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferreirex](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ferreirex/32/3277_2.png) [@ferreirex](https://help.nextcloud.com/u/ferreirex)\
**Post date:** [March 12, 2017, 5:05pm UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/1 "2017-03-12T17:05:13Z")

</div>

Hi, I have installed today NextCloud and I have some erros, and the error is:

Security & setup warnings

php does not seem to be setup properly to query system environment variables. The test with getenv(“PATH”) only returns an empty response.  
Please check the installation documentation ↗ for php configuration notes and the php configuration of your server, especially when using php-fpm.  
Some files have not passed the integrity check. Further information on how to resolve this issue can be found in our documentation. (List of invalid files… / Rescan…)  
The “Strict-Transport-Security” HTTP header is not configured to at least “15552000” seconds. For enhanced security we recommend enabling HSTS as described in our security tips.  
No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our documentation.  
Please double check the installation guides ↗, and check for any errors or warnings in the log.

I have another ones but I have repaired with sucess.

Another think, I have moving some files to the \_data folder by ftp and that folders isn’t show on NextCloud instalation, just show the files and folders I have created there.

---

<div class="post-metadata">

**Author:** ![julian](https://help.nextcloud.com/letter_avatar/julian/32/6_22734026db12803ebb3e059622ac3534.png) [@julian](https://help.nextcloud.com/u/julian)\
**Post date:** [March 13, 2017, 7:31am UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/2 "2017-03-13T07:31:42Z")

</div>

**First Error:** Edit the file  
`/etc/php5/fpm/pool.d/www.conf`  
and search for the env[HOSTNAME], env[PATH], env[TMP], env[TEMPDIR] and env[TEMP] and remove the “;”.

**Third Error:** Edit the file `/etc/nginx/sites-available/default` (assuming you are using Nginx as your webserver) and add  
`add_header Strict-Transport-Security "max-age=15768000";`  
to your server paragraph.

**Fourth Error:** Run  
`sudo apt install memcached php5-memcache`  
then edit the Nextcloud configuration file at nextcloud/config/config.php and add  
`'memcache.local' => '\\OC\\Memcache\\APC',`  
to it.

---

<div class="post-metadata">

**Author:** ![ferreirex](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ferreirex/32/3277_2.png) [@ferreirex](https://help.nextcloud.com/u/ferreirex)\
**Post date:** [March 13, 2017, 12:32pm UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/3 "2017-03-13T12:32:01Z")

</div>

Hi @julian thanks for the answers 🙂

1 error - I’m using PHP7 is the same folder?

4 error - I have’d activated the memcached on PHP7, do I need to add the code line on config.php?

About the files and folder I have moved to the \_data folder by ftp and that folders isn’t show on NextCloud instalation, just show the files and folders I have created on there, any one know the reason for dent show?

---

<div class="post-metadata">

**Author:** ![julian](https://help.nextcloud.com/letter_avatar/julian/32/6_22734026db12803ebb3e059622ac3534.png) [@julian](https://help.nextcloud.com/u/julian)\
**Post date:** [March 13, 2017, 1:04pm UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/4 "2017-03-13T13:04:01Z")

</div>

For PHP 7.0, the directory is  
`/etc/php/7.0/fpm/pool.d/www.conf`

Yes you need to add the line anyway.

You can’t upload files via FTP, you need to upload them directly to Nextcloud via the app or the web interface and then they will show up in your Nextcloud directory. It doesn’t work the other way round.

---

<div class="post-metadata">

**Author:** ![ferreirex](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ferreirex/32/3277_2.png) [@ferreirex](https://help.nextcloud.com/u/ferreirex)\
**Post date:** [March 14, 2017, 8:05am UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/5 "2017-03-14T08:05:01Z")

</div>

Thanks @julian 🙂

From the upload files via FTP before I use NextCloud I use OwnCloud and for the time I was try that, I can upload the files via FTP.

Any chance to made that work? For me that is something great, I can use the NextCloud folder as a external drive and just need go to admin area to share folders or files.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://help.nextcloud.com/user_avatar/help.nextcloud.com/michaing/32/2125_2.png) [@MichaIng](https://help.nextcloud.com/u/MichaIng)\
**Post date:** [March 14, 2017, 8:21am UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/6 "2017-03-14T08:21:09Z")

</div>

@ftp: I guess it would be possible to upload via ftp and do a files:scan command after that to add them to the nextcloud database. But this looks a bid ugly to me 😅. Yeah I would prefer to do it via the nextcloud clients or webdav clients.

@integrity check: Could you provide the list of files effected?

---

<div class="post-metadata">

**Author:** ![ferreirex](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ferreirex/32/3277_2.png) [@ferreirex](https://help.nextcloud.com/u/ferreirex)\
**Post date:** [March 14, 2017, 6:21pm UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/7 "2017-03-14T18:21:30Z")

</div>

The good thing about using the Nextcloud data folder as an external hard drive is almost times just to update some content I have there.

---

<div class="post-metadata">

**Author:** ![ferreirex](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ferreirex/32/3277_2.png) [@ferreirex](https://help.nextcloud.com/u/ferreirex)\
**Post date:** [March 18, 2017, 8:47am UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/8 "2017-03-18T08:47:50Z")

</div>

Is working 🙂

Thank you very much 🙂

Where can I use the scan command for the files I have insert by ftp?

---

<div class="post-metadata">

**Author:** ![MichaIng](https://help.nextcloud.com/user_avatar/help.nextcloud.com/michaing/32/2125_2.png) [@MichaIng](https://help.nextcloud.com/u/MichaIng)\
**Post date:** [March 18, 2017, 2:31pm UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/9 "2017-03-18T14:31:32Z")

</div>

See [here](https://docs.nextcloud.com/server/11/admin_manual/configuration_server/occ_command.html#file-operations).

`$ sudo -u www-data:www-data php /path/to/nextcloud/occ files:scan USERNAME`

Where www-data:www-data need to be the http user:group. I guess you uploaded the files just for yourself (one user), otherwise use the command with “–all” instead of user name as argument to rescan the whole nextcloud data folder for all users.

€: Ah “–unscanned” is another useful option to scan only previously unscanned files. Seems perfect in your case.  
This would be:  
`$ sudo -u www-data:www-data php /path/to/nextcloud/occ files:scan --all --unscanned`

---

<div class="post-metadata">

**Author:** ![ferreirex](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ferreirex/32/3277_2.png) [@ferreirex](https://help.nextcloud.com/u/ferreirex)\
**Post date:** [March 20, 2017, 7:06pm UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/10 "2017-03-20T19:06:50Z")

</div>

Thanks, @MichaIng I have been looking since I have posted this, I have found some stuff than helping me.

The WebDAV have any limits to transfer the files? or depend on the server conf?

---

<div class="post-metadata">

**Author:** ![MichaIng](https://help.nextcloud.com/user_avatar/help.nextcloud.com/michaing/32/2125_2.png) [@MichaIng](https://help.nextcloud.com/u/MichaIng)\
**Post date:** [March 21, 2017, 9:13am UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/11 "2017-03-21T09:13:53Z")

</div>

I don’t know about any limits that are not anyway there, e.g.

> ```
> upload_max_filesize=511M
> post_max_size=511M
> 
> ```

in `.user.ini`/`.htaccess` as upload size limit.

---

<div class="post-metadata">

**Author:** ![ferreirex](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ferreirex/32/3277_2.png) [@ferreirex](https://help.nextcloud.com/u/ferreirex)\
**Post date:** [March 21, 2017, 8:43pm UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/12 "2017-03-21T20:43:51Z")

</div>

Thank you very much 🙂

---

<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 2, 2024, 12:58pm UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/13 "2024-12-02T12:58:48Z")

</div>



---

<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 4, 2024, 1:12pm UTC](https://help.nextcloud.com/t/after-installation-one-problems/10035/14 "2024-12-04T13:12:21Z")

</div>


