[英]I am unable to run the project in local environment after running the service httpd restart
After running the httpd by using the command service httpd restart
, but I am unable to run the project locally.使用命令
service httpd restart
运行 httpd 后,但我无法在本地运行该项目。 While running the project, it displayed the PHP code.在运行项目时,它显示了 PHP 代码。 Can you please help me to solve the issue?
你能帮我解决这个问题吗? This is the PHP code:
这是PHP代码:
<?php// allow testing from the upgrade page before the site is upgraded.if (isset($_GET['__testing_rewrite'])) {
if (isset($_GET['__elgg_uri']) && false !== strpos($_GET['__elgg_uri'], '__testing_rewrite')) {
echo "success";
}
exit;}require_once(dirname(__FILE__) . "/engine/start.php");$router = _elgg_services()->router;$request = _elgg_services()->request;if (!$router->route($request)) {
forward('', '404');}
Check the HTTP config and error log.检查 HTTP 配置和错误日志。 The PHP module is not loaded any longer, or the .php extension (or whatever extension you've used) isn't associated with the PHP module any longer.
PHP 模块不再加载,或者 .php 扩展名(或您使用的任何扩展名)不再与 PHP 模块关联。
Until you give us more details, that's all we can answer with.在您向我们提供更多详细信息之前,我们只能回答这些。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.