2014-03-30 33 views
-2

我听说有一种方法可以install laravel without using composer。所以我想我的发展laravel项目推到生产服务器,但我有此错误:Laravel:将项目移至生产

Error in exception handler: include() [function.include]: Unable to allocate memory for pool. in .../vendor/composer/ClassLoader.php:363

我在做什么错?

+0

您应该先阅读:http://laravel.com/docs/installation#install-laravel – majidarif

回答

3

这可能与this bug report有关。

您应该检查您的ini设置为php。尝试查找apc.mmap_file_mask的设置。你可能想尝试调整。

您也可以在php文档中找到更多信息。

apc.mmap_file_mask string If compiled with MMAP support by using --enable-mmap this is the mktemp-style file_mask to pass to the mmap module for determining whether your mmap'ed memory region is going to be file-backed or shared memory backed. For straight file-backed mmap, set it to something like /tmp/apc.XXXXXX (exactly 6 Xs). To use POSIX-style shm_open/mmap put a .shm somewhere in your mask. e.g. /apc.shm.XXXXXX You can also set it to /dev/zero to use your kernel's /dev/zero interface to anonymous mmap'ed memory. Leaving it undefined will force an anonymous mmap.

试着这么做:

//mmap directly from /dev/zero, use: 
apc.mmap_file_mask=/dev/zero 

或者,也许更新您的PHP版本到最新的?这可能会有所帮助,但我没有更多的信息。但我相信这与该报告有关。


还请阅读laravel的文档,特别是这样的:Install Laravel

做到这一点的第一种方法(非作曲安装):

curl -sS http://laravel.com/laravel.phar | php 
$ (sudo) mv laravel.phar /usr/local/bin/laravel 

至于移动到生产,只需将您的文件,而供应商目录。在生产服务器上执行再次安装Composer,它将安装所有的依赖关系,并且应该让你运行一个生产就绪服务器。