简体   繁体   English

运行服务 httpd restart 后,我​​无法在本地环境中运行该项目

[英]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.

相关问题 我可以在xampp(localhost)中运行我的项目,但是即使在配置后尝试在另一台计算机上运行时也无法运行 - I can run my project in xampp (localhost) but I cannot run when am trying run in another computer even after configuring 当我在本地主机上运行 codeigniter 项目时,它显示错误 - When am running a codeigniter project in local host, it shows error 如何为本地LAMP环境重新配置apache httpd.conf文件? - How to reconfigure apache httpd.conf file for local LAMP environment? 我在项目 Laravel 中运行测试时遇到问题 - I am with problem to run test in project Laravel 我如何用php重新加载httpd服务 - how can i reload the httpd service with php 我无法在本地机器上安装 Composer - I am unable to install Composer on my local machine 我无法将文件上传到php中的本地主机文件夹中 - I am unable to upload file to my local host folder in php 如何从现有且复杂的 Magento2 项目在本地开发环境中运行 - How to get running on a local dev environment from an existing and complex Magento2 project 由于此错误,我无法在Apache上运行PHPmyadmin - I am unable to run PHPmyadmin on apache because of this error 在Google Apps引擎上运行项目时遇到错误 - I am facing error when run a project at google apps engine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM