Title: Cannot access wp-admin
Last modified: January 31, 2017

---

# Cannot access wp-admin

 *  [attan](https://wordpress.org/support/users/attan/)
 * (@attan)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/cannot-access-wp-admin-41/)
 * Hello everyone,
 * I have a problem while trying to access mysite.com/wp-admin it gives me this 
   error
    Cannot access /var/www/domains/mysite.com/wp-admin/
 * but when I try the full URL mysite.com/wp-admin/index.php then I can login and
   redirects me to the dashboard,
 * I have installed WordPress in a VPS runnin LAMP
 * Here is my Default.conf setting for Apache2
 * <VirtualHost *:80>
    ServerAdmin [Soft@live.com](https://wordpress.org/support/topic/cannot-access-wp-admin-41/Soft@live.com?output_format=md)
   ServerName mysite.com ServerAlias [http://www.mysite.com](http://www.mysite.com)
   DocumentRoot /var/www/domains/mysite.com DirectoryIndex index.php CustomLog /
   var/www/logs/mysite.com.log combined ErrorLog /var/www/error_logs/mysite.com.
   log <Directory /var/www/domains/mysite.com/> Options Indexes FollowSymLinks MultiViews
   AllowOverride All Order allow,deny allow from all </Directory>
 * and my second problem is that when I visit my site, there is an Inde.html file,
   that loads first, the wordpress index.php is not the default index page,even 
   tho I tried to set the DirectoryIndex index.php but still index.html loads
 * can someone help me to fix this ?

Viewing 1 replies (of 1 total)

 *  Thread Starter [attan](https://wordpress.org/support/users/attan/)
 * (@attan)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/cannot-access-wp-admin-41/#post-8725754)
 * Still looking for help

Viewing 1 replies (of 1 total)

The topic ‘Cannot access wp-admin’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [attan](https://wordpress.org/support/users/attan/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/cannot-access-wp-admin-41/#post-8725754)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
