Hi! I’ve uploaded finished on local version website to the live sever and run into problem: the website is displayed and subpages as well but when I try to go to panel it just shows blank page. I’ve tried several solutions from the forum but no luck. Either error 500 or blank page. domain runs from the server suborder but directed directly to it (I’ve tried to add RewriteBase /myfolder but it gives me error in this case).
Also when browsing pages - images are loaded only are page manual refresh. eg you go to page and see only image icon although all links are pointing to files generated by kirby, when refresh page images are loaded. (link: https://konstafed.com) - why it loads this way? I had the same issue on local version.
How to get access to the panel on the live server?
Hosting provider is IONOS.it
php version for domain: 8.0
Kirby: 3.6
htaccess file:
# Kirby .htaccess
# revision 2020-06-15
# rewrite rules
<IfModule mod_rewrite.c>
# enable awesome urls. i.e.:
# http://yourdomain.com/about-us/team
RewriteEngine on
# make sure to set the RewriteBase correctly
# if you are running the site in a subfolder;
# otherwise links or the entire site will break.
#
# If your homepage is http://yourdomain.com/mysite,
# set the RewriteBase to:
#
# RewriteBase /mysite
# In some environments it's necessary to
# set the RewriteBase to:
#
RewriteBase /
# block files and folders beginning with a dot, such as .git
# except for the .well-known folder, which is used for Let's Encrypt and security.txt
RewriteRule (^|/)\.(?!well-known\/) index.php [L]
# block all files in the content folder from being accessed directly
RewriteRule ^content/(.*) index.php [L]
# block all files in the site folder from being accessed directly
RewriteRule ^site/(.*) index.php [L]
# block direct access to Kirby and the Panel sources
RewriteRule ^kirby/(.*) index.php [L]
# make site links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]
</IfModule>
# pass the Authorization header to PHP
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
# compress text file responses
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
AddType video/mp4 .mp4
Thank you! Changed, but no luck still just an empty page.
# Kirby .htaccess
# revision 2020-06-15
# rewrite rules
<IfModule mod_rewrite.c>
# enable awesome urls. i.e.:
# http://yourdomain.com/about-us/team
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
# make sure to set the RewriteBase correctly
# if you are running the site in a subfolder;
# otherwise links or the entire site will break.
#
# If your homepage is http://yourdomain.com/mysite,
# set the RewriteBase to:
#
# RewriteBase /mysite
# In some environments it's necessary to
# set the RewriteBase to:
#
RewriteBase /
# block files and folders beginning with a dot, such as .git
# except for the .well-known folder, which is used for Let's Encrypt and security.txt
RewriteRule (^|/)\.(?!well-known\/) index.php [L]
# block all files in the content folder from being accessed directly
RewriteRule ^content/(.*) index.php [L]
# block all files in the site folder from being accessed directly
RewriteRule ^site/(.*) index.php [L]
# block direct access to Kirby and the Panel sources
RewriteRule ^kirby/(.*) index.php [L]
# make site links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]
</IfModule>
# pass the Authorization header to PHP
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
# compress text file responses
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
AddType video/mp4 .mp4
I’m not sure if I have access to server logs… it is basic shared hosting plan on linux server from IONOS (at least this is in description, I honestly do know where to look for the log files).
If there are no php error logs, you can create a php.ini file in your webspace with the following content (example path, replace with home folder of your webspace):
Thank you! I’ve added the file and changed path to the absolute path like they said in instruction to point to my webspace. So far there is no php-errors file. I have only these files:
Edit: placed php.ini in the root directory of my webspace, tried to place php.ini in the website directory - it breaks the website. No log files created
Are you using any (Panel) plugins? I just tried to upload a Kirby 3.6.1.1 website to IONOS shared hosting without any issues (can’t test with SSL though).
Have you removed that CSP header from your .htaccess?
Could you test and upload a fresh Starterkit to a separate folder (and assign some subdomain to it).
I started troubleshooting with removing all plugins. I have only one preview plugin now for the iframe display in layout editor. Removed even this one…
Have you removed that CSP header from your .htaccess ?
If you are talking about this lines:
I only posted the config example for the fresh Starterkit I wanted you to install. So the panel.install stuff should go into the Starterkit you uploaded, not into your main website, so that you can create the first user.
Understood. The plain starter kit works. What could be the solution besides redo everything from scratch on the live server? The finished website runs panel without problem on local machine…