Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-27-2017, 10:03 AM   #1
LQ Newbie
Registered: Sep 2017
Posts: 2

Rep: Reputation: Disabled
localhosting a wordpress website, URL /index.php was not found on this server when I click contents.

Hi, I'm new to Linux. I'm currently using Rhel7.
I was transferring a wordpress website to this Linux PC.

When I go to http://localhost/WEBSITE, it will go to the front page (fonts updated, working fine). However, when I click the content pages, or click the menu items, it will show = The requested URL /index.php was not found on this server.

I tried to find out what is the problem, but I don't know what is making this error.

These are the current versions.
Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
PHP 5.6.31 (cli) / mysql  Ver 14.14 Distrib 5.6.37
Any advices or comments would be grateful.
Thank you.

-My solution was I disabled SELinux and changed permissions of the directories to 755. I also changed permissions of httpd directories that I changed earlier (how it was before). I restarted httpd and website, it worked. Previously, I also updated urls of the original tables to change the permalinks.

Last edited by justin92; 09-27-2017 at 08:06 PM.
Old 09-27-2017, 07:54 PM   #2
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 18,761
Blog Entries: 28

Rep: Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965
I see the thread is marked "Solved." What was the solution?

Your information may help someone else.
1 members found this post helpful.


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
[SOLVED] URL /index.php was not found error when localhosting wordpress website. justin92 Linux - Newbie 1 10-25-2017 03:22 AM
Apache requires index.php. The requested URL /index.php was not found on this server chefarov Linux - Server 4 07-30-2014 02:29 AM
Apache2 Configuration or Wordpress Configuration: Wordpress index.php not loading khun Linux - Newbie 5 05-18-2012 08:26 AM
Apache 404 index.php not Found but index.php exists at document root mark84 Linux - Server 20 07-27-2008 01:55 AM
index.php to list the contents of the dir?? bruno buys Linux - Software 1 08-30-2004 02:19 AM > Forums > Linux Forums > Linux - Newbie

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

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