Hello. I have a trouble with deploying my local file to FTP program(File Zilla).
Although I deploy whole data to WWW folder, the domain message shows “Internal Server Error”.
I supposed there are some configuration errors or
I use PHP 8.3.8 and Kirby 3.10.0 and my local dev environment is MAMP.
List of what I have checked.
- .htaccess is loaded well.
- mod_rewrite is enabled.
- my local file located in folder name ‘htdocs’ of MAMP.
- recent server error log:
- I installed the most recent version of PHP but don’t know way to install required PHP Extensions(Requirements | Kirby CMS)
Have you tried to set the rewrite base in .htaccess:
RewriteBase /
Yes. I did.
my .htaccess is:
# Kirby .htaccess
# revision 2022-09-15
php_flag log_errors on
php_flag display_errors off
php_value error_log /your/path/public_html/logs/php_error.log
# 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>
This is contradictory, you should also have one RewriteBase entry! If your site is not in a subfolder, only the second would be valid.
Thanks for letting me know my contradictory mistakes… I corrected .htaccess file right away.
Also, I checked panel.install option to true. But there are still “Internal Server Error”.
I’d like to step on to activate my installation but I get stuck in here.
Hm, have you made sure that permissions and ownership are ok? Permissions seem ok for all I can tell from the cut off screenshot, but what about ownership?
Now I tried installing local development environment with DDEV. Maybe I pass .htaccess problem!
Is this issue a typical problem?
Stack frames (7)
6
Kirby\Exception\NotFoundException
…/kirby/src/Cms/App.php1239
5
Kirby\Cms\App resolve
…/kirby/config/routes.php164
4
Kirby\Http\Route {closure}
[internal]0
3
Closure call
…/kirby/src/Http/Router.php120
2
Kirby\Http\Router call
…/kirby/src/Cms/App.php338
1
Kirby\Cms\App call
…/kirby/src/Cms/App.php1191
0
Kirby\Cms\App render
…/public/index.php18
Could anyone reply for this?
@texnixe as you said, I had wrong license information so that I corrected the license info right away.
Now I get a reason while trying to check basic setting by accident… Web-hosting provider’s sever environment was UTF-8(PHP5.5, MySQL5.X). After I changed it to PHP8.2, It’s possible to install panel instantly…
@texnixe Thanks for all the answers!