Welcome Guest, Not a member yet? Register   Sign In
CI4 on shared hosting return error 500
#1

(This post was last modified: 02-29-2020, 03:44 PM by Waithere.)

Hi all,

I have some problem to try the new CI4 on the main shared hosting I use for me and customers.

This is the FTP main root and what I can or cant do with it:
- cgi-bin
- conf
- htdocs
- .htaccess


So...
1. I can't upload files inside root.
2. This is the .htaccess content:
Code:
ErrorDocument 403 /__tmp/index.shtml
AddHandler php7.0-script .php
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
3. I can upload all inside htdocs
4. I can upload inside cgi-bin folder too.
5. PHP version, currently 7.2 (7.3-7.4 not available)


First try;
put all files inside htdocs, than load
- website.tld/public/
- website.tld/public/home/
- website.tld/public/index.php/home

[font=Tahoma, Verdana, Arial, sans-serif][font=Tahoma, Verdana, Arial, sans-serif]Error 500[/font][/font]

[font=Tahoma, Verdana, Arial, sans-serif]Second try:[/font]
[font=Tahoma, Verdana, Arial, sans-serif]put public contents inside htdocs[/font]
[font=Tahoma, Verdana, Arial, sans-serif]put all other inside cgi-bin[/font]
[font=Tahoma, Verdana, Arial, sans-serif]index.php > added cgi-bin/ on path definition[/font]
[font=Tahoma, Verdana, Arial, sans-serif]Error 500[/font]

[font=Tahoma, Verdana, Arial, sans-serif]I prefer the second way, to put only public content inside htdocs, but I can't find any way to make it working correctly...[/font]

[font=Tahoma, Verdana, Arial, sans-serif]I tried also to remove ci4 public .htaccess, nothing.[/font]


[font=Tahoma, Verdana, Arial, sans-serif]Thank you for any suggestion.[/font]



[font=Tahoma, Verdana, Arial, sans-serif]PS: If someone what to suggest some ready to go domain that give no issues with initial ci4 files, please let me know in PM, just not to advertise here external websites...[/font]
Reply


Messages In This Thread
CI4 on shared hosting return error 500 - by Waithere - 02-29-2020, 03:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB