Skip to content

Conversation

@kenjis
Copy link
Member

@kenjis kenjis commented Feb 17, 2024

Description

  • add "Deployment to Shared Hosting Services"

Checklist:

  • Securely signed commits
  • [] Component(s) with PHPDoc blocks, only if necessary or adds value
  • [] Unit testing, with >80% coverage
  • User guide updated
  • [] Conforms to style guide

@kenjis kenjis added the documentation Pull requests for documentation only label Feb 17, 2024
@kenjis kenjis mentioned this pull request Feb 17, 2024
2 tasks

For example, if you use cPanel, see:

- `How to change the document root of the primary domain <https://support.cpanel.net/hc/en-us/articles/360055211213-How-to-change-the-document-root-of-the-primary-domain>`_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A shared hosting subscriber how can access To WHM as root (step 4)?
Assuming it has access to WHM. Where is the menu he explained(step 5)?

Screenshot 2024-02-17 064944

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we are not normally allowed to log in as root. If so, this method is not generally available.
In that case, it should not be mentioned in the documentation.

Copy link
Contributor

@datamweb datamweb Feb 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a call with the hosting company.
The possibility of logging for shared hosting users is provided only through cPanel NOT WHM.

Regarding the change of Document Root, Answer was, considering that the host is shared, it is NOT possible to change the Document Root.

Screenshot 2024-02-17 081936

And from https://docs.cpanel.net/knowledge-base/accounts/how-to-log-in-to-your-server-or-account/#how-to-access-whm
Note:
In order to log into WHM, you must either be the root user, or a user with reseller privileges.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@datamweb Thank you for investigation! I've removed the URLs for cPanel.

@kenjis kenjis force-pushed the docs-deploy-shared-hosting branch from bde3c36 to ef7b1e9 Compare February 17, 2024 05:17
Check with your hosting service provider to see if you can change the document root.
Unfortunately, if you cannot change the document root, go to the next way.

Using Two Directories
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I tested this method in practice, it works well.
@kenjis, thank you for following up.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method (and a few hacks) worked on 000webhostapp.
https://kenjis.000webhostapp.com/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh!! In 2022, someone asked me this question in an email 😇

Screenshot 2024-02-20 131713

@kenjis kenjis merged commit b371688 into codeigniter4:develop Feb 22, 2024
@kenjis kenjis deleted the docs-deploy-shared-hosting branch February 22, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Pull requests for documentation only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants