Deployment na IBM Bluemix – 500 Internal Server Error
- Kozokkon
- Člen | 5
Zdravím,
zkouším deployment čistého sandboxu nette 2.4 z composeru na Bluemix a moc
se mi to nedaří. Deployment se podaří ale stránka vyhodí 500 – Internal
Server Error.
Nevíte čím to muže být? Respektive nemate někdo zkušenosti s deploymentem nette 2.4 na nějaký cloud? Ideálně kde je alespoň nějaký trial (potřebuji na studenský projekt).
- Kozokkon
- Člen | 5
16:02:43 httpd | [Thu May 10 16:02:43.588205 2018] [core:alert] [pid 60:tid 140388102756096] [client 159.8.128.13:22692] /home/vcap/app/htdocs/.htaccess: Invalid command 'Allow', perhaps misspelled or defined by a module not included in the server configuration
tady je configurace .htaccess
# Apache configuration file (see https://httpd.apache.org/docs/current/mod/quickreference.html)
Allow from all
# disable directory listing
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
# enable cool URL
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteBase /
# prevents files starting with dot to be viewed by browser
RewriteRule /\.|^\.(?!well-known/) - [F]
# front controller
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz|map)$ index.php [L]
</IfModule>
# enable gzip compression
<IfModule mod_deflate.c>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript application/json application/xml image/svg+xml
</IfModule>
</IfModule>
- Kozokkon
- Člen | 5
Pokračují v logach, odstranil jsem Allow from all, ted mi to pada na
16:29:30 httpd | [Thu May 10 16:29:30.646082 2018] [proxy_fcgi:error] [pid 48:tid 140070568789760] [client 159.8.128.13:43636] AH01071: Got error 'PHP message: PHP Warning: require(/home/vcap/app/htdocs/app/../vendor/autoload.php): failed to open stream: No such file or directory in /home/vcap/app/htdocs/app/bootstrap.php on line 3\nPHP message: PHP Fatal error: require(): Failed opening required '/home/vcap/app/htdocs/app/../vendor/autoload.php' (include_path='../lib/php:/home/vcap/app/lib') in /home/vcap/app/htdocs/app/bootstrap.php on line 3\n'
- Ondřej Kubíček
- Člen | 494
no ale nemůže to najít ten soubor autoload.php ve vendor, tak bud tam ta složka není, soubor není nebo je blbě cesta k tomu
- kalatalabnik
- Člen | 35
Když tam pustíš Requirements Checker, projde to na
zelenou?
https://nette.org/cs/maintenance