{"id":2950,"date":"2023-02-21T14:36:44","date_gmt":"2023-02-21T06:36:44","guid":{"rendered":"https:\/\/km94.com\/?p=2950"},"modified":"2023-02-21T14:36:44","modified_gmt":"2023-02-21T06:36:44","slug":"hostwinds-vps%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%aeprestashop%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/dy208.cn\/index.php\/2023\/02\/21\/hostwinds-vps%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%aeprestashop%e6%95%99%e7%a8%8b\/","title":{"rendered":"Hostwinds VPS\u670d\u52a1\u5668\u5b89\u88c5\u914d\u7f6ePrestaShop\u6559\u7a0b"},"content":{"rendered":"<p>PrestaShop\u662f\u4e00\u6b3e\u514d\u8d39\u5f00\u6e90\u7684\u57fa\u4e8ePHP\u548cMySQL\u7684\u7535\u5b50\u5546\u52a1\u89e3\u51b3\u65b9\u6848\uff0c\u4e0d\u5c11\u505a\u5916\u8d38\u81ea\u5efa\u7ad9\u7684\u7528\u6237\u4f1a\u9009\u62e9\u5b83\u6765\u90e8\u7f72\u7f51\u5e97\u3002PrestaShop\u529f\u80fd\u5f3a\u5927\uff0c\u5177\u6709\u826f\u597d\u7684\u81ea\u5b9a\u4e49\u6027\uff0c\u5b89\u88c5\u65b9\u4fbf\u3002\u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\u4e0b\u5982\u4f55\u5728Hostwinds VPS\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u914d\u7f6ePrestaShop\u3002<\/p>\n<p>\n\t<figure class=\"wp-block-image size-full\"><img decoding=\"async\" class=\"wp-image-2952\" alt=\"Hostwinds VPS\u670d\u52a1\u5668\u5b89\u88c5\u914d\u7f6ePrestaShop\u6559\u7a0b\" src=\"https:\/\/km94.com\/wp-content\/uploads\/2023\/02\/1-125.jpg\"><\/figure>\n\t<\/p>\n<p>Hostwinds\u662f\u5bb6\u4f18\u79c0\u7684\u56fd\u5916\u670d\u52a1\u5668\u63d0\u4f9b\u5546\uff0c\u65d7\u4e0b\u4ea7\u54c1\u79cd\u7c7b\u4e30\u5bcc\uff0c\u5305\u62ec\u865a\u62df\u4e3b\u673a\u3001\u4f01\u4e1a\u4e3b\u673a\u3001\u6258\u7ba1\u578b\u548c\u975e\u6258\u7ba1\u578bVPS\u670d\u52a1\u5668\u3001\u4e91\u670d\u52a1\u5668\u3001\u4e13\u7528\u670d\u52a1\u5668\u7b49\u7b49\u3002\u5176\u4e2dHostwinds VPS\u91c7\u7528\u56fa\u6001\u786c\u76d8\u5b58\u50a8\uff0c\u53ef\u6269\u5c55\u6027\u5f3a\uff0c\u4fdd\u8bc199.9999% \u6b63\u5e38\u8fd0\u884c\u65f6\u95f4\uff0c\u6027\u80fd\u4f18\u8d8a\uff0c\u6240\u4ee5\u5e38\u7528\u4e8e\u6258\u7ba1\u5916\u8d38\u7f51\u7ad9\u3002\u8fd9\u91cc\u6211\u4eec\u4ee5Hostwinds Linux VPS\u4e3a\u4f8b\uff0c\u4e0b\u9762\u6765\u770b\u4e0b\u5b89\u88c5PrestaShop\u7684\u4e3b\u8981\u6b65\u9aa4\u4ecb\u7ecd\u3002<\/p>\n<p>\u5b89\u88c5PrestaShop\u9700\u8981\u914d\u7f6eApache\u3001MySQL\u548cPHP\u73af\u5883\uff0c\u5efa\u8bae\u4f7f\u75282GB\u4ee5\u4e0a\u5185\u5b58\u7684\u670d\u52a1\u5668\u3002Hostwinds Linux VPS\u670d\u52a1\u5668\u5f00\u901a\u540e\uff0c\u4f7f\u7528SSH\u5de5\u5177\u767b\u5f55\u5230\u670d\u52a1\u5668\u4e0a\uff0c\u7136\u540e\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4\u4ee5\u786e\u4fdd\u64cd\u4f5c\u7cfb\u7edf\u662f\u6700\u65b0\u7684\u3002<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">yum update<\/code><\/pre>\n<p><strong>\u4e00\u3001\u5b89\u88c5Apache<\/strong><\/p>\n<p>\u6211\u4eec\u5c06\u4f7f\u7528DNF\u5b89\u88c5Apache\uff0c\u8fd9\u662fCentOS 8\u7684\u9ed8\u8ba4\u5305\u7ba1\u7406\u5668\uff1a<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">dnf install httpd<\/code><\/pre>\n<p>\u5728\u7cfb\u7edf\u4e0a\u5b89\u88c5Apache\u670d\u52a1\u540e\uff0c\u542f\u52a8\u6240\u6709\u5fc5\u9700\u7684\u670d\u52a1\uff1a<\/p>\n<blockquote>\n<p>systemctl restart httpd<\/p>\n<p>systemctl status httpd<\/p>\n<p>systemctl enable httpd<\/p>\n<\/blockquote>\n<p>\u4e4b\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u6253\u5f00Web\u6d4f\u89c8\u5668\u5e76\u8f93\u5165URL http\uff1a\/\/\u670d\u52a1\u5668IP\u5730\u5740\u6765\u9a8c\u8bc1Apache\u662f\u5426\u6b63\u5728\u8fd0\u884c\u3002<\/p>\n<p><strong>\u4e8c\u3001\u5b89\u88c5MySQL\uff08MariaDB\uff09<\/strong><\/p>\n<p>1\u3001\u5b89\u88c5MariaDB\u3002<\/p>\n<blockquote>\n<p>dnf install mariadb-server<\/p>\n<p>systemctl start mariadb<\/p>\n<\/blockquote>\n<p>2\u3001\u4e3aMariaDB\u8bbe\u7f6e\u5f3a\u5bc6\u7801\u3002<\/p>\n<p>\u4e3a\u4e86\u63d0\u9ad8\u6570\u636e\u5e93\u5b89\u5168\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528mysql_secure_installation\u811a\u672c\u4fdd\u62a4MariaDB\u3002\u8bbe\u7f6eroot\u5bc6\u7801\uff0c\u8bf7\u5220\u9664\u533f\u540d\u7528\u6237\uff0c\u7981\u6b62\u8fdc\u7a0broot\u767b\u5f55\uff0c\u7136\u540e\u5220\u9664\u6d4b\u8bd5\u6570\u636e\u5e93\u5e76\u8bbf\u95ee\u5b89\u5168MariaDB\uff1a<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">mysql_secure_installation<\/code><\/pre>\n<p>3\u3001\u91cd\u65b0\u542f\u52a8MariaDB\u6570\u636e\u5e93\u670d\u52a1\u5668\uff0c\u5e76\u542f\u7528\u5b83\u4ee5\u542f\u52a8\u7cfb\u7edf\u542f\u52a8\u3002<\/p>\n<blockquote>\n<p>systemctl restart mariadb<\/p>\n<p>systemctl status mariadb<\/p>\n<p>systemctl enable mariadb<\/p>\n<\/blockquote>\n<p><strong>\u4e09\u3001\u5b89\u88c5PHP<\/strong><\/p>\n<p>1\u3001\u5b89\u88c5PHP\u548c\u6240\u9700\u7684\u6a21\u5757\u3002<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">dnf install php php-common php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-gd php-mbstring php-xml php-zip php-json php-intl<\/code><\/pre>\n<p>2\u3001\u4f7f\u7528systemctl\u91cd\u65b0\u542f\u52a8apache\uff0c\u4ee5\u4fbf\u66f4\u6539\u751f\u6548\uff1a<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">systemctl restart httpd<\/code><\/pre>\n<p>3\u3001\u6d4b\u8bd5PHP\u7a0b\u5e8f\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3atest.php\u4e0a\u7684\u65b0\u6587\u4ef6\/ var \/ www \/ html\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<blockquote>\n<p>nano \/var\/www\/html\/info.php<\/p>\n<p>&lt;?php<br>\nphpinfo();<br>\n?&gt;<\/p>\n<\/blockquote>\n<p>\u7136\u540e\u6309Ctrl-X\uff0cY\uff0c\u8f93\u5165\u4ee5\u4fdd\u5b58\u548c\u9000\u51faNano\u3002\u8bbf\u95eehttp\uff1a\/\/ [\u670d\u52a1\u5668IP\u5730\u5740] \/info.php\u4ee5\u786e\u8ba4\u5df2\u5b89\u88c5PHP\u3002<\/p>\n<p><strong>\u56db\u3001\u5b89\u88c5PrestaShop<\/strong><\/p>\n<p>1\u3001\u4e0b\u8f7dPrestaShop\u5b89\u88c5\u6587\u4ef6<\/p>\n<p>\u6253\u5f00https:\/\/www.prestashop.com\/en\/versions\u94fe\u63a5\uff0c\u53f3\u952e\u5355\u51fb&#8221;\u4e0b\u8f7d&#8221;\u5e76\u9009\u62e9&#8221;\u590d\u5236\u94fe\u63a5\u5730\u5740&#8221;\uff0c\u7136\u540e\u8fd4\u56deSSH\u7ec8\u7aef\uff0c\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4\uff1a<\/p>\n<blockquote>\n<p>cd \/var\/www\/html\/<\/p>\n<p>wget<\/p>\n<\/blockquote>\n<p>\u53f3\u952e\u5355\u51fb\u4ee5\u7c98\u8d34URL\uff0c\u7136\u540e\u56de\u8f66\u3002<\/p>\n<p>\u6216\u8005\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06PrestaShop\u5b89\u88c5\u6587\u4ef6\u4e0b\u8f7d\u5230\u684c\u9762\uff0c\u7136\u540e\u4f7f\u7528SFTP\u4e0a\u4f20\u5b83\u3002<\/p>\n<p>2\u3001\u89e3\u538b\u7f29zip\u6587\u4ef6<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">unzip prestashop_1.*<\/code><\/pre>\n<p>\u5e76\u8bbe\u7f6e\u6743\u9650\uff0c\u56e0\u6b64PHP\u53ef\u4ee5\u5199\u5165\u76ee\u5f55\uff1a<\/p>\n<blockquote>\n<p>chown -R root.apache \/var\/www\/html\/<\/p>\n<p>chmod 775 \/var\/www\/html\/<\/p>\n<\/blockquote>\n<p>3\u3001\u4e3aPrestaShop\u5b89\u88c5\u6587\u4ef6\u521b\u5efa\u6570\u636e\u5e93<\/p>\n<p>\u4f7f\u7528\u6211\u4eec\u5728\u4e0a\u9762\u7684mysql_secure_installation\u6b65\u9aa4\u4e2d\u8bbe\u7f6e\u7684root\u5bc6\u7801\u767b\u5f55mysql\u3002<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">mysql -u root -p<\/code><\/pre>\n<p>\u5728MySQL\u547d\u4ee4\u884c\u4e2d\uff0c\u8f93\u5165\uff1a<\/p>\n<blockquote>\n<p>CREATE DATABASE presta_db;<\/p>\n<p>GRANT ALL ON presta_db.* TO &#8216;presta_user&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;ThisShouldBeAStrongerPassword&#8217; WITH GRANT OPTION;<\/p>\n<p>FLUSH PRIVILEGES;<\/p>\n<p>exit<\/p>\n<\/blockquote>\n<p>4\u3001\u542f\u52a8PrestAshop\u5b89\u88c5<\/p>\n<p>\u5728Web\u6d4f\u89c8\u5668\u4e2d\uff0c\u5bfc\u822a\u5230http\uff1a\/\/ [\u670d\u52a1\u5668IP\u5730\u5740] \/\uff0c\u5c06\u4f1a\u5f00\u59cb\u5b89\u88c5PrestaShop\u7a0b\u5e8f\uff0c\u5728\u6b64\u8fc7\u7a0b\u4e2d\u4f1a\u63d0\u4f9b\u6709\u76f8\u5173\u9009\u9879\u8bbe\u7f6e\uff0c\u6bd4\u5982\u8bed\u8a00\u8bbe\u7f6e\u3001\u6570\u636e\u5e93\u4fe1\u606f\u7b49\uff0c\u6839\u636e\u63d0\u793a\u4f9d\u6b21\u586b\u5199\u5373\u53ef\u3002\u4fe1\u606f\u8bbe\u7f6e\u5b8c\u6bd5\u540e\uff0cPrestaShop\u4e5f\u5c06\u5b8c\u6210\u5b89\u88c5\uff0c\u6700\u540e\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4\u4ee5\u5220\u9664\u5b89\u88c5\u76ee\u5f55\uff1a<\/p>\n<pre class=\"wp-block-code\"><code class=\"hljs text\"><span class=\"hljs-selector-tag\">rm -rf \/var\/www\/html\/install<\/code><\/pre>\n<p>\u5b89\u88c5\u6210\u529f\u540e\uff0c\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u5bfc\u822a\u5230http\uff1a\/\/ [\u670d\u52a1\u5668IP\u5730\u5740] \/ admin\uff0c\u5e76\u4f7f\u7528\u5728\u5b89\u88c5PrestaShop\u8fc7\u7a0b\u4e2d\u8bbe\u7f6e\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u548c\u5bc6\u7801\u767b\u5f55\u3002\u767b\u5f55\u5230PrestaShop\u540e\u53f0\u7ba1\u7406\u9875\u9762\u540e\uff0c\u6211\u4eec\u4fbf\u53ef\u4ee5\u8bbe\u7f6e\u5546\u5e97\uff0c\u6dfb\u52a0\u4ea7\u54c1\u3001\u914d\u7f6e\u8fd0\u8f93\u3001\u4ed8\u6b3e\u548c\u5176\u4ed6\u63d2\u4ef6\uff0c\u5e76\u5f00\u59cb\u9500\u552e\u3002<\/p>\n\n<div>\n<div>\n\n\n\n<\/div>\n<div>\n\n\n\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>PrestaShop\u662f\u4e00\u6b3e\u514d\u8d39\u5f00\u6e90\u7684\u57fa\u4e8ePHP\u548cMySQL\u7684\u7535\u5b50\u5546\u52a1\u89e3\u51b3\u65b9\u6848\uff0c\u4e0d\u5c11\u505a\u5916\u8d38\u81ea\u5efa\u7ad9\u7684\u7528\u6237\u4f1a\u9009\u62e9\u5b83\u6765&hellip;<\/p>\n","protected":false},"author":1,"featured_media":2951,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,2],"tags":[],"class_list":["post-2950","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-zjjc","category-jc","entry"],"_links":{"self":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts\/2950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2950"}],"version-history":[{"count":0,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/posts\/2950\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dy208.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}