891 reputation
31229
bio website xeoncross.com
location
age
visits member for 4 years, 9 months
seen Apr 21 at 18:10
Another PHP programmer responsible for things like the MicroMVC PHP framework.

You may notice that some of my questions run very deep into the heart of certain issues because I strive for the highest optimization that is possible in my apps.

Jun
22
comment Setting up Git over SSH on Windows using a non-standard port
Not having pagent running was half my problem - thanks!
Jun
21
comment Setting up Git over SSH on Windows using a non-standard port
Thats just it, my private key doesn't have a passphrase yet it's still asking for one.
Jun
13
comment Stopping a DOS attack
This is a great question but apparently there is no real answer. Wow, I never knew that the DoS brick wall was so thick.
Jun
3
comment What is the lightest, basic Email Server for Linux?
I found an article using Exim library.linode.com/email/exim/send-only-mta-ubuntu-10.04-lucid
May
24
comment Can't bind spawn-fcgi to address
netstat returns nothing and I think if the port was used spawn-fcgi would say something like "port already in use". I tried strace and ended up with a file thousands and thousands of lines long. O_o
May
23
comment Where should the web server root directory go in linux?
hmmm.. good point. I wonder how much help that would actually be in an attack. Kind of like switching the SSH port from 22. Should I create a root level nonstandard path like /www-data or just add to an existing path like /srv/www-data/?
Mar
27
comment Putty hangs for a while
Actually, I would say superuser would be a better place since it's about using an application.
Mar
27
comment How to setup linux permissions for the WWW folder?
Very good point. For apache you need to sudo vim /etc/apache2/envvars and add umask 002 to the bottom of the file. I'm still trying to figure out how to do it with nginx.
Mar
27
comment How to setup linux permissions for the WWW folder?
Yes, root would remain the owner. However, since the group owner is now "developer" (and has wrx permission) then all the devs (and apache/nginx) could also read. No need for sudo.
Mar
26
comment How to setup linux permissions for the WWW folder?
Good. Maybe if I can confirm this with a couple more people I'll be using this approach. It seems to be the best answer I have been able to squeeze out of people.
Mar
26
comment How to setup linux permissions for the WWW folder?
I just said, git doesn't have a user - it runs as the current user using it.
Mar
26
comment How to setup linux permissions for the WWW folder?
+1 for the helpful information about ACL's. However, I don't want extra junk bogging the system down just to manage a simple server with a couple of developers. I'm also not comfortable with recompiling the Kernel in order to use ACL's.
Mar
25
comment Uses for a small Virtual Private Server?
I vote for an AssultCube game server.
Mar
25
comment Proper umask on linux webservers?
Using git version control is actually how our team members work on the web root. Since one person can't always be there to manage the repository. However, I'm wondering what the "deployment script" you are talking about is.
Mar
25
comment Why would sshd allow root logins by default?
Really? What is bad about it? I just started doing it because I saw respected admins doing it...
Mar
24
comment How to setup linux permissions for the WWW folder?
Ok, well I know I use PHP to create lots of text, tar, log, and image files (plus folders) so I was just assuming that everything should be writable. However, perhaps your right and PHP should be able to only CHANGE FILES IT CREATES which would be harmless since 99% of all PHP apps never makes script files. The other choice seems to be to only allow certain directories PHP write access (/uploads/) which doesn't make since because then PHP could still be used to create something bad there. Any ideas?
Mar
24
comment www-data ownership makes the WordPress installation consume more memory
If www-data owns the folders/files then that means PHP can create new files which means that wordpress can waste time and memory working with the filesystem.
Mar
24
comment How to setup linux permissions for the WWW folder?
apparently git runs as the user running it - just like any other tool.
Mar
22
comment How to setup linux permissions for the WWW folder?
How does git/svn or PHP create new folders then?
Mar
22
comment How to setup linux permissions for the WWW folder?
Thanks for the answer, I have updated the question with more information.