Title: secure setup problem
Last modified: August 19, 2016

---

# secure setup problem

 *  [dan2604](https://wordpress.org/support/users/dan2604/)
 * (@dan2604)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/secure-setup-problem/)
 * Hi,
    I just installed WP on LAMP, using [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory):
 * /var/www/index.php (WP index.php)
    /var/www/wordpress (all the WP files except
   index.php)
 * After that I wanted to secure my setup defining my Apache virtual host this way:
 * <VirtualHost *:80>
    DocumentRoot /var/www
 * <Directory />
    Order deny,allow Deny for all DirectoryIndex index.php <Files 
   index.php> allow from all </Files> </Directory>
 * <Directory /wordpress>
    Options FollowSymLinks Order allow,deny Allow from all
   </Directory>
 * But it doesn’t work :
 *     ```
       Forbidden
       You don't have permission to access / on this server.
       ```
   
 * If I replace index.php with any index.html, it does work….
    Any idea ?

The topic ‘secure setup problem’ is closed to new replies.

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)
 * [Setup](https://wordpress.org/support/topic-tag/setup/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [dan2604](https://wordpress.org/support/users/dan2604/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/secure-setup-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
