LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   New LAMP install and localhost shows Index Of /wordpress (https://www.linuxquestions.org/questions/linux-newbie-8/new-lamp-install-and-localhost-shows-index-of-wordpress-4175724168/)

sissipher1 04-17-2023 08:02 PM

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:

file:///home/thomas/Pictures/Screenshot%20from%202023-04-17%2017-53-52.png

x-special/nautilus-clipboard
copy
file:///home/thomas/Pictures/Screenshot%20from%202023-04-17%2017-53-52.png


I have been following the guide from this link: https://linuxhint.com/wordpress_dev_debian_10. When I go to the http://localhost page I am expecting to bring up the wordpress configuration page.

Thank you in advance for any help

jayjwa 04-19-2023 11:58 AM

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.

beachboy2 04-19-2023 01:50 PM

sissipher1,

This LAMP/Wordpress tutorial is more up to date:
https://linuxhint.com/install-wordpress-ubuntu-server/

Install PHP with the following commands:

Code:

sudo apt update
sudo apt install -y php php-{common,mysql,xml,xmlrpc,curl,gd,imagick,cli,dev,imap,mbstring,opcache,soap,zip,intl}

PS I was blocked from adding more detail. The LQ server seems to think it is under attack by me.

sissipher1 04-19-2023 07:03 PM

Quote:

Originally Posted by beachboy2 (Post 6425740)
sissipher1,

This LAMP/Wordpress tutorial is more up to date:
https://linuxhint.com/install-wordpress-ubuntu-server/

Install PHP with the following commands:

Code:

sudo apt update
sudo apt install -y php php-{common,mysql,xml,xmlrpc,curl,gd,imagick,cli,dev,imap,mbstring,opcache,soap,zip,intl}

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!

sissipher1 04-19-2023 07:07 PM

Quote:

Originally Posted by jayjwa (Post 6425704)
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.

beachboy2 04-20-2023 02:07 AM

sissipher1,

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.

beachboy2 04-22-2023 04:13 AM

sissipher1,

You have probably solved your problem by now.

Just in case you are still having trouble, please have a look at my updated blog post about installing WordPress on a LAMP server:
https://www.linuxquestions.org/quest...ed-2023-38976/


All times are GMT -5. The time now is 12:23 AM.