{"id":474,"date":"2013-12-08T23:59:14","date_gmt":"2013-12-08T15:59:14","guid":{"rendered":"http:\/\/fineyi.com\/?p=474"},"modified":"2013-12-08T23:59:14","modified_gmt":"2013-12-08T15:59:14","slug":"centos6-4-php5-2%e6%b7%bb%e5%8a%a0zenddebug%e6%89%a9%e5%b1%95-%e5%ae%8c%e7%be%8e%e6%94%af%e6%8c%81zend-studio10-5","status":"publish","type":"post","link":"http:\/\/www.fineyi.com\/?p=474","title":{"rendered":"CentOS6.4 PHP5.2\u6dfb\u52a0ZendDebug\u6269\u5c55 \u5b8c\u7f8e\u652f\u6301Zend Studio10.5"},"content":{"rendered":"<p>\t\t\t\t<span style=\"font-family: 'Microsoft Yahei';\">\u4e4b\u524d\u4e00\u6bb5\u65f6\u95f4\u7528\u7684\u5f00\u53d1\u73af\u5883\u662fwamp\uff0c\u8fd9\u4e2a\u96c6\u6210\u5305\u7684\u4f18\u70b9\u662f\uff1a\u5b89\u88c5\u7b80\u5355\uff0c\u64cd\u4f5c\u4fbf\u6377\uff0c\u7f3a\u70b9\u662f\uff1a\u6bcf\u6b21\u91cd\u88c5\u7cfb\u7edf\u540e\u90fd\u8981\u91cd\u65b0\u5b89\u88c5\u914d\u7f6e\u73af\u5883\uff0c\u5e76\u4e14\u548c\u7ebf\u4e0a\u7684lamp\u73af\u5883\u4e0d\u4e00\u81f4\uff0c\u6709\u65f6\u672c\u5730\u8fd0\u884c\u6b63\u5e38\u7684\u4ee3\u7801\u4e0a\u5230\u7ebf\u4e0a\u5374\u51fa\u73b0\u83ab\u540d\u5176\u5999\u7684\u95ee\u9898\uff0c\u6240\u4ee5\u8003\u8651\u91cd\u65b0\u4e3a\u672c\u5730\u5b89\u88c5lamp\u5f00\u53d1\u73af\u5883\uff0c\u5373\uff1a<i>windows8+VMware Workstation 10 +CentOs6.4 64\u4f4d + lamp + Zend Studio10.5<\/i>\u3002<\/span><\/p>\n<p><span style=\"font-family: 'Microsoft Yahei';\">\u5b89\u88c5\u5b8c\u6210\u540e\u53d1\u73b0\u65e0\u6cd5\u4e3aPHP\u6dfb\u52a0ZendDebug\u6269\u5c55\uff0c\u67e5\u770b\u8d44\u6599\u624d\u77e5\u9053zend\u5b98\u65b9\u5728PHP5.2\u4e4b\u540e\u5c31\u4e0d\u518d\u5bf9ZendDebug\u63d0\u4f9b\u66f4\u65b0\u652f\u6301\uff0c\u6240\u4ee5\u5982\u679c\u8981\u7528Zend Studio +\u00a0ZendDebug\u8c03\u8bd5\u4ee3\u7801\u7684\u8bddPHP\u7684\u7248\u672c\u5fc5\u987b\u57285.3\u4ee5\u4e0b\uff08\u5f53\u7136\u4e5f\u53ef\u4ee5\u7528<a title=\"CentOS6.4 LAMP\u73af\u5883\u4e3aPHP\u6dfb\u52a0Xdebug\u6269\u5c55\u624b\u8bb0\" href=\"http:\/\/fineyi.com\/?p=462\" target=\"_blank\" rel=\"noopener\"><i>Zend Studio+Xdebug<\/i><\/a>\u00a0\u7ec4\u5408\uff09\uff0c\u65e0\u5948\u53ea\u6709\u7f16\u8bd1PHP5.2.*\u8001\u7248\u672c\u5b89\u88c5lamp\u3002<\/span><\/p>\n<p><span style=\"font-family: 'Microsoft Yahei';\">ZendDebug\u4e0b\u8f7d\uff1a<i><a title=\"ZendDebugger-20110410-linux-glibc23-x86_64.tar.gz\" href=\"http:\/\/pan.baidu.com\/s\/1CIeH6\" target=\"_blank\" rel=\"noopener\">linux64\u4f4d<\/a>\u00a0<a title=\"ZendDebugger-20110410-linux-glibc23-i386.tar.gz\" href=\"http:\/\/pan.baidu.com\/s\/16CzdZ\" target=\"_blank\" rel=\"noopener\">linux32\u4f4d<\/a>\u00a0<a title=\"http:\/\/www.zend.com\/en\/products\/studio\/downloads\" href=\"http:\/\/www.zend.com\/en\/products\/studio\/downloads\" target=\"_blank\" rel=\"noopener\">Zend\u5b98\u65b9\u4e0b\u8f7d<\/a><\/i><\/span><\/p>\n<p><span style=\"font-family: 'Microsoft Yahei';\">ZendDebug\u914d\u7f6e\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/span><\/p>\n<pre class=\"lang:default decode:true\">[root@E \/]#yum -y install php-devel\n\n\u9009\u62e9\u5bf9\u5e94\u7248\u672c\u7684ZendDebug.so\u6587\u4ef6\u653e\u81f3\uff1a\/usr\/lib64\/php\/modules\/\u76ee\u5f55\u4e0b\n\n(\u56e0\u4e3a\u672c\u673a\u5b89\u88c5\u7684\u4e3aPHP5.2.1.7\uff0c\u6240\u4ee5\u9009\u62e9ZendDebugger-20110410-linux-glibc23-x86_64\/ZendDebugger-20110410-linux-glibc23-x86_64\/5_2_x_comp\/ZendDebugger.so)\n\n\u5728php.ini\u4e2d\u6700\u4e0b\u65b9\u6dfb\u52a0\u914d\u7f6e\uff1a\n\n[root@E \/]#vi \/etc\/php.ini\n[Zend]\nzend_extension=\/usr\/lib64\/php\/modules\/ZendDebugger.so \u00a0\/\/\u6269\u5c55\u6587\u4ef6\u7edd\u5bf9\u8def\u5f84\nzend_debugger.allow_hosts=127.0.0.1\/32,192.168.0.0\/16 \u00a0 \/\/\u8bbe\u7f6e\u4f60\u5141\u8bb8\u8bbf\u95ee\u7684\u4e3b\u673aIP\u8303\u56f4\nzend_debugger.expose_remotely=always\n\n\u4fdd\u5b58\n\n[root@E \/]#service httpd restart \u00a0 \/\/\u91cd\u542fapache\n\n\u7528phpinfo\u67e5\u770b\uff0c\u672a\u53d1\u73b0ZendDebugger\u6269\u5c55\uff0c\u8bf4\u660e\u52a0\u8f7d\u5931\u8d25\u3002\n\n\u7528php -v\u67e5\u770b\uff0c\u6709\u62a5\u9519\uff1a\n\n[root@E \/]# php -v\nFailed loading \/usr\/lib64\/php\/modules\/ZendDebugger.so: libssl.so.0.9.8: cannot open shared object file: No such file or directory\nPHP 5.3.3 (cli) (built: Nov 22 2013 10:59:29)\nCopyright (c) 1997-2010 The PHP Group\nZend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies\n\u539f\u56e0\uff1a\u56e0\u4e3a\u6700\u65b0\u7684linux\u53d1\u884c\u7248\u672c\u00a0libssl\u00a0\u548c\u00a0libcrypto\u00a0\u5df2\u5347\u7ea7\u52301.0.0,\u800c\u7cfb\u7edf\u4e2d\u627e\u4e0d\u5230\u00a0libssl.so.0.9.8\u6587\u4ef6\n\n\u89e3\u51b3\uff1a\u53ea\u8981\u521b\u5efa\u76f8\u5e94\u7684\u8f6f\u94fe\u63a5\u5373\u53ef\n\n[root@E \/]# ll \/usr\/lib64\/libssl*\n-rwxr-xr-x. 1 root root 221568 2 nov\u00a0\u00a023 2013 \/usr\/lib64\/libssl3.so\nlrwxrwxrwx. 1 root root 16 11 nov\u00a026 19:31 \/usr\/lib64\/libssl.so -&gt; libssl.so.1.0.1e\nlrwxrwxrwx. 1 root root 16 11 nov\u00a026 19:31 \/usr\/lib64\/libssl.so.10 -&gt; libssl.so.1.0.1e\n-rwxr-xr-x. 1 root root 436984 12\u00a0nov\u00a0 4 2013 \/usr\/lib64\/libssl.so.1.0.1e\n\u5efa\u7acb\u8f6f\u8fde\u63a5\uff1a\n[root@E \/]#ln -s \/usr\/lib64\/libssl.so.1.0.1e \/usr\/lib64\/libssl.so.0.9.8\n\n[root@E \/]# ll \/usr\/lib64\/libcrypto*\nlrwxrwxrwx. 1 root root 19 11 nov 26 19:31 \/usr\/lib64\/libcrypto.so -&gt; libcrypto.so.1.0.1e\nlrwxrwxrwx. 1 root root 19 11 nov 26 19:31 \/usr\/lib64\/libcrypto.so.10 -&gt; libcrypto.so.1.0.1e\n-rwxr-xr-x. 1 root root 1946880 12 nov \u00a04 2013 \/usr\/lib64\/libcrypto.so.1.0.1e\n\u5efa\u7acb\u8f6f\u8fde\u63a5\uff1a\n[root@E \/]#ln -s \/usr\/lib64\/libcrypto.so.1.0.1e \/usr\/lib64\/libcrypto.so.0.9.8\n[root@E \/]#service httpd restart \u00a0 \/\/\u91cd\u542fapache\n[root@E \/]# php -v\nZend Debugger requires Zend Engine API version 220060519.\nThe Zend Engine API version 220090626 which is installed, is newer.\nContact Zend Technologies at http:\/\/www.zend.com\/ for a later version of Zend Debugger.\n\nPHP 5.3.3 (cli) (built: Jul 12 2013 20:35:47)\nCopyright (c) 1997-2010 The PHP Group\nZend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies\n\n\u62a5\u9519\u89e3\u51b3<\/pre>\n<div>\n<p>\u7528phpinfo\u67e5\u770bZendDebug\u6269\u5c55\u52a0\u8f7d\u6210\u529f\uff01<\/p>\n<p>Zend Studio10.5\u6d4b\u8bd5\uff0c\u8c03\u8bd5\u6b63\u5e38\uff01<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\uff1a<a title=\"\u6021\u7136\u4e4b\u4e50\" href=\"http:\/\/fineyi.com\/\" target=\"_blank\" rel=\"noopener\">\u6021\u7136\u4e4b\u4e50 \u2013 FineYi<\/a><\/p>\n<p>\u53c2\u8003\u8d44\u6599\uff1a<a title=\"http:\/\/stackoverflow.com\/questions\/13467358\/zend-debugger-will-not-load\" href=\"http:\/\/stackoverflow.com\/questions\/13467358\/zend-debugger-will-not-load\" target=\"_blank\" rel=\"noopener\">stackoverflow<\/a>\u00a0\u00a0<a title=\"http:\/\/forums.zend.com\/viewtopic.php?f=59&amp;t=12423\" href=\"http:\/\/forums.zend.com\/viewtopic.php?f=59&amp;t=12423\" target=\"_blank\" rel=\"noopener\">forums.zend.com<\/a>\u00a0<a title=\"http:\/\/blog.csdn.net\/dragon8299\/article\/details\/7175932\" href=\"http:\/\/blog.csdn.net\/dragon8299\/article\/details\/7175932\" target=\"_blank\" rel=\"noopener\">CSDN<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e4b\u524d\u4e00\u6bb5\u65f6\u95f4\u7528\u7684\u5f00\u53d1\u73af\u5883\u662fwamp\uff0c\u8fd9\u4e2a\u96c6\u6210\u5305\u7684\u4f18\u70b9\u662f\uff1a\u5b89\u88c5\u7b80\u5355\uff0c\u64cd\u4f5c\u4fbf\u6377\uff0c\u7f3a\u70b9 &hellip; <a href=\"http:\/\/www.fineyi.com\/?p=474\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a> <a href=\"http:\/\/www.fineyi.com\/?p=474\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"footnotes":""},"categories":[3,5,6,8],"tags":[19,30,35,38,50,54,55,56,57],"class_list":["post-474","post","type-post","status-publish","format-standard","hentry","category-development-tools","category-linux","category-mysql","category-php","tag-centos","tag-linux","tag-mysql-2","tag-php","tag-wampserver","tag-windows8","tag-xdebug","tag-zend-debug","tag-zend-studio"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.fineyi.com\/index.php?rest_route=\/wp\/v2\/posts\/474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.fineyi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.fineyi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.fineyi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.fineyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=474"}],"version-history":[{"count":0,"href":"http:\/\/www.fineyi.com\/index.php?rest_route=\/wp\/v2\/posts\/474\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.fineyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.fineyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.fineyi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}