Articles of magento

Magento安装“redirect循环”Mint 14 / debian apache2权限?

第一次在围栏的这边,希望我在正确的地方。 我正在尝试在一周前的Mint 14 Debian上安装一个新的Magento 1.6.0安装。 数据库似乎已经连接(虽然它没有被写入),所有的PHP依赖关系似乎已经到位(我已经设法得到一个现有的安装和运行在同一个堆栈)。 我有一个public_html文件在〜/和apache2 confredirect似乎工作,其他本地主机function按预期工作,正如我注意到,在同一台服务器上有另一个工作实例的Magento。 我已经在〜/ public_html / myinstall文件夹(这应该是755?)的所有文件夹上recursion地设置权限为777,但它只是一个testing插件的安装。 我已经包含https://github.com/neilbradley/Magento-htaccess-Boilerplate/ 我在这一点上的想法是,它与apache写入到magento / var / session文件的权限有关 – 这些是使用-rw(600我相信?)创build的。 我已经尝试将我的本地用户添加到www数据组。 uid=1000(reduked) gid=1000(reduked) groups=1000(reduked),4(adm),24(cdrom),27(sudo),30(dip),33(www-data),46(plugdev),107(lpadmin),125(sambashare) 并重新启动apache2(它引发错误“apache2:无法可靠地确定服务器的完全合格的域名,使用127.0.1.1 ServerName”虽然我的猜测是这是不相关的)这似乎没有任何效果,如果我删除会话文件并刷新它们仍然以600权限写入的页面。 而我仍然得到了 Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects. GET 302 GET 302 GET 302'GET pending(failed) 我有点失去理智,如果有人有什么build议,甚至想让我知道,如果我瞎了树,我会非常感激。

虚拟主机工作,但没有findindex.php

这是我第一次,我有一个虚拟服务器与plesk – 我总是删除plesk和没有它,因为我不喜欢它,但现在我尝试与它不工作,因为我想要它的工作。 在这里安装magento: /var/www/name/public_html/magento/public 我的虚拟主机是这样的: <VirtualHost *:80> ServerName localhost.name.com ServerAlias www.localhost.name.com DocumentRoot /var/www/name/public_html/magento/public LogLevel warn ErrorLog /var/www/name/public_html/magento/log/error.log CustomLog /var/www/name/public_html/magento/log/access.log combined </VirtualHost> 我的Mac上的主机文件是这样的: serverip localhost.name.com 不 127.0.0.1 localhost.name.com 如果我现在在我的浏览器中键入localhost.name.com plesk说这是Web服务器的默认页面,所以我假设它的工作。 但是当我尝试安装magento(localhost.name.com/index.php/install)它说:“请求的URL /index.php/install在这台服务器上找不到”。 但我通过ls / var / www / name / public_html / magento / public来检查它,所有的magento文件都已经安装。

导入大块logging时,MAGMI失败。 Magmi理想的Mysqlconfiguration

configuration:Linux Centos 6,NGINX,Mysql 我们正在尝试使用MAGMI一个通用的工具来基于webbrowser在Mysql中大量导入数据。 我遇到了一个问题。 作为一个尝试导入超过less量2000-2500loggingMAGMI根本不导入剩余的logging和UI似乎冻结。 它是随机发生的,几乎在450左右,但是在import运行600秒后有一些时间。 似乎没有错误出现在前端,甚至networking服务器上的日志也不会显示任何可疑的东西。 我迷路了。 我能做什么 ? MySQL的理想configuration是什么? 我不想使用Magmi CLI,因为我需要非专业人士来处理MAGMI。 而且把CSV分成很多块对我来说也不是一个解决办法。

简单的PHP页面给Magento 404错误

为了testing目的,我创build了一个文件夹,并在我的magento站点中创build了一个test.php文件。 它包含: <? echo "Hello"; ?> 它在一台机器上工作,而不是另一台机器。 我chmod 777到文件,但它没有工作。 如果我创build一个test.html文件,它工作正常。 我想这是configuration问题。 我该如何解决这个问题? 谢谢。 山姆

VPS Magento服务器上PHP的高CPU使用率

我运行magento的服务器是4GB内存和4核心CPU。 但是,我仍然为高CPU使用率而苦苦挣扎。 在任何时间我只有10位访问者。 我不知道如果PHP必须采取这种高CPU使用率。 附上是最高的结果。 top – 09:18:32 up 2 days, 15:44, 1 user, load average: 1.16, 2.02, 1.99 Tasks: 179 total, 2 running, 177 sleeping, 0 stopped, 0 zombie Cpu(s): 46.7%us, 3.9%sy, 0.1%ni, 46.9%id, 1.0%wa, 0.0%hi, 0.0%si, 1.4%st Mem: 3919972k total, 3164968k used, 755004k free, 530820k buffers Swap: 1048568k total, 379352k used, 669216k free, […]

从Magento + Nginx时间到第一个字节的高等待时间

我有高TTFB时间的问题,特别是发送后的等待时间。 网页testing显示TTFB差不多是4秒。 平托指定等待时间是这里的瓶颈 这里是我的Magento + Nginx服务器的设置,查看testing和configuration的截图http://share.pho.to/#7BuP9 操作系统:Ubuntu 14.04服务器 nginx的/ 1.4.6 PHP 5.5.9 opcache 7.0.3 memcached的 PHP-FPM Magento 1.9.0.1 Linode 2GB / 2核心服务器 Nginx服务器configuration server { server_name dev.magibooks.com; return 301 $scheme://www.dev.magibooks.com$request_uri; } server { listen 80; #listen 443 ssl spdy; #ssl on; #ssl_certificate /etc/nginx/ssl/dev/ssl-dev-unified.crt; #ssl_certificate_key /etc/nginx/ssl/dev/ssl-dev.key; server_name www.dev.magibooks.com; root /var/www/www.dev.magibooks.com/web; ## rewrites dev.magibooks.com to www.dev.magibooks.com #if […]

正确的重写语法来删除index.php

我有一个nginx vHost主机: CMS在/ 在/store一个magento /store 事情运行良好,除了一件事情: 从URL中删除index.php。 目前下面的URL正在工作 example.com/store/index.php/my-funny-test-product.html and (as there are a few subshops in magento) example.com/store/index.php/city/my-funny-test-product.html 现在我必须build立一个redirect,以便index.php可以从URL中删除。 example.com/store/my-funny-test-product.html or example.com/store/city/my-funny-test-product.html 我用这个.htaccess来处理我的本地Apache RewriteEngine on RewriteBase /store/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule .* index.php [L] 基于这个我build立了以下重写 location /store { rewrite ^/store /store/index.php; } 现在example.com/store/my-funny-test-product.html作品,但CSS图像和类似的东西坏了! 我试图添加if (!-e $request_filename)来解决,但得到了一个nginx 40x错误。 我怎样才能实现工作重写example.com/store/my-funny-test-product.html和example.com/store/city/my-funny-test-product.html子文件夹/商店没有打破CSS&有没有index.php在URL中? […]

在Amazon EC2 Large上运行Magento时,Apache崩溃

所以我花了两天的时间试图弄清楚这一点。 我们在Amazon EC2 Large上托pipe了一个相当高stream量的Magento站点,使用Apache w / mpm-prefork,Varnish和APCcaching。 问题在于,CPU突然以100%的速度飙升,从不退出,增加负载并使页面无法使用。 每次Apache启动时都会发生这种情况,通常在几分钟后。 首先som服务器统计: 处理器:64位 vCPU:2 内存(GiB):7.5 现在,我们唯一的补救办法是将实例升级到XLarge,在那里它执行“OK”(平均负载在0.6 – 0.9,但仍然可用)。 尽pipe如此,基于其他网站,大型实例应该足以承载相对较好的性能。 我怀疑我们的prefork设置可能导致这一点。 在大型实例中,我们有以下设置: <IfModule mpm_prefork_module> StartServers 10 MinSpareServers 10 MaxSpareServers 20 ServerLimit 50 MaxClients 50 MaxRequestsPerChild 4000 </IfModule> Timeout 120 KeepAlive On MaxKeepAliveRequests 1000 KeepAliveTimeout 5 当升级到XLarge时,我们用一些更高的prefork设置交换: <IfModule mpm_prefork_module> StartServers 20 MinSpareServers 20 MaxSpareServers 40 ServerLimit 150 MaxClients 150 […]

Google云端平台上的Magento虚拟机实例不允许上传任何文件

决定通过启动一键式Magento安装来尝试Google Cloud Launcher 。 一切顺利,它确实起来和运行,但是我遇到了一个明显的错误,使整个事情变得无用 – 我无法上传任何东西。 我已经尝试通过进入静态块的Magento后端方法上传,并点击“插入图像”button,并得到以下错误:该目录是不可写的服务器。 经过几个小时的SFTP访问故障排除,我终于得到它通过FileZilla工作,只遇到类似的错误:错误:[文件path]:打开写:权限被拒绝错误:文件传输失败 我不确定是否类似的问题正在使用Wordpress和其他平台,但只是想我会抬起头来,看看是否有人提出了一个修复。 另一个奇怪的是,如果你添加一个产品,你可以在那里上传图片。

使用nginx的子文件夹下的magento存储视图

有人可以请解释我怎么可以让nginx重新在它的自己的子文件夹下的magento中的商店视图。 我有一个商店..以下代码在我的nginxconfiguration文件。 location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param MAGE_RUN_CODE edu_default; fastcgi_param MAGE_RUN_TYPE store; fastcgi_connect_timeout 60; fastcgi_send_timeout 180; fastcgi_read_timeout 180; fastcgi_buffer_size 256k; fastcgi_buffers 4 256k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; fastcgi_intercept_errors on; fastcgi_param SCRIPT_FILENAME /home/domain here/public_html$fastcgi_script_name; } 我有我的所有magento文件在根文件夹:/ home / domain here / public_html 现在我有一个存储视图,可以通过一个子文件夹/ substore / 但我希望它从根文件夹magento index.php文件运行。 但是所有的链接仍然有URL中的子文件夹。 […]