使用GODADDY安装的MAGENTO常常出现 “No Input File Specified” 错误提示 请尝试以下解决办法
1.修改根目录的php.ini为php5.ini
2.修改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 // 添加
3. 修改magento目录下.htaccess文件:
// .... Options -MultiViews //修改-删除全面的 #号 // ... // 添加 RewriteEngine On RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteRule ^.+.php$ /bogusfile RewriteBase /
如果以上方式没有奏效,可能是操作被缓存了,请等待24小时。如果还没奏效,请联系GoDaddy。