Unable to upload to tmp directoryI don't know why it didn't show up in the tmp directory when I was testing with the move_uploaded_file() commented out, but I just tried again this time specifying the $_SERVER['DOCUMENT_ROOT'] and leaving the move_uploaded_file() function intact and it worked on both! Thanks for your help.

Virtual host for subdomain overriding default virtual hostAfter running that command I get "/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)" followed by "*:80 is a NameVirtualHost" and then a default server pointing to /sites-enabled/default and two namevhost listings (for default and subdomain that I mentioned in the original post). The <VirtualHost> blocks are configured in sites-enabled folder as two separate files (default and subdomain).

Oct8

comment

Virtual host for subdomain overriding default virtual hostThank you, that did it. One follow up question, I tried adding NameVirtualHost *:80 to httpd.conf and the actual vhost file in /sites-available/ but I keep getting an error that says no vhost configured for NameVirtualHost *:80 when I restart Apache. Where should that line go?

Use shared 404 page for virtual hosts in NginxI tried try_files $uri $uri/ /index.php /var/www/shared/404.html =404; and try_files $uri $uri/ /var/www/shared/404.html =404;. Both of them just served index.php and tried to download the page if if specified a .html extension.

Add www-data to groupCan't he just change the group to www-data and add the dev group to www-data to give access to www-data and avoid the security risk?

Sep9

comment

Use shared 404 page for virtual hosts in NginxNot sure I understand. Is there something wrong with the try_files line? It should only serve index.php if I try to visit a directory. If I try to visit foo.com/doesnotexist.html, it shouldn't return index.php. If I remove the last location block after error_page and move 404.html into one of the site folders, it correctly return the 404 page.