Does your web host have cPanel? If so, I’m sure they have Softaculous or Fantastic auto installer. I would suggest deleting your subfolder and trying trying to install it this way:
Step 1: Login to cPanel (most of the time http://yourdomain.com/cpanel)
Step 2: Scroll down to Softaculous or Fantastic (use the search feature to find)
Step 3: Select WordPress and follow the instructions.
If you don’t have cPanel and are still trying to trouble shoot, I would suggest looking at your .htaccess file to see if something is causing this to redirect. Additionally, most all web hosts should install this for you free of charge.
Probably good to post how you access your site, as NameHero suggested.
Let people know what tools you have available, specifically how you can work on your site.
If all you have is CPanel, then your debug path will be far different (and less flexible) than if you have command line access.
One suggestion. Before installing into a sub directory, try these simple tests in your root directory:
1) create an hello-world.html file + ensure it’s content serves correctly
2) create a hello-world.php file + ensure it’s content serves correctly
3) if #1 + #2 works, install WordPress into the root directory + see if that works
If #3 works in the root directory, try searching forums for how to resolve challenges installing into a subdirectory.
now i am able to install wordpress but the dashboard doesnt work. again, every link redirects to the root.
i am using Cpanel with very limited access via shell. Also, oddly there is no softaculous or fantastic installation script :/
.htaccess contains the following
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
is that .htaccess in the root directory or in the sub-directory /wordpress-site?
Based on what’s displayed, this file should be in the root and the wordpress install should be located in the directory /wordpress – is this correct?
Also, is there a .htaccess in the /wordpress directory? What is in that?
there is only one .htaccess that is in the root directory. the wordpress site is in the “wordpress” sub-directory, and i am not able to see .htaccess here :/
any ideas? i am racking my brain here but still nothing 🙁
So to confirm
In Settings -> General,
WordPress Address (URL) = http://mydomain/wordpress
Site Address (URL) = http://mydomain/
And there is no .htaccess in /wordpress/
Try going to Settings -> Permalinks and changing to “Default” – does that work?
yes, the URL’s are exactly that! When i change the permalinks through “settings” on the wp dashboard and click on the save button, i am redirected to the root directory ( i see only the index of the server every time i click on any update or save button). The changes are not saved 🙁
Rename .htaccess to .htaccess_backup – Try the site now?
Then try his:
1. Copy the index.php from the /wordpress directory into the root / directory of your site
2. Edit /index.php and change the line that says:
require(‘./wp-blog-header.php’);
to:
require(‘./wordpress/wp-blog-header.php’);
3. Login to /wp-admin and update permalinks and save
If that doesn’t work:
1. Create a .htaccess file in root / directory and put this in it:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !mydomain.com$ [NC]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301]
If that doesn’t work – contact your host or start again
@shannon thats a really good solution but nothing seems to work. 🙁 not even the .htaccess above :((
sorry for the late reply. i had to contact my hosting and they took a long time to verify that everything was fine on their end. this caused me some cosiderable downtime and i could not try out the solution meanwhile.
Tell your hosting provider to install wp.or you can download the config.php file because it contain database user and pass.after that delete all wp file from filebase and upload fresh installation.when it get uploaded than upload the config.php which you previously donloaded.