简体   繁体   English

无法从AWS Lite上的服务器/ var / www / html加载index.php codeigniter文件

[英]index.php codeigniter file doesn't load from server /var/www/html on aws lite

I have installed mariadb and php56 on my aws server and put the website codeigniter files in /var/www/html. 我已经在aws服务器上安装了mariadb和php56,并将网站codeigniter文件放在/ var / www / html中。 The httpd.conf is pointed to load from the same. httpd.conf指向从同一目录加载。 When I have a sample index.html in this directory I am able to see the contents on the website. 当我在此目录中有一个示例index.html时,便可以在网站上看到其内容。

However when I try to put my actual codeigniter based website which has the regular index.php, the website just displays the directory structure, which means it hasn't recognizes index.php to load. 但是,当我尝试放置实际的具有常规index.php的基于codeigniter的网站时,该网站仅显示目录结构,这意味着它无法识别要加载的index.php。

What could be the problem? 可能是什么问题呢? Really appreciate your replies! 非常感谢您的回复!

the website just displays the directory structure 该网站仅显示目录结构

Do you see index.php in that directory structure? 您在该目录结构中看到index.php吗? If so, the web server is not running PHP. 如果是这样,则Web服务器未运行PHP。 You might not actually have it installed, it might be installed but you need to restart the web server, or many other potential issues that you'll need to debug and provide more information. 您可能实际上没有安装它,可能已经安装了它,但是您需要重新启动Web服务器,或者需要调试并提供更多信息的许多其他潜在问题。

If you do not see index.php in that directory structure, then you likely uploaded the project folder inside the /var/www/html folder. 如果在该目录结构中看不到index.php,则可能是在/var/www/html文件夹中上载了项目文件夹。 For instance, if the project folder is named my_project , and that folder contains the CodeIgniter index.php, then take the contents of that folder and place it inside /var/www/html 例如,如果项目文件夹名为my_project ,并且该文件夹包含CodeIgniter index.php,则获取该文件夹的内容并将其放在/var/www/html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在默认 var/www/html 文件夹内的实时服务器中,如果没有 index.php,codeigniter 路由将无法工作 - codeigniter routes not working without index.php in live server inside default var/www/html folder 如果服务器上不存在来自链接的文件,则强制.htaccess加载index.php - Force .htaccess to load index.php if file from link doesn't exists on server 致命错误:在/var/www/html/index.php中找不到类“ Aws \\ SDK” - Fatal error: Class 'Aws\Sdk' not found in /var/www/html/index.php PhP本地主机重定向到/var/www/html/index.php - PhP local host redirecting to /var/www/html/index.php Wordpress index.php不在本地服务器上加载 - Wordpress index.php doesn't load on local server 从 url codeigniter 中删除 index.php 文件在 Windows 服务器中不起作用 - Remove index.php file from url codeigniter didn't work in Windows server Codeigniter htaccess删除index.php和www - Codeigniter htaccess to remove index.php and www 在/var/www/index.php中找不到类“ Solarium \\ Client” - Class 'Solarium\Client' not found in /var/www/index.php AH01276:无法提供目录/ var / www / html /:找不到匹配的DirectoryIndex(index.php,index.html) - AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found 从主机服务器上的Codeigniter中的url中删除index.php - remove index.php from the url in Codeigniter on host server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM