HTTP 500 error on fresh install of owncloud server

Please help us by providing the following info. Before posting please also check the pinned "Known issues" threads and make sure that you're running the latest available version for your oC release: https://owncloud.org/changelog/

Steps to reproduce
1. Setup and install Owncloud server on Ubuntu server 16.10
2. Setup Database inside mySql Server
3.Open Owncloud web ui and create admin username, password and database parameters.
4. restart Owncloud and refresh owncloud web ui page

Expected behaviour
Login page

Actual behaviour
Tell us what happens instead

Http error code 500

Server configuration
Operating system: ubuntu server 16:10
Web server: Apache
Database: MySql
PHP version:
ownCloud version (see ownCloud admin page): 9
Updated from an older ownCloud or fresh install: fresh instal
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):

ownCloud log (data/owncloud.log)

{"reqId":"puKPIeAkLPPQ8XYwDtJy","remoteAddr":"194.73.75.130","app":"PHP","message":"chmod(): Operation not permitted at \/var\/www\/owncloud\/lib\/private\/legacy\/util.php#925","level":3,"time":"2017-04-05T14:57:56+00:00","method":"GET","url":"\/owncloud\/index.php\/cor$
{"reqId":"g87xTOEsxA5XLtL5I6Cz","remoteAddr":"150.70.173.52","app":"PHP","message":"chmod(): Operation not permitted at \/var\/www\/owncloud\/lib\/private\/legacy\/util.php#925","level":3,"time":"2017-04-05T14:58:13+00:00","method":"GET","url":"\/owncloud\/","user":"--"}
{"reqId":"aPOu8Si7e1aygEBBEwyi","remoteAddr":"194.73.75.130","app":"PHP","message":"chmod(): Operation not permitted at \/var\/www\/owncloud\/lib\/private\/legacy\/util.php#925","level":3,"time":"2017-04-05T14:58:18+00:00","method":"GET","url":"\/owncloud\/cron.php","use$
{"reqId":"ctxaBEB4Y6EBnE6Hdy\/P","remoteAddr":"150.70.188.179","app":"PHP","message":"chmod(): Operation not permitted at \/var\/www\/owncloud\/lib\/private\/legacy\/util.php#925","level":3,"time":"2017-04-05T14:59:25+00:00","method":"GET","url":"\/owncloud\/index.php\/c$

apache logs
[Fri Apr 07 12:16:33.148174 2017] [:error] [pid 12935] [client 83.105.94.132:56833] PHP Fatal error: Uncaught Error: Call to a member function getLogger() on null in /var/www/owncloud/index.php:75\nStack trace:\n#0 {main}\n thrown in /var/www/owncloud/index.php on line$
$n line 75

Please paste possible errors in the following code block, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808 for more info

Integrity status for oC9+

Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.

Hello. Do you verify the privileges of those directories? \/var\/www\/owncloud\/lib\/private\/legacy

Which directory? and what privaledges should it be?

https://doc.owncloud.org/server/latest/admin_manual/installation/installation_wizard.html#setting-strong-directory-permissions

Yes i have already done that and run that script. That only changes owner and group for the /data folder, not stuff inside the var/www

see below for current permission settings

drwxr-x--- 2 www-data www-data 4096 Apr 6 09:55 apps
drwxr-x--- 2 www-data www-data 4096 Apr 5 16:47 assets
drwxr-x--- 2 www-data www-data 4096 Apr 6 09:55 config
drwxr-x--- 2 www-data www-data 4096 Apr 5 16:47 data
-rw-r----- 1 www-data www-data 0 Apr 5 13:58 index.html
drwxr-x--- 4 www-data www-data 4096 Apr 6 10:08 jonathan
drwxr-x--x 2 www-data www-data 4096 Apr 6 09:55 occ
-rw-r----- 1 www-data www-data 7242 Apr 5 15:59 owncloud.log
drwxr-x--- 2 www-data www-data 4096 Apr 6 09:55 themes
drwxr-x--- 2 www-data www-data 4096 Apr 5 16:47 updater

Fixed.there was a typo on my owncloud/config.php file.

do you remember wich error was in your config.php?