• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Apache Usergroup?

G

Grossmann-Grupp

Guest
Hi!


I have the Next Problem after killing my Plesk ;-)

Here is the original Command:
Original German:
# Wenn Sie noch Apache Version 1.x nutzen (und nur dann!) führen Sie folgendes Kommando zuerst aus:
usermod -g apache -G users apache
Mit diesem Befehl wird der Webserver Apache der Gruppe users zugeordnet.

# Wenn Sie Apache Version 1.x nutzen, führen Sie bitte dieses Kommando aus:
chgrp -R users ostube

Haben Sie Apache2 (Standard in den meisten modernen Distributionen) führen Sie jenes Kommando aus:
chgrp -R www-data ostube
Hier ändern wir die Gruppenzugehörigkeit des osTube-Ordners und aller seiner Unterordner und Dateien rekursiv zur Gruppe users (im Fall Apache 1.x) oder zur Gruppe www-data (im Fall Apache2).

Translated with Google:
If you have Apache version (use 1.x and only if) you run the following command first:
usermod-g users-G apache apache
With this command, the Apache Web server of the group is assigned to users.

# If you are using Apache version 1.x, please run this command:
chgrp-R users osTube

If you have Apache2 (default in most modern distributions), run that command:
chgrp-R www-data osTube
Here we change the group affiliation of the osTube folder and all its subfolders and files recursively to group users (in the case of Apache 1.x) or to the group www-data (in the case of Apache2).


Now I wont to add a new Domain to Plesk. After open a new Account should open a Plesk Page at the Domain...
But there is this...

Forbidden

You don't have permission to access / on this server.
Apache/2.2.3 (CentOS) Server at www.DOMAIN.de Port 80

I think the Apache must be in another User Group... But in which Group must be the Apache?

Did somebody know how I can fix this???
 
Check permissions for vhosts first. It should be something like

# stat /var/www/vhosts/
File: `/var/www/vhosts/'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 90h/144d Inode: 480388 Links: 10
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
 
Hi, firstly sorry if this is in the wrong thread I simply did not know which one to use.

basically I have a php script that returns the error "can't open file"

I believe that this is due to the script creating a cache folder on my server. When a cache file is created it is under the group / owner "Apache" which I think is restricting access for general users and hence the message "can't open file"
So my question is how do I change the ownership of the automatically generated files or change the apache settings to allow general users access?

Many thanks for anyone willing to help.
 
Back
Top