Article 5JG7F No permissions for /svr/www/htdocs and /etc/apache2/mod_mime-defaults.conf

No permissions for /svr/www/htdocs and /etc/apache2/mod_mime-defaults.conf

by
pavllvap
from LinuxQuestions.org on (#5JG7F)
Beginner: Today completed fresh install of Gecko Static KDE Plasma current.
All updates via "language installer" shortcut.
Yast to get another browser, KeePass, Bluefish.
Followed OpenSuse Wiki SDB:LAMP tutorial ... https://en.opensuse.org/SDB:LAMP_setup
Apache2, MariDB and PHP all installed via "zypper" as root.
All the above seemed to go exactly as described without issue.

But from SDB:LAMP could not do the following ...
Quote:
To check if you apache server works, use you favorite text editor "as root" and create an index.html file in the /srv/www/htdocs/ folder with the following content:
<html><body><h1>Welcome to my web site!</h1></body></html>
... and ...
Quote:
In addition, ensure that in `/etc/apache2/mod_mime-defaults.conf` there is a line
AddType application/x-httpd-php .php
I was unable to save or edit files in these locations.
Looked for a way to run Kate as root but it appears this is no longer supported.

Tried with Bluefish and still get permission denied.

The Gecko install was default (ie my password is also admin) and no messing with any settings related to the system and only used terminal for the listed operations.

I am aware that a virtual environment is advised for further progress but I am trying to follow the "official" tutorial ... but it offers no help to get the "as root" required.

I am not enabling public access.
I intend to run the "mysql_secure_installation" as soon as I can complete the previous sections.latest?d=yIl2AUoC8zA latest?i=caWvALK3SFk:oFm4FEAvS0g:F7zBnMy latest?i=caWvALK3SFk:oFm4FEAvS0g:V_sGLiP latest?d=qj6IDK7rITs latest?i=caWvALK3SFk:oFm4FEAvS0g:gIN9vFwcaWvALK3SFk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments