default LAMP name?

Greetings,

I am setting up a LAMP server for the first time and ran into an install problem for my application. Several directories for my app need write permission for the web server. The instructions say:

"In linux, recommend changing owners of these directories to the web server. For example, in many linux OS’s the web server user is apache’, ‘nobody’ or ‘www-data.’ So, if apache were the web server user name, could use the command ‘chown -R apache:apache directory_name’ command.

I’ve tried all three, but with no luck. I haven’t yet changed any server default settings. So, my question: what is the default server name in opensuse 11.2?

TIA

The Apache server account in openSUSE is wwwrun. You can verify this by:

grep User /etc/apache2/uid.conf

When you have your Aoache started using YaST, you will see that it rtuns using user wwwrun

henk@boven:~> ps -ef | grep apache
root      3809     1  0 10:43 ?        00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    3814  3809  0 10:43 ?        00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    3815  3809  0 10:43 ?        00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    3816  3809  0 10:43 ?        00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    3817  3809  0 10:43 ?        00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun    3818  3809  0 10:43 ?        00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
henk     24822 24802  0 22:06 pts/1    00:00:00 grep apache
henk@boven:~>      

When you look at the user in YaST > Users or in /etc/passwd you will see that:

henk@boven:~> grep wwwrun /etc/passwd
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
henk@boven:~>  

the groupid is 8, and in /etc/group you find

www:x:8:

thus www is the group name (numbers may differ, but the names will be the same).

The files do not have to be owned by wwwrun, they can also be owned by another user with group www, but of course they must be group-readable, eventual group writable then.

Many thanks for the answers and explanation! My problem is solved, so it’s on to the next hurdle…