{"id":60781,"date":"2025-04-26T10:52:53","date_gmt":"2025-04-26T02:52:53","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60781\/"},"modified":"2025-04-26T10:52:53","modified_gmt":"2025-04-26T02:52:53","slug":"%e8%87%aa%e4%b8%bb%e8%af%86%e5%88%ab%e7%9a%84zen-cart%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6configuration-php","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60781\/","title":{"rendered":"\u81ea\u4e3b\u8bc6\u522b\u7684zen cart\u914d\u7f6e\u6587\u4ef6configuration.php"},"content":{"rendered":"<p> \u5982\u679c\u4f60\u9700\u8981\u6279\u91cf\u521b\u5efa\u5f88\u591a\u4e2azen cart\u7f51\u7ad9\uff1f\u4f60\u662f\u5426\u662f\u624b\u52a8\u4e00\u4e2a\u4e2a\u5b89\u88c5\u751f\u6210\u914d\u7f6e\u6587\u4ef6configuration.php? \u5982\u679c\u4f60\u7ba1\u7406\u7740\u5f88\u591a\u7684zen cart\u7f51\u7ad9\u548c\u670d\u52a1\u5668\uff0c\u9700\u8981\u5728\u4e0d\u540c\u7684\u670d\u52a1\u5668\u95f4\u8f6c\u79fbzen cart\u7f51\u7ad9\uff1f\u4f60\u662f\u5426\u624b\u5de5\u4e00\u4e2a\u4e2a\u4fee\u6539\u914d\u7f6e\u6587\u4ef6configuration.php? \u5c3d\u7ba1\u4f60\u53ef\u4ee5\u975e\u5e38\u719f\u6089zen cart\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4f60\u4ecd\u7136\u6709\u53ef\u80fd\u51fa\u9519\uff0c\u767e\u5bc6\u5fc5\u6709\u4e00\u758f\u554a\u3002\u4e3a\u6b64\uff0c\u6211\u5b9a\u4e49\u4e86\u4e00\u4e2a\u81ea\u5df1\u8bc6\u522b\u9002\u5e94\u7684zen car\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p> \/**<br \/> * @authoer George Zheng&nbsp;  <br \/> * @generated by george zheng on date &#8211; 2012-04-06 22:00:20 <br \/> * @domain: &#8211; abcde.com (to identify the domain) <br \/> * @date: &#8211; 20120406 <\/p>\n<p> * @package Configuration Settings circa 1.3.8<br \/> * @copyright Copyright 2003-2007 Zen Cart Development Team<br \/> * @copyright Portions Copyright 2003 osCommerce<br \/> * @license http:\/\/www.zen-cart.com\/license\/2_0.txt GNU Public License V2.0<br \/> *\/<\/p>\n<p> \/*************** NOTE: This file is similar, but DIFFERENT from the &#8220;admin&#8221; version of configure.php. ***********\/<br \/> \/*************** The 2 files should be kept separate and not used to overwrite each other. ***********\/<\/p>\n<p> $path = dirname(dirname(__FILE__));<br \/> $user = explode(&#8216;\/&#8217;,$path);<br \/> $user = $user[2];<br \/> $domain = $_SERVER[&#8216;SERVER_NAME&#8217;];<br \/> if ( substr($domain,0,4) != &#8216;www.&#8217; ) {<br \/> $domain = &#8216;www.&#8217; . $domain;<br \/> }<br \/> \/\/ Define the webserver and path parameters<br \/> \/\/ HTTP_SERVER is your Main webserver: eg-http:\/\/www.your_domain.com<br \/> \/\/ HTTPS_SERVER is your Secure webserver: eg-https:\/\/www.your_domain.com<br \/> define(&#8216;HTTP_SERVER&#8217;, &#8216;http:\/\/&#8217;.$domain);<br \/> define(&#8216;HTTPS_SERVER&#8217;, &#8216;https:\/\/&#8217;.$domain);<\/p>\n<p> \/\/ Use secure webserver for checkout procedure?<br \/> define(&#8216;ENABLE_SSL&#8217;, &#8216;false&#8217;);<\/p>\n<p> \/\/ NOTE: be sure to leave the trailing &#8216;\/&#8217; at the end of these lines if you make changes!<br \/> \/\/ * DIR_WS_* = Webserver directories (virtual\/URL)<br \/> \/\/ these paths are relative to top of your webspace &#8230; (ie: under the public_html or httpdocs folder)<br \/> define(&#8216;DIR_WS_CATALOG&#8217;, &#8216;\/&#8217;);<br \/> define(&#8216;DIR_WS_HTTPS_CATALOG&#8217;, &#8216;\/&#8217;);<\/p>\n<p> define(&#8216;DIR_WS_IMAGES&#8217;, &#8216;images\/&#8217;);<br \/> define(&#8216;DIR_WS_INCLUDES&#8217;, &#8216;includes\/&#8217;);<br \/> define(&#8216;DIR_WS_FUNCTIONS&#8217;, DIR_WS_INCLUDES . &#8216;functions\/&#8217;);<br \/> define(&#8216;DIR_WS_CLASSES&#8217;, DIR_WS_INCLUDES . &#8216;classes\/&#8217;);<br \/> define(&#8216;DIR_WS_MODULES&#8217;, DIR_WS_INCLUDES . &#8216;modules\/&#8217;);<br \/> define(&#8216;DIR_WS_LANGUAGES&#8217;, DIR_WS_INCLUDES . &#8216;languages\/&#8217;);<br \/> define(&#8216;DIR_WS_DOWNLOAD_PUBLIC&#8217;, DIR_WS_CATALOG . &#8216;pub\/&#8217;);<br \/> define(&#8216;DIR_WS_TEMPLATES&#8217;, DIR_WS_INCLUDES . &#8216;templates\/&#8217;);<\/p>\n<p> define(&#8216;DIR_WS_PHPBB&#8217;, &#8216;\/&#8217;);<\/p>\n<p> \/\/ * DIR_FS_* = Filesystem directories (local\/physical)<br \/> \/\/the following path is a COMPLETE path to your Zen Cart files. eg: \/var\/www\/vhost\/accountname\/public_html\/store\/<br \/> define(&#8216;DIR_FS_CATALOG&#8217;, $path.&#8217;\/&#8217;);<\/p>\n<p> define(&#8216;DIR_FS_DOWNLOAD&#8217;, DIR_FS_CATALOG . &#8216;download\/&#8217;);<br \/> define(&#8216;DIR_FS_DOWNLOAD_PUBLIC&#8217;, DIR_FS_CATALOG . &#8216;pub\/&#8217;);<br \/> define(&#8216;DIR_WS_UPLOADS&#8217;, DIR_WS_IMAGES . &#8216;uploads\/&#8217;);<br \/> define(&#8216;DIR_FS_UPLOADS&#8217;, DIR_FS_CATALOG . DIR_WS_UPLOADS);<br \/> define(&#8216;DIR_FS_EMAIL_TEMPLATES&#8217;, DIR_FS_CATALOG . &#8217;email\/&#8217;);<\/p>\n<p> \/\/ define our database connection<br \/> define(&#8216;DB_TYPE&#8217;, &#8216;mysql&#8217;);<br \/> define(&#8216;DB_PREFIX&#8217;, &#8221;);<br \/> define(&#8216;DB_SERVER&#8217;, &#8216;localhost&#8217;);<br \/> define(&#8216;DB_SERVER_USERNAME&#8217;, $user);<br \/> define(&#8216;DB_SERVER_PASSWORD&#8217;, &#8216;D1#KRoM30EC^&#8217;);<br \/> define(&#8216;DB_DATABASE&#8217;, $user.&#8217;_db&#8217;);<br \/> define(&#8216;USE_PCONNECT&#8217;, &#8216;false&#8217;);<br \/> define(&#8216;STORE_SESSIONS&#8217;, &#8216;db&#8217;);<br \/> \/\/ for STORE_SESSIONS, use &#8216;db&#8217; for best support, or &#8221; for file-based storage<\/p>\n<p> \/\/ The next 2 &#8220;defines&#8221; are for SQL cache support.<br \/> \/\/ For SQL_CACHE_METHOD, you can select from: none, database, or file<br \/> \/\/ If you choose &#8220;file&#8221;, then you need to set the DIR_FS_SQL_CACHE to a directory where your apache<br \/> \/\/ or webserver user has write privileges (chmod 666 or 777). We recommend using the &#8220;cache&#8221; folder inside the Zen Cart folder<br \/> \/\/ ie: \/path\/to\/your\/webspace\/public_html\/zen\/cache &#8212; leave no trailing slash<br \/> define(&#8216;SQL_CACHE_METHOD&#8217;, &#8216;file&#8217;);<br \/> define(&#8216;DIR_FS_SQL_CACHE&#8217;, $path.&#8217;\/cache&#8217;);<br \/> \/\/ EOF<\/p>\n<p> \u6ce8\uff1a<\/p>\n<p> 1\uff0c\u6b64\u914d\u7f6e\u6587\u4ef6\u4f1a\u81ea\u52a8\u8bc6\u522b\u8def\u5f84\uff0c\u6240\u4ee5\u4f60\u4e0d\u9700\u8981\u518d\u4e00\u4e00\u914d\u7f6e\u8def\u5f84\u4e86<\/p>\n<p> 2\uff0c\u5b83\u4f1a\u81ea\u52a8\u8bc6\u522b\u57df\u540d\uff0c\u5e76\u5c06\u57df\u540d\u7edf\u4e00\u4e3awww.domain.com\u7684\u5f62\u5f0f<\/p>\n<p> 3\uff0c\u7531\u4e8e\u6211\u7684\u7279\u6b8a\u60c5\u51b5\uff0c\u6211\u7684\u6570\u636e\u662f\u548c\u7cfb\u7edf\u7528\u6237\u540d\u76f8\u5173\u8054\u7684\u3002\u8fd9\u4e5f\u662f\u4e3a\u4e86\u65b9\u4fbf\uff0c\u6240\u4ee5\uff0c\u6570\u636e\u5e93\u8fd9\u5757\u4e5f\u662f\u52a8\u6001\u7684<\/p>\n<p> 4\uff0c\u8fd8\u662f\u4e3a\u4e86\u6ee1\u8db3\u6211\u7684\u7279\u5b9a\u9700\u6c42\uff0c\u6211\u6570\u636e\u5e93\u7684\u5bc6\u7801\u662f\u5728\u6279\u91cf\u751f\u6210zen cart\u7f51\u7ad9\u65f6\uff0c\u6279\u91cf\u5efa\u7684\u6570\u636e\u5e93\uff0c\u518d\u521b\u5efa\u6307\u5b9a\u7684\u6570\u636e\u5e93\u7528\u6237\u548c\u5bc6\u7801\u3002\u81f3\u6b64\u6211\u7684zen cart\u914d\u7f6e\u6587\u4ef6\u5b9e\u73b0\u4e86\u5b8c\u6210\u7a0b\u5e8f\u751f\u6210\uff0c\u65e0\u9700\u4eba\u5de5\u624b\u52a8\u3002\u800c\u4e0d\u4ec5\u662f\u81ea\u9002\u5e94\u3002<\/p>\n<p> \u5982\u679c\u4f60\u7684\u7f51\u7ad9\u5c11\uff0c\u4f60\u53ea\u9700\u8981zen cart\u7f51\u7ad9\u7684\u914d\u7f6e\u6587\u4ef6\u80fd\u591f\u81ea\u9002\u5e94\u5c31\u884c\u4e86\u3002\u800c\u4e0d\u9700\u8981\u81ea\u52a8\u751f\u6210\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u4f60\u9700\u8981\u6279\u91cf\u521b\u5efa\u5f88\u591a\u4e2azen cart\u7f51\u7ad9\uff1f\u4f60\u662f\u5426\u662f\u624b\u52a8\u4e00\u4e2a\u4e2a\u5b89\u88c5\u751f\u6210\u914d\u7f6e\u6587\u4ef6configuration.php? \u5982\u679c\u4f60\u7ba1\u7406\u7740\u5f88\u591a\u7684zen cart\u7f51\u7ad9\u548c\u670d\u52a1\u5668\uff0c\u9700\u8981\u5728\u4e0d\u540c\u7684\u670d\u52a1\u5668\u95f4\u8f6c\u79fbzen cart\u7f51\u7ad9\uff1f\u4f60\u662f\u5426\u624b\u5de5\u4e00\u4e2a\u4e2a\u4fee\u6539\u914d\u7f6e\u6587\u4ef6configuration.php? \u5c3d\u7ba1\u4f60\u53ef\u4ee5\u975e\u5e38\u719f\u6089zen cart\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4f60\u4ecd\u7136\u6709\u53ef\u80fd\u51fa\u9519\uff0c\u767e\u5bc6\u5fc5\u6709\u4e00\u758f\u554a\u3002\u4e3a\u6b64\uff0c\u6211\u5b9a\u4e49\u4e86\u4e00\u4e2a\u81ea\u5df1\u8bc6\u522b\u9002\u5e94\u7684zen car\u914d\u7f6e\u6587\u4ef6\u3002 \/** * @authoer George Zheng&nbsp; * @generated by george zheng on date &#8211; 2012-04-06 22:00:20 * @domain: &#8211; abcde.com (to identify the domain) * @date: &#8211; 20120406 * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-60781","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=60781"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60781\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}