如何将我的 codeigniter 项目放入我的主机帐户 (iPage)?
所以,我对 codeigniter 完全是个菜鸟,但我还过得去。
我在 iPage 上有一个域名。目前,我正在 XAMPP 内部的 htdocs 中使用 codeigniter 和我的 codeigniter 项目。本地主机上的一切都运行良好,但我完全不知道从哪里开始如何将我的项目放到我的网络主机服务器上。
So, i'm a total noob with codeigniter but i'm getting by.
I have a domain name on iPage. Currently, I am using codeigniter w/ my codeigniter project inside htdocs which is inside XAMPP. Everything is working great on localhost, but I am totally lost on where to start concerning how to put my project onto my web hosts server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有什么太多的。
以下部分并不真正属于这里,但我想我喜欢从头开始。
回答你的问题:
There is not much to it.
The following part, does not really belong here, but I guess I like to start from the beginning.
To answer your question:
CodeIgniter 的安装分为四个步骤:
如果您希望通过隐藏 CodeIgniter 文件的位置来提高安全性,您可以将系统和应用程序文件夹重命名为更私密的名称。如果您确实重命名它们,则必须打开主 index.php 文件,并使用您选择的新名称在文件顶部设置 $system_path 和 $application_folder 变量。
为了获得最佳安全性,系统和任何应用程序文件夹都应放置在 Web 根目录之上,以便无法通过浏览器直接访问它们。默认情况下,每个文件夹中都包含 .htaccess 文件,以帮助防止直接访问,但最好将它们完全从公共访问中删除,以防 Web 服务器配置更改或不遵守 .htaccess。
如果您想让视图保持公开,也可以将视图文件夹移出应用程序文件夹。
移动它们后,打开主index.php 文件并设置$system_path、$application_folder 和$view_folder 变量,最好使用完整路径,例如“/www/MyUser/system”。
参考:https://www.tmdhosting.com/codeigniter-hosting.html
CodeIgniter is installed in four steps:
If you wish to increase security by hiding the location of your CodeIgniter files you can rename the system and application folders to something more private. If you do rename them, you must open your main index.php file and set the $system_path and $application_folder variables at the top of the file with the new name you’ve chosen.
For the best security, both the system and any application folders should be placed above web root so that they are not directly accessible via a browser. By default, .htaccess files are included in each folder to help prevent direct access, but it is best to remove them from public access entirely in case the web server configuration changes or doesn’t abide by the .htaccess.
If you would like to keep your views public it is also possible to move the views folder out of your application folder.
After moving them, open your main index.php file and set the $system_path, $application_folder and $view_folder variables, preferably with a full path, e.g. ‘/www/MyUser/system’.
Reference: https://www.tmdhosting.com/codeigniter-hosting.html