RE: Increase disk space by adding volume only, it is okay?
10-29-2024, 02:27 PM
(This post was last modified: 10-29-2024, 06:32 PM by 7rdoq.)
yeah, so this is so bad, I'm not good at Linux
so the PHP (and sentora) could not process the new sites on /volume2 ? they can only process requests at /var/ ? I could not manually configure vhost file to point root sites of new sites to /volume2 ?
resize is the final solution, because I need more space only, I dont need RAM&CPU
---
basically: for adding volume, I need to edit manually vhost file for each new site like below, it's okay? Then PHP & sentora may still serve this new site on new volume properly? thank you
so the PHP (and sentora) could not process the new sites on /volume2 ? they can only process requests at /var/ ? I could not manually configure vhost file to point root sites of new sites to /volume2 ?
resize is the final solution, because I need more space only, I dont need RAM&CPU
---
basically: for adding volume, I need to edit manually vhost file for each new site like below, it's okay? Then PHP & sentora may still serve this new site on new volume properly? thank you
Code:
<virtualhost *:80>
ServerName site.domain
ServerAlias site.domain
ServerAdmin zadmin@localhost
DocumentRoot "/newvolume/public_html/site_domain"
php_admin_value open_basedir none
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
<Directory "/newvolume/public_html/site_domain">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
</virtualhost>