Welcome Guest, Not a member yet? Register   Sign In
Ci4 Install without vhosts
#2

Shared hosting providers can use one of several different setups. What you do depends on what the provider's setup allows. It comes down to whether they allow you to upload to the same level as where they have put the folder that mydomain.com is served from.

Let's say mydomain.com is served out of a folder at /some/path/to/public_html/ and that last folder (public_html) is where they say you should, "put your website files here."  The public_html folder might have some other name, but for this explanation we will use public_html as a placeholder for whatever the provider used. Typically, but not always, that folder won't have anything in it you really need and can be deleted. But unless it is empty do not do that just yet. Instead, change the name to public_html_bak. Then install (or upload) CodeIgniter at /some/path/to/.  Then change the name of the folder public that CodeIgnier created to public_html.

In \Config\App

PHP Code:
$baseURL 'https://mydomain.com'

(You really, really, really need to install security certificates and use SSL, e.g. https, if you're on a live server.)

If the provider does not allow you to install in the same folder where they put public_html you will have to use "Option B". Let me know if you need Option B along with what, if any other folders they provide at the /some/path/to/ level.
Reply


Messages In This Thread
Ci4 Install without vhosts - by 68thorby68 - 06-14-2020, 04:47 AM
RE: Ci4 Install without vhosts - by dave friend - 06-14-2020, 06:22 AM
RE: Ci4 Install without vhosts - by 68thorby68 - 06-14-2020, 06:31 AM
RE: Ci4 Install without vhosts - by dave friend - 06-14-2020, 06:33 AM
RE: Ci4 Install without vhosts - by jreklund - 06-14-2020, 06:50 AM
RE: Ci4 Install without vhosts - by 68thorby68 - 06-14-2020, 07:02 AM
RE: Ci4 Install without vhosts - by InsiteFX - 06-15-2020, 02:59 AM
RE: Ci4 Install without vhosts - by jreklund - 06-15-2020, 10:23 AM
RE: Ci4 Install without vhosts - by 68thorby68 - 06-15-2020, 11:20 AM
RE: Ci4 Install without vhosts - by jreklund - 06-15-2020, 12:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB