LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-17-2023, 08:02 PM   #1
sissipher1
LQ Newbie
 
Registered: Apr 2023
Posts: 5

Rep: Reputation: 0
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
 
Old 04-19-2023, 11:58 AM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 769

Rep: Reputation: 242Reputation: 242Reputation: 242
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.
 
Old 04-19-2023, 01:50 PM   #3
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,966
Blog Entries: 32

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
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.

Last edited by beachboy2; 04-19-2023 at 01:55 PM.
 
Old 04-19-2023, 07:03 PM   #4
sissipher1
LQ Newbie
 
Registered: Apr 2023
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by beachboy2 View Post
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!
 
Old 04-19-2023, 07:07 PM   #5
sissipher1
LQ Newbie
 
Registered: Apr 2023
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jayjwa View Post
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.
 
Old 04-20-2023, 02:07 AM   #6
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,966
Blog Entries: 32

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
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.

Last edited by beachboy2; 04-20-2023 at 03:13 AM.
 
Old 04-22-2023, 04:13 AM   #7
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,966
Blog Entries: 32

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Install WordPress with LAMP and free Let's Encrypt SSL on Rocky Linux LXer Syndicated Linux News 0 08-13-2021 10:35 PM
Apache2 Configuration or Wordpress Configuration: Wordpress index.php not loading khun Linux - Newbie 5 05-18-2012 08:26 AM
apache : localhost/ works localhost/index.html does not PhilA Linux - Server 4 05-27-2007 07:32 PM
Installing icon theme? i have a index.theme and index.desktop, no directions! mr_coffee Linux - Newbie 2 01-25-2006 01:45 PM
apache http://localhost/mysite ---> http://localhost/mysite/index.php how? ilnli Linux - General 8 06-04-2005 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration