Commit bac39dfd authored by Paul Cammish's avatar Paul Cammish
Browse files

Updated basedir, fixed logs for tmp and sessions

parent 79c16909
......@@ -69,7 +69,7 @@
# Also sets a unique tmp directory and sessions directory.
#
php_admin_value open_basedir <%=domain_directory%>/public/
php_admin_value open_basedir <%=domain_directory%>/public/:/usr/share/phpmyadmin:/var/www/webmail
php_admin_value upload_tmp_dir <%=domain_directory%>/tmp/
php_admin_value session.safe_path <%=domain_directory%>/sessions/
......
......@@ -103,7 +103,7 @@
# Also sets a unique tmp directory and sessions directory.
#
php_admin_value open_basedir <%=domain_directory%>/public/
php_admin_value open_basedir <%=domain_directory%>/public/:/usr/share/phpmyadmin:/var/www/webmail
php_admin_value upload_tmp_dir <%=domain_directory%>/php_tmp/
php_admin_value session.safe_path <%=domain_directory%>/php_sessions/
......@@ -248,7 +248,7 @@
# Also sets a unique tmp directory and sessions directory.
#
php_admin_value open_basedir <%=domain_directory%>/public/
php_admin_value open_basedir <%=domain_directory%>/public/:/usr/share/phpmyadmin:/var/www/webmail
php_admin_value upload_tmp_dir <%=domain_directory%>/tmp/
php_admin_value session.safe_path <%=domain_directory%>/sessions/
......
......@@ -115,7 +115,7 @@
#
VirtualDocumentRoot /srv/%0/public/htdocs/
php_admin_value open_basedir /srv/%0/public/
php_admin_value open_basedir /srv/%0/public/:/usr/share/phpmyadmin:/var/www/webmail
<IfModule cgi_module>
VirtualScriptAlias /srv/%0/public/cgi-bin/
......
......@@ -94,7 +94,7 @@
VirtualDocumentRoot /srv/%0/public/htdocs/
php_admin_value open_basedir /srv/%0/public/
php_admin_value open_basedir /srv/%0/public/:/usr/share/phpmyadmin:/var/www/webmail
<IfModule cgi_module>
VirtualScriptAlias /srv/%0/public/cgi-bin/
......
......@@ -346,7 +346,7 @@ domains.each do |domain|
end
# If public/ exists and php_tmp/ doesnt, then create it
if File.directory?("#{domain.directory}/php_tmp/")
if File.directory?("#{domain.directory}/public/")
unless File.directory?("#{domain.directory}/php_tmp")
verbose "\tCreating PHP tmp directory #{domain.directory}/php_tmp"
FileUtils.mkdir_p("#{domain.directory}/php_tmp")
......@@ -355,7 +355,7 @@ domains.each do |domain|
end
# If public/ exists and php_sessions/ doesnt, then create it
if File.directory?("#{domain.directory}/php_sessions/")
if File.directory?("#{domain.directory}/public/")
unless File.directory?("#{domain.directory}/php_sessions/")
verbose "\tCreating PHP sessions directory #{domain.directory}/php_sessions"
FileUtils.mkdir_p("#{domain.directory}/php_sessions")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment