However i I try to “surf” to the servers ip-address (either via http or https) I get the result:
# 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](mailto:webmaster@localhost).
## Error 403
To begin with:
Please, to make the pieces of computer code in your posts better consumable by technical oriented people:
And post as complete as possible. That is starting with the line with the prompt and the command, then all output, and ending with the new prompt line.
When you really feel you need to change anything in such a copy, then in a comment, else we take all characters literally.
Then, you have the server running, but no prove whatsoever that you have any contents file(s) stored in the correct place.
Nor that that “correct place” is configured correct in your Apache configuration.
The package “system-user-wwwrun” has to be installed –
Both “user(wwwrun)” and “group(www)” are required by the “apache2” package.
> LANG=C zypper info --provides system-user-wwwrun
Loading repository data...
Reading installed packages...
Information for package system-user-wwwrun:
-------------------------------------------
Repository : Haupt-Repository
Name : system-user-wwwrun
Version : 20170617-150400.24.2.1
Arch : noarch
Vendor : SUSE LLC <https://www.suse.com/>
Installed Size : 96 B
Installed : Yes
Status : up-to-date
Source package : system-users-20170617-150400.24.2.1.src
Summary : System user wwwrun and group www
Description :
This package provides the system account 'wwwrun' and group 'www'.
Provides : [4]
user(wwwrun)
group(www)
group(wwwrun)
system-user-wwwrun = 20170617-150400.24.2.1
>
If this package has been installed then, the following login directory permissions are correct for the “wwwrun” user’s login directory –
AFAICS, the “apache2” package requires the user and group provided by the “system-user-wwwrun” package but, if for what ever reason, the “system-user” package was never installed then, Apache will have a couple of runtime issues …
Turn the firewall off and then check web services. If turning the firewall off works, then check the zones.if that dose not work, leave it off and look at Apache.
Given Leap 15.6, the Firewall should be “firewalld” and, provided that, the LAN is private – behind a Router – a default zone setting of “trusted” could be OK.
Sorry, I do not understand something.
I appreciate that people try to throw in several ways that may lead to a solution. But please read what the OP provided. He can reach the Apache server, and the server shows hm a HTTP 403 error page. So there can’t be a problem in connecting through the network. Thus all extensive meditations about firewalls, etc. are useless.
Further the OP did not answer any of the questions asked three days ago, thus (s)he seems not to be interested in a solution anymore. I guess everybody can spend her/his energy better on other threads.
Drop an ‘index.html’ file into the ‘/srv/www/htdocs/’ directory and, the error will disappear.
Tested with a fresh Leap 15.6 installation in a VM and, simply installing the “apache2” package with everything that, that package wants to be installed on the system.
Because of another thread I installed Leap 15.6 into a VM and then installed Apache2 on that freshly installed system.
Then, I revisited the error text which appears if there ain’t nothing in the ‘/srv/www/htdocs/’ directory – it’s horrible!!!
# Access forbidden!
Huh!!!??? – “Access forbidden!” just because a file is missing???
I remember getting those when it is missing file, which imho should be error 404 (file not found), but that is a minor detail. There is an answer from the browser, thus no network problem. And the OP should check where the contents of his web server is and if that is configured correct and if the files are readable by Apache (wwwrun), etc., etc. But as he vanished, I think we can put our efforts in a more rewarding problem topic.