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