[opensuse] How do I give myself (or any web programmer) read/write/execute access to /srv/www/fcgi-bin and related directories?
When I do my web programming on Windows, I can just create my CGI scripts in the server's cgi-bin directory itself. However, although the apache2 web server is configured for mod_perl, cgi and fastcgi (mod_fcgi), I can not create files in the directories these modules are configured to use. I assume that my usual user does not have the correct permissions to develop my code in mthese directories. So, I guess there are two related questions. 1) How do I give myself the permissions I need to create my mod_perl, CGI, and fastcgi scripts in the directories that the server is configured to use? 2) What is regarded as SOP for web developers working on Linux? Thanks Ted -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Ted Byers said the following on 01/22/2013 09:37 PM:
2) What is regarded as SOP for web developers working on Linux?
LOL! Are you talking about a purely development environment that is separate from the testing environ that is separate from the production environment, - which means that the developers cannot put untested code they are still working on into 'production' ? Or is this 'everything is on the same box'. And could you tell us more about how you have Apache configured and if this is some package running under mod_perl such as FosWiki? -- My grandma was always "biding her time" until she could get to Heaven. In the meantime, her life was fairly miserable and she treated my mother abusively. I learned a valuable lesson, however: Create as much Heaven on Earth as possible with everyone near and dear. -- Chelle Thompson, Inspiration Line -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/22/2013 09:37 PM, Ted Byers wrote:
When I do my web programming on Windows, I can just create my CGI scripts in the server's cgi-bin directory itself. However, although the apache2 web server is configured for mod_perl, cgi and fastcgi (mod_fcgi), I can not create files in the directories these modules are configured to use. I assume that my usual user does not have the correct permissions to develop my code in mthese directories. So, I guess there are two related questions.
1) How do I give myself the permissions I need to create my mod_perl, CGI, and fastcgi scripts in the directories that the server is configured to use?
2) What is regarded as SOP for web developers working on Linux?
Thanks
Ted
Hi Ted. Have you thought about default acls on the directories you need to use? It's not that hard to set up. create a new group and add all the programmers id's to the new group then put a default acl on the required directories that need it. e.g. groupadd -g -r 450 <newgroupname> or whatever free lower than 500 gid is avail without the angle brackets add each of the programmer to the newgroupname usermmod -aG <newgroupname> <username> then add the default acl for each directory setfacl -m d:g:<newgroupname>:rwx <directory> If anyone else has a better solution, then I am all ears. Phil -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Ted Byers wrote:
When I do my web programming on Windows, I can just create my CGI scripts in the server's cgi-bin directory itself. However, although the apache2 web server is configured for mod_perl, cgi and fastcgi (mod_fcgi), I can not create files in the directories these modules are configured to use. I assume that my usual user does not have the correct permissions to develop my code in mthese directories. So, I guess there are two related questions.
1) How do I give myself the permissions I need to create my mod_perl, CGI, and fastcgi scripts in the directories that the server is configured to use?
Assuming your webserver is running on your development machine, personally I would just use e.g. "rsync <srcdir> root@localhost:<dstdir>"
2) What is regarded as SOP for web developers working on Linux?
It depends on the size of the team, I suspect. The bigger the team, the more control required. If you have external entities doing e.g. translations and/or graphical work, a version control system is probably SOP. If team = just yourself, you're free to do whatever you want. -- Per Jessen, Zürich (-3.1°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Anton Aylward
-
Per Jessen
-
Phil Savoie
-
Ted Byers