Alias /sources "D:/5"
<Directory "D:/5">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
But when I try to browse it, I get:
Code:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Not sure why this is in the PHP section as it has nothing to do with PHP.
Since the error is a forbidden and not a not found, that would indicate to me that you have a security issue. Make sure the apache user has access to the resources for D:\5.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Running the application as administrator isn't necessarily the same as the user that is used for the access for the account. You need to ensure that the directory can be accessed by the user specified in the apache service.
What is the D drive? Is it local or drive mapped?
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Mmm, wait, what version of apache are you using?
I just noticed you're using Order allow,deny. The new directive is the require, but I don't know exactly what version released it. Try this for the directory block:
Code:
Alias /sources "D:/5"
<Directory "D:/5">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php