|
<div class="f14 mb10" id="read_tpc">
当前最新 Magento 2.2 版本,不支持Ubuntu 18里默认的php7.2版本,可以考虑安装php7.1。<span style="display:none"> *<]ulR2 </span> <br /> <span style="display:none"> {ge^&l </span> <br /> <span style="display:none"> PWmFY'= </span> <br />过程:<span style="display:none"> Me2%X>; </span> <br /> <span style="display:none"> #sN]6 </span> <br /> <span style="display:none"> qy/xJ>: </span> <br />1.apt install oftware-properties-common # 准备<span onclick="sendmsg('pw_ajax.php','action=relatetag&tagname=安装',this.id)" style="cursor:pointer;border-bottom: 1px solid #FA891B;" id="rlt_4">安装</span>第三方软件源<span style="display:none"> wNq#vn </span> <br /> <span style="display:none"> g \&Z_ </span> <br /> <span style="display:none"> (jtrQob </span> <br />2.add-apt-repository ppandrej/php # 选择这作为php7.1安装源<span style="display:none"> M;-PrJdyt </span> <br /> <span style="display:none"> o4\\q66K </span> <br /> <span style="display:none"> _?CyKk\I </span> <br />3.apt update # 更新软件源<span style="display:none"> Y2W|b5 </span> <br /> <span style="display:none"> -LhO
</l </span> <br /> <span style="display:none"> /R!:ll2 </span> <br />4.apt install apache2 # 安装<span onclick="sendmsg('pw_ajax.php','action=relatetag&tagname=apache',this.id)" style="cursor:pointer;border-bottom: 1px solid #FA891B;" id="rlt_6">apache</span><span style="display:none"> Iw~R@, </span> <br /> <span style="display:none"> @j=:V!g2O </span> <br /> <span style="display:none"> wQEsq< </span> <br />5.apt install mariadb-server php7.1 php7.1-fpm php7.1-common php-pear php7.1-curl php7.1-gd php7.1-mbstring php7.1-zip php7.1-mysql php7.1-xml php7.1-bcmath php7.1-soap php7.1-intl php7.1-mcrypt # 安装 php-fpm 和 mariadb <span onclick="sendmsg('pw_ajax.php','action=relatetag&tagname=数据',this.id)" style="cursor:pointer;border-bottom: 1px solid #FA891B;" id="rlt_2">数据</span>库<span style="display:none"> `-/-(v+ i </span> <br /> <span style="display:none"> +DU^"q= </span> <br /> <span style="display:none"> F2QFQX(j </span> <br />6.创建<span onclick="sendmsg('pw_ajax.php','action=relatetag&tagname=数据库',this.id)" style="cursor:pointer;border-bottom: 1px solid #FA891B;" id="rlt_3">数据库</span>,数据库用户,给magento2使用<span style="display:none"> UQc!"D </span> <br /> <span style="display:none"> ose(#n40 </span> <br /> <span style="display:none"> O`K2mt\% </span> <br /><div class="f12">复制代码</div><div class="blockquote2" id="code1"><ol><li>mysql</li><li>CREATE DATABASE monica;</li><li>CREATE USER 'magento2'@'localhost' IDENTIFIED BY 'mimamima';</li><li>GRANT ALL ON magento2.* TO 'magento2'@'localhost';</li><li>exit</li></ol></div><span style="display:none"> J}BN}|Y@2 </span> <br /><span style="display:none"> \|&KD </span> <br /> <span style="display:none"> G5vp(%j
</span> <br /> <span style="display:none"> iO+,U}& </span> <br /> <span style="display:none"> ( RO-~- </span> <br /> <span style="display:none"> 4Oo{\&( </span> <br /> <span style="display:none"> ,cE yV74 </span> <br />7.上传Magento文件,解压到 /var/www/html/magento2 目录<span style="display:none"> 2. '` mGu </span> <br /> <span style="display:none"> :e1kpQ </span> <br /> <span style="display:none"> N,W ?} </span> <br />8.chown -R www-data. /var/www/html/magento2 # 设置文件权限<span style="display:none"> mX 3p </span> <br /> <span style="display:none"> lg"aB </span> <br /> <span style="display:none"> 7zM9K+3L </span> <br />9./etc/apache2/sites-enabled/000-default.conf # <span onclick="sendmsg('pw_ajax.php','action=relatetag&tagname=配置',this.id)" style="cursor:pointer;border-bottom: 1px solid #FA891B;" id="rlt_1">配置</span>站点<span style="display:none"> Co>e<be%S </span> <br /> <span style="display:none"> 3{$vN). </span> <br /> <span style="display:none"> .V4- </span> <br /><div class="f12">复制代码</div><div class="blockquote2" id="code2"><ol><li># 更改默认站点的配置文件,文件路径设置为 </li><li>DocumentRoot /var/www/html/magento2</li><li></li><li></li><li># 添加目录配置内容</li><li><Directory /var/www/html/magento2></li><li> Options Indexes FollowSymLinks</li><li> AllowOverride All</li><li> Require all granted</li><li></Directory></li><li></li><li></li><li># 添加php文件处理</li><li><FilesMatch \.php$></li><li> SetHandler "proxy:unix:/run/php/php7.1-fpm.sock|fcgi://localhost/"</li><li></FilesMatch></li></ol></div><span style="display:none"> 50_[n$tqE </span> <br /> <span style="display:none"> {Y-~7@ </span> <br /> <span style="display:none"> y+3+iT@i </span> <br /><span id="att_145787" class="f12"><span id="td_att145787" onmouSEOver="read.open('menu_att145787','td_att145787');" style="display:inline-block;"><img src="http://bbs.aliyun.com/attachment/Fid_207/207_1477160476054779_4ea0ac7611f5cba.png?58" border="0" style="max-width:995px;" onload="if(this.offsetWidth>'995')this.width='995';"></span><div id="menu_att145787" class="pw_menu" style="display:none;"><div style="border:1px solid #ffffff;background:#f3f9fb;padding:5px 10px;"><p><span class="mr10">图片:ubuntu18-magen2-3.png</span></p></div></div></span> <span style="display:none"> wXjidOd$ </span> <br /><span style="display:none"> L4,b ThSG </span> <br /> <span style="display:none"> `AYq,3V </span> <br /> <span style="display:none"> IjGPiC </span> <br />10.a2enmod rewrite proxy_fcgi # 启用 apache 的 rewrite 和 fcgi 模块<span style="display:none"> B*Q9g r </span> <br /> <span style="display:none"> %UAF~2]g </span> <br /> <span style="display:none"> nr2 Q[9~ </span> <br />11.systemctl restart apache2 # 重启 apache<span style="display:none"> /~MH]Gh </span> <br /> <span style="display:none"> o]EL=j </span> <br /> <span style="display:none"> _f'v>"K </span> <br />12.在浏览器里开始magento安装<span style="display:none"> GLgf%A`5/_ </span> <br /><span id="att_145785" class="f12"><span id="td_att145785" onmouseover="read.open('menu_att145785','td_att145785');" style="display:inline-block;"><img src="http://bbs.aliyun.com/attachment/Fid_207/207_1477160476054779_f039e56e5d76ca7.png?37" border="0" style="max-width:995px;" onload="if(this.offsetWidth>'995')this.width='995';"></span><div id="menu_att145785" class="pw_menu" style="display:none;"><div style="border:1px solid #ffffff;background:#f3f9fb;padding:5px 10px;"><p><span class="mr10">图片:ubuntu18-magen2-1.png</span></p></div></div></span><span style="display:none"> (+c1.h </span> <br /> <span style="display:none"> W1 k]P. </span> <br /> <span style="display:none"> P q$0ih </span> <br />13.顺利安装,首页和后台测试正常<span style="display:none"> 7:,f|> </span> <br /><span id="att_145786" class="f12"><span id="td_att145786" onmouseover="read.open('menu_att145786','td_att145786');" style="display:inline-block;"><img src="http://bbs.aliyun.com/attachment/Fid_207/207_1477160476054779_336335c4fd5f9ee.png?14" border="0" style="max-width:995px;" onload="if(this.offsetWidth>'995')this.width='995';"></span><div id="menu_att145786" class="pw_menu" style="display:none;"><div style="border:1px solid #ffffff;background:#f3f9fb;padding:5px 10px;"><p><span class="mr10">图片:ubuntu18-magen2-2.png</span></p></div></div></span><span style="display:none"> =:aJZ[UU<2 </span> <br /> <span style="display:none"> <+k"3r{y" </span> <br /> <span style="display:none"> om`T/@_, </span> <br />参考:<span style="display:none"> #l ZK_N|1x </span> <br /><ul style="margin:0 0 0 25px"><li><span onclick="sendmsg('pw_ajax.php','action=relatetag&tagname=https',this.id)" style="cursor:pointer;border-bottom: 1px solid #FA891B;" id="rlt_5">https</span>://magento.stackexchange.com/questions/233500/the-each-function-is-deprecated-magento-2-php-7-2</li><li>https://devdocs.magento.com/guides/v2.0/install-gde/install-quick-ref.html</li><li>https://websiteforstudents.com/apache2-with-php-7-1-support-on-ubuntu-18-04-lts-beta-server/</li></ul><span style="display:none"> _Ao$)Gu) </span> <br /><div id="alert_tpc" style="color:gray;margin-top:30px">[ 此帖被dongshan8在2018-10-30 17:36重新编辑 ]</div>
</div>
</div>
<!--content_read-->
</td>
</tr>
<tr>
|
|