我在另一台服务器上移动了opencart网站,但我收到以下错误。
Warning: ini_set() has been disabled for security reasons in /home/shoppin6/public_html/system/library/session.php on line 7Warning: ini_set() has been disabled for security reasons in /home/shoppin6/public_html/system/library/session.php on line 8Warning: ini_set() has been disabled for security reasons in /home/shoppin6/public_html/system/library/session.php on line 9Warning: ini_set() has been disabled for security reasons in /home/shoppin6/public_html/system/library/session.php on line 10Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/shoppin6/public_html/index.php:102) in /home/shoppin6/public_html/system/library/session.php on line 21
我用这个
编辑了php.ini文件disable_functions = allow_url_fopen, escapeshellarg, escapeshellcmd, ini_alter, passthru, parse_ini_file, popen, proc_open, proc_close, proc_terminate, proc_get_status, proc_nice, readfile, show_source, system
我也选择了ini_set = on; php.ini文件,但错误相同,错误没有变化,这里是网站链接,shoppingdice.com
请快速给我解决方案
答案 0 :(得分:0)
通常,您需要重新启动Web服务器服务才能使php.ini中的更改生效。但是,如果您无法控制自己的Web服务器进程,则可能不适用于共享主机。如果你可以重新启动服务(并且在更改php.ini之后还没有这样做),那么我建议你这样做。
如果仍有问题,您可能需要查看以下内容的输出(您可以将其设置为test.php之类的页面),然后在浏览器中调用该页面:
<?php
phpinfo();
它应该在&#34; Loaded Configuration File&#34;下显示php配置的位置。并希望这将是你改变的那个。在&#34; Core&#34;您应该能够看到&#34; disable_functions&#34;的值。如果它不是您设置的值,那么您的更改无效。出于安全原因,在您完成调试问题后删除文件test.php。