我的解决方法:
1. 修改根目录的php.ini为php5.ini
2. php5.ini中max_input_time改成300,同时在最后添加上 cgi.fix_pathinfo = 1
3. magento目录下.htaccess添加Options -MultiViews (也就是去掉前面的井号)
php5.ini
register_globals = off allow_url_fopen = off expose_php = Off max_input_time = 300 // 修改 variables_order = "EGPCS" extension_dir = ./ upload_tmp_dir = /tmp precision = 12 SMTP = relay-hosting.secureserver.net url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset=" ; Only uncomment zend optimizer lines if your application requires Zend Optimizer support ;[Zend] ;zend_optimizer.optimization_level=15 ;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3 ;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3 ;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so ;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so ; -- Be very careful to not to disable a function which might be needed! ; -- Uncomment the following lines to increase the security of your PHP site. ;disable_functions = "highlight_file,ini_alter,ini_restore,openlog,passthru, ; phpinfo, exec, system, dl, fsockopen, set_time_limit, ; popen, proc_open, proc_nice,shell_exec,show_source,symlink" cgi.fix_pathinfo = 1 // 添加 memory_limit = 256M // 添加 max_execution_time = 18000 // 添加 magic_quotes_gpc = off // 添加 flag session.auto_start = off // 添加 zlib.output_compression = on // 添加 suhosin.session.cryptua = off // 添加 zend.ze1_compatibility_mode = off // 添加 extension=mcrypt.so // 添加
.htaccess
// .... Options -MultiViews //修改-删除全面的 #号 // ... // 添加 RewriteEngine On RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteRule ^.+.php$ /bogusfile RewriteBase /
完全参考地址: http://www.magentocommerce.com/wiki/groups/227/error/no_input_file_specified
A common error, which usually comes up if you’re hosted by GoDaddy, is the no input file specified error.
Try this first: add this to your .htaccess file
RewriteEngine On RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteRule ^.+.php$ /bogusfile
Then try to reload your setup page.
If you do not have Magento setup in the root of your server, make sure to add the following to your .htaccess file.
RewriteBase /yourbasepath/
Once that is verified, there are a couple things you can do to fix this, but we’ll start with the one that usually works.
In your web root directory, there should be a file called php.ini . Rename this to php5.ini .
If there is no php5.ini file. Create the file and upload it to your root directory.
If that doesn’t work, add the following to the end of your newly renamed php5.ini file:
cgi.fix_pathinfo = 1
And if you’re still getting the error, add the following to the top of your .htaccess file:
Options -MultiViews
The first one usually does the trick. If you don’t see this file in there, then create a blank php5.ini file add add the line listed on the second suggestion.
If all of the above has not worked, KEEP your changes, wait exactly 24 hours. Go back to youraddress.tld/downloader and try again. You may just be cached and for some reason it takes a bit longer then I was used to. Keep your chin up!
If nothing above worked, call GoDaddy up and have them either rename this for you, or make sure you’re on PHP 5.
或者试试:
RewriteRule ^index.php/(.*)$ [L]
源自:http://stackoverflow.com/a/19449172/4484798
相关推荐
magento csv多图批量导入 解决方法
Magento No Flash Upload插件,替换原有的Flash上传
magento footer no cache,不缓存页面底部footer部分
magento1.9 邮件发送失败解决方法,附带视频教程和图片,文字和修改好的文件,只测试过1.9版本. 其他版本没遇到这个问题
今天初次安装Magento, 开始装的是英文版,后来又找到中文版,安装后在后台都有同一个错误,就是登陆后台,随便点击一个链接,都有报错
对于首次安装magento过程中出现的问题的小结
magento的SMTP插件magento的SMTP插件magento的SMTP插件
magento 常用的方法 与 总结, 对于起步学习magento 的非常有帮助
这是一个cookie问题,使用firefox等非IE核心浏览器可以解决这个问题,虽然浏览器处理cookie的方式很相似但并不是100%相同, Magento其它的版本也有这个问题。 详细的修正这个问题的方法是定位到: app/code/core/Mage...
magento数据结构分析 magento数据字典
Magento 图片延时加载插件,用来解决网站速度慢或者图片数量多的问题
magento 后台无法登录解决办法 解决方法一: 这是一个cookie问题,使用firefox等非IE核心浏览器可以解决这个问题,虽然浏览器处理cookie的方式很相似但并不是100%相同, Magento其它的版本也有这个问题。 详细的修正...
magik shoes magento 模板, magento 1.7 模板
Magento是一款新的、专业的、开放源代码的电子商务解决方案,它提供前所未有的灵活性和可控制性。有了Magento,在你开展电子商务业务的时候就不会觉得很困难了。Magento 的特色1 容易整合Magento 让整合第三方厂商...
window8 64位环境下安装magento报错PHP extension curl must be loaded,替换php_curl.dll
深入理解Magento 由精东博客下载下来制作成pdf
Magento插件开发手册 Magento Extension Developers Guide
Magento 2 国际电话输入模块 Magento 2 模块基于 jQuery 插件,用于输入和验证国际电话号码 。 实用程序脚本 (build/js/utils.js) 是 Google 的的自定义构建。 集成到 Magento 2 一个用于输入和验证国际电话号码的 ...