简体   繁体   English

pdflib9.0.2未安装在适用于php5.5.10的MAMP中

[英]pdflib9.0.2 is not installing in my MAMP for php5.5.10

I am trying to install pdflib9.0.2 extension for my MAMP php5.5.10. 我正在尝试为我的MAMP php5.5.10安装pdflib9.0.2扩展名。 I did the following steps. 我做了以下步骤。

  1. Downloaded pdflib9.0.2 from http://www.pdflib.com/download/pdflib-family/pdflib-9/copied http://www.pdflib.com/download/pdflib-family/pdflib-9/copied下载pdflib9.0.2
  2. created a folder "pdflib" in htdocs 在htdocs中创建了一个文件夹“ pdflib”
  3. found the extension_dir path from php.ini /Applications/MAMP/bin/php/php5.5.10/lib/php/extensions/no-debug-non-zts-20121212 从php.ini /Applications/MAMP/bin/php/php5.5.10/lib/php/extensions/no-debug-non-zts-20121212找到extension_dir路径
  4. copied /Applications/MAMP/htdocs/pdflib/bind/php/php-550/php_pdflib.so to /Applications/MAMP/bin/php/php5.5.10/lib/php/extensions/no-debug-non-zts-20121212 将/Applications/MAMP/htdocs/pdflib/bind/php/php-550/php_pdflib.so复制到/Applications/MAMP/bin/php/php5.5.10/lib/php/extensions/no-debug-non-zts-20121212
  5. changed the permission to rw mode. 将权限更改为rw模式。
  6. added extension=php_pdflib.so under "Dynamic Extensions" in php.ini 在php.ini中的“动态扩展”下添加了extension = php_pdflib.so
  7. commented the following in /Applications/MAMP/Library/bin/envvars #if test "x$DYLD_LIBRARY_PATH" != "x" ; 在/ Applications / MAMP / Library / bin / envvars中注释了以下内容#if test“ x $ DYLD_LIBRARY_PATH”!=“ x”; then 然后
    # DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH" #DYLD_LIBRARY_PATH =“ / Applications / MAMP / Library / lib:$ DYLD_LIBRARY_PATH”
    #else #其他
    # DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib" #DYLD_LIBRARY_PATH =“ / Applications / MAMP / Library / lib”
    #fi #fi
    #export DYLD_LIBRARY_PATH**** #export DYLD_LIBRARY_PATH ****
  8. But I could not see pdflib in my phpinfo() 但是我在phpinfo()中看不到pdflib

I tried to access /pdflib/hello.php and I see following message in my apache error log 我尝试访问/pdflib/hello.php,在我的Apache错误日志中看到以下消息

client denied by server configuration: /Applications/MAMP/htdocs/pdflib/.DS_Store 服务器配置拒绝客户端:/Applications/MAMP/htdocs/pdflib/.DS_Store
client denied by server configuration: /Applications/MAMP/htdocs/pdflib/bind/.DS_Store, referer: http:///pdflib/ 客户端被服务器配置拒绝:/Applications/MAMP/htdocs/pdflib/bind/.DS_Store,引用网址:http:/// pdflib /

I dont know where is going wrong. 我不知道哪里出了问题。

I saw this version map in the doc. 我在文档中看到了这个版本图。 So I dont think there is a version mismatch. 所以我不认为版本不匹配。
bind/php/php-530 for PHP 5.3.0 and above 适用于PHP 5.3.0及更高版本的bind / php / php-530
bind/php/php-540 for PHP 5.4.0 and above 适用于PHP 5.4.0及更高版本的bind / php / php-540
bind/php/php-550 for PHP 5.5.0 and above 适用于PHP 5.5.0及更高版本的bind / php / php-550

Can anyone one find out the issue here. 谁能在这里找到问题。 Any input will show me a new path to solve this issue. 任何输入都会向我显示解决此问题的新途径。

Thanks in advance. 提前致谢。

I have added my Apache2 error log and php_error_log and I guess either one or both of these may be the reason for my unsuccessful installation of pdflib. 我添加了我的Apache2错误日志和php_error_log,并且我猜这两者之一或两者可能是我无法成功安装pdflib的原因。 If I can get some information to move forward to fix the issue, it will be very useful. 如果我能获得一些信息以解决该问题,它将非常有用。

Apache Error log Apache错误日志
[Tue Apr 15 11:38:22 2014] [error] [client ::1] client denied by server configuration: /Applications/MAMP/htdocs/pdflib/.DS_Store [2014年4月15日星期二11:38:22] [错误]服务器配置拒绝了[client :: 1]客户端:/Applications/MAMP/htdocs/pdflib/.DS_Store
[Tue Apr 15 11:38:24 2014] [error] [client ::1] client denied by server configuration: /Applications/MAMP/htdocs/pdflib/bind/.DS_Store, referer: http:///pdflib/ [2014年4月15日星期二11:38:24] [错误] [客户端:: 1]客户端被服务器配置拒绝:/Applications/MAMP/htdocs/pdflib/bind/.DS_Store,引用网址:http:/// pdflib /

php_error_log [15-Apr-2014 11:25:08 America/Los_Angeles] PHP Warning: PHP Startup: PDFlib: Unable to initialize module php_error_log [2014年4月15日11:25:08 America / Los_Angeles] PHP警告:PHP启动:PDFlib:无法初始化模块
Module compiled with build ID=API20121212,TS 使用内部版本ID = API20121212,TS编译的模块
PHP compiled with build ID=API20121212,NTS PHP使用内部版本ID = API20121212,NTS编译
These options need to match 这些选项需要匹配

Your php_error_log tells: 您的php_error_log告诉:

php_error_log [15-Apr-2014 11:25:08 America/Los_Angeles] PHP Warning: PHP Startup: PDFlib: Unable to initialize module
Module compiled with build ID=API20121212,TS
PHP compiled with build ID=API20121212,NTS
These options need to match

This means that the PHP you are using is compiled "non thread safe", the PDFlib module you use is the "thread safe" variant. 这意味着您正在使用的PHP被编译为“非线程安全”,而您使用的PDFlib模块则为“线程安全”变体。 In a "non thread safe" php you can only use "non thread safe extensions. Sou you need to install the extension from the "php-550-nozts_VS11" directory of the PDFlib package. 在“非线程安全”的php中,您只能使用“非线程安全的扩展名。”您需要从PDFlib软件包的“ php-550-nozts_VS11”目录中安装扩展名。

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

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