0
I already researched a lot, I changed everything that was line httpd.conf and httpd-xampp.conf but nothing went right.
I am trying to change the default htdocs xampp folder to a folder on my pendriver, but when localhost requirement on the browser, it is returned:
Access Prohibited!
You are not allowed to access the requested directory. You may not exist the index file or the directory may be protected against reading.
If you believe you have encountered a problem on the server, please contact the webmaster.
Error 403 localhost Apache/2.4.29 (Win32) Openssl/1.1.0g PHP/7.2.2
Could someone help me? (xampp is installed on C: PC)
Edit:
Following more or less what @Andremesquita said and some google articles out... I did the following setup on httpd.conf:
DocumentRoot "S:\Git\projeto"
<Directory "S:\Git\projeto">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
#Options Indexes FollowSymLinks Includes ExecCGI
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
#AllowOverride All
#
# Controls who can get stuff from this server.
#
#Require all granted
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Still unsuccessful...
Change the permissions on your USB stick and include the All user group with full access. Do not forget to put the permissions on apache2.conf. Should work.
– Andre Mesquita
Post as this the Virtualhost or Documentroot of the configuration files.
– Guilherme Nascimento
@Andremesquita, where the apache2.conf archive is located?
– JeffersonCarlosBD
@Guilhermenascimento , would be httpd.conf and httpd-xampp.conf ?
– JeffersonCarlosBD
This differs greatly depending on the version or environment, in Linux for example the files are other, in Mac with Mamp are other, in Mac with Apache is only another scheme. The file scheme vc itself can configure
– Guilherme Nascimento
I am using windows
– JeffersonCarlosBD
Regardless if it is windows, the Apache schema and configuration files is customizable, I don’t really use Xampp (which is just a package like Wamp, easyphp and the like), what I understand is apache. However what I found strange about your problem is that Xampp Portable didn’t work for you. I think you must be using some program that is occupying port 80 (like Skype or else has two installations of Xampp and you didn’t even notice).
– Guilherme Nascimento
I recommend you look at the Apache log, there is the complete error.
– Guilherme Nascimento
Guilherme, when using the default folder (htdocs, with apache installed on the PC) works perfectly...
– JeffersonCarlosBD