简体   繁体   English

安装锂php框架

[英]Install lithium php framework

I'm a long time codeigniter framework user, and I love how you can just download it, extract and upload to your server via ftp and that's it, ready to go. 我是一个很长时间的codeigniter框架用户,我喜欢你可以通过ftp下载它,提取并上传到你的服务器,就是这样,准备好了。

Now, I'm curious to try lithium framework, but oh my, command prompts, shell access, github... That's out of my scope, plus I dont have shell access to my host. 现在,我很想尝试锂框架,但是哦,我的命令提示,shell访问,github ...这超出了我的范围,加上我没有shell访问我的主机。

Do I really need all that? 我真的需要这一切吗? Can I not just download it, extract and upload via ftp? 我可以不下载它,通过ftp提取和上传吗?

Thanks in advance! 提前致谢!

Not sure what you mean, the lithium framework has a direct link to their download: http://sourceforge.net/projects/li3/files/ 不确定你的意思,锂框架有他们下载的直接链接: http//sourceforge.net/projects/li3/files/

Or you can go to github and click on ZIP : https://github.com/UnionOfRAD/lithium 或者你可以去github并点击ZIP: https//github.com/UnionOfRAD/lithium

@Wyck and @Tomen have it right, shell access helps as does git(hub)...but it's optional. @Wyck和@Tomen说得对,shell访问有助于git(hub)...但它是可选的。

Here's a quick tutorial to get lithium up and running without shell access or command prompts: 这是一个快速教程,可以在没有shell访问或命令提示的情况下启动并运行锂电池:

  1. Read the docs! 阅读文档! Seriously, just browse the quickstart to get a feel for lithium 说真的,只需浏览快速入门即可了解锂电池
  2. Create a directory in your web root (/var/www/newsite, c:\\inetpub\\wwwroot\\newsite, whatever applies to your situation) 在您的Web根目录中创建一个目录(/ var / www / newsite,c:\\ inetpub \\ wwwroot \\ newsite,适用于您的情况)
  3. Download the sample lithium app . 下载示例锂应用程序 This is really just an empty boilerplate app 这真的只是一个空的样板应用程序
  4. Extract the sample lithium app into your new website root. 将示例锂应用程序解压缩到您的新网站根目录。 Your website root should look like this: 您的网站根目录应如下所示: 锂步骤4
  5. Download the lithium framework and extract it into /libraries/lithium/. 下载锂框架并将其解压缩到/ libraries / lithium /中。 Example: 例: 锂步骤5

The rest is up to you. 剩下的由你决定。 You'll have to configure your database connections, bootstrap, etc.. on your own. 您必须自己配置数据库连接,引导程序等。

There is no official comment on this. 对此没有官方评论。 Usually it is expected that you have shell access. 通常预计您有shell访问权限。 But from a short look on my docs i can say the following: 但是从我的文档上看,我可以说以下内容:

You will not need shell access if: 如果出现以下情况,则无需shell访问:

  • You have FTP access 你有FTP访问权限
  • The basic setup of your web server corresponds to that expected by lithium. 您的Web服务器的基本设置与锂的预期相对应。 For example: Apache 2 + mod_rewrite enabled + PHP 5.3 例如:Apache 2 + mod_rewrite enabled + PHP 5.3

This should give you the basic functionality of Lithium. 这应该为您提供锂的基本功能。 If you want to use data sources like MongoDB or CouchDB, thats a different story and you would have to check if your server already supports these. 如果你想使用像MongoDB或CouchDB这样的数据源,这是一个不同的故事,你必须检查你的服务器是否已经支持这些。 If not, you would need shell access to install and configure them appropriately. 如果没有,您需要shell访问权限才能正确安装和配置它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM