I am trying to set up XAMPP on a localhost for testing. The installation went through without a problem and I am seeing the dashboard.
I am now trying to symlink a local folder as a subdirectory of htdocs, and I keep getting this:
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.41 (Unix) OpenSSL/1.1.1c PHP/7.3.9 mod_perl/2.0.8-dev Perl/v5.16.3
I tried diverse things from STFW and nothing worked. This is the current state of my files:
/opt/lampp/etc/httpd.conf:
- Code: Select all
DocumentRoot "/opt/lampp/htdocs"
<Directory "/opt/lampp/htdocs">
Options Indexes FollowSymLinks ExecCGI Includes
Order allow,deny
Allow from all
AllowOverride All
Require all granted
</Directory>
# Failed attempt that I commented out
#<Directory "/opt/lampp/htdocs/symlink_to_my_directory">
# AllowOverride AuthConfig Limit
# Order allow,deny
# Allow from all
# Require all granted
#</Directory>
/opt/lampp/apache2/httpd.conf:
- Code: Select all
Alias /bitnami/ "/opt/lampp/apache2/htdocs/"
Alias /bitnami "/opt/lampp/apache2/htdocs"
<Directory "/opt/lampp/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
Permissions for my directory are: drwxrwxr-x
I added symlinks to my directory to both /opt/lampp/htdocs and /opt/lampp/apache2/htdocs and their permissions are lrwxrwxrwx
My directory contains an index.php file with permissions -rw-rw-r--
Thank you for your time.