简体   繁体   中英

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. The httpd.conf is pointed to load from the same. When I have a sample index.html in this directory I am able to see the contents on the website.

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.

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? If so, the web server is not running 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.

If you do not see index.php in that directory structure, then you likely uploaded the project folder inside the /var/www/html folder. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM