VPS侦探论坛

标题: lnmp1.5 apache2.4 定时任务不能执行 手动执行也不行 请问这个应该怎么调试一下 [打印本页]

作者: 不吃洋葱    时间: 2018-8-2 18:03
标题: lnmp1.5 apache2.4 定时任务不能执行 手动执行也不行 请问这个应该怎么调试一下
我换成了opcache php -v不报错了 但是定时任务还是不能执行 手动执行也不可以 会卡在这里
  1. [root@localhost queue]# php -v
  2. PHP 5.6.36 (cli) (built: Aug  2 2018 15:18:44)
  3. Copyright (c) 1997-2016 The PHP Group
  4. Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
  5.     with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
  6. [root@localhost queue]# sh queue.sh
  7. [root@localhost queue]# /usr/local/php/bin/php /home/wwwroot/www.test.com/script/queue/queuescript.php normal
复制代码





麻烦帮忙看一下 不胜感激
作者: licess    时间: 2018-8-2 20:06
没有具体错误信息的话我们也无法确定什么原因
作者: 不吃洋葱    时间: 2018-8-3 13:47
标题: 回复 2# 的帖子
军哥 lnmp1.5安装imageMagick报错 请问这个应该怎么调试一下
----------------------------------------------------------------------
Libraries have been installed in:
   /lnmp1.5/src/imagick-3.4.3/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-zts-20131226/
Installing header files:           /usr/local/php/include/php/
imagick install failed!
You have new mail in /var/spool/mail/root
[root@localhost lnmp1.5]#
作者: 不吃洋葱    时间: 2018-8-3 14:00
标题: 回复 2# 的帖子
安装之后php -v也报错
[root@localhost lnmp1.5]# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-zts-20131226/php_imagick.dll' - /usr/local/php/lib/php/extensions/no-debug-zts-20131226/php_imagick.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.6.36 (cli) (built: Aug  2 2018 15:18:44)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
[root@localhost lnmp1.5]#
作者: licess    时间: 2018-8-3 19:53
linux上没有dll,可以自行vpser.net上搜索php模块安装 查看说明
你提供的安装过程日志信息不是很完整,不好确认,建议提供一下完整的安装过程的日志信息
并ls /usr/local/php/lib/php/extensions/no-debug-zts-20131226/ 看一下是否有imagick.so
作者: 不吃洋葱    时间: 2018-8-6 16:03
标题: 回复 5# 的帖子
安装imagick模块的时候报了这个 自行百度没什么结果
[root@localhost imagick]# /usr/local/php/bin/phpize
Cannot find config.m4.
Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module
[root@localhost imagick]#

以下是ls /usr/local/php/lib/php/extensions/no-debug-zts-20131226/之后的信息

[root@localhost imagick]# ls /usr/local/php/lib/php/extensions/no-debug-zts-20131226/
imagick.so  opcache.so[root@localhost imagick]#
作者: licess    时间: 2018-8-6 20:12
标题: 回复 6# 的帖子
不是在imagick源码目录的话是报这个错误

有imagick.so 的话就是安装成功了,存在 /usr/local/php/conf.d/008-imagick.ini 且里面有extension = "imagick.so" 的话就没问题
作者: 不吃洋葱    时间: 2018-8-7 09:14
标题: 回复 7# 的帖子
是在imagick源码目录安装的 还是报这个错误
/usr/local/php/conf.d/008-imagick.ini 也不存在  conf.d文件夹下是这样的
[root@localhost ~]# cd /usr/local/php/conf.d/
[root@localhost conf.d]# ll
total 4
-rw-r--r-- 1 root root 215 Aug  2 17:42 004-opcache.ini
[root@localhost conf.d]#
作者: licess    时间: 2018-8-7 18:33
标题: 回复 8# 的帖子
按7楼创建文件,并加上说的内容
作者: 不吃洋葱    时间: 2018-8-8 15:12
标题: 回复 9# 的帖子
弄好了 谢谢军哥 感谢




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4