New LAMP install and localhost shows Index Of /wordpress
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
New LAMP install and localhost shows Index Of /wordpress
Hello all. I am trying to get into the Wordpress Configuration website for the first time. I have configured Apache2, MariaDB(mysql), and have php installed. Apache2 and MySQL show started and enabled and have been configured. When I go to http://localhost I get this page:
I'm guessing you have Apache's docroot pointing in the wrong place? Check Apache's config files. Also, make sure php itself is working before you try running something with it. It's a good idea to make a small test script (maybe calling phpinfo() ) to see that it is working properly. Delete it once you are sure it's working correctly.
PS I was blocked from adding more detail. The LQ server seems to think it is under attack by me.
Will that work in Debian 11 as that is what I'm using? If I need to redo it, I will follow your guide but I want to see if I can fix the issue first. Thank you!
I'm guessing you have Apache's docroot pointing in the wrong place? Check Apache's config files. Also, make sure php itself is working before you try running something with it. It's a good idea to make a small test script (maybe calling phpinfo() ) to see that it is working properly. Delete it once you are sure it's working correctly.
In /etc/apache2/sites-enabled has the 000-default.conf file pointed to /var/www/html and inside their I have the wordpress folder. I tried to add /var/www/html/wordpress and it did not work, it was a blank page. When I leave it as /var/www/html the index of page shows with the wordpress directory folder listed on the webpage. Any ideas? Thank your for your help on this. I know it's a configuration issue I just don't know where exactly.
It should work with Debian 11, but I would use Ubuntu 22.04 and follow those instructions I linked previously. Ubuntu has a more recent kernel, if that is relevant.
In any event you appear to have imagick and intl (plus others?) missing from your PHP installation instructions.
I would ignore this optional part:
Quote:
Optionally, you can create a configuration for WordPress to help in processing any files relating to WordPress and logging any errors that arise.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.