Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Linux CentOS Partitioning Help

kamalkamal Member

I have 1 TB hard drive what would the best partitioning structure be.. Kindly help !

Comments

  • SadySady Member

    Totally depend on what you use it for.

  • For LAMP Hosting

  • SadySady Member
    edited August 2015

    @kamal said:
    For LAMP Hosting

    This would work:

    /boot 250MB
    Swap 16GB
    / Put rest space
  • You need to think this :) /boot 250MB, /swap 2GB , / (50-100GB system&dbs) , /home (all other space if you host here users file)

  • Thank you
    I have got a server from datacentec and I am getting the following results from free vps benchmark

    It has 1 TB Hard Drive
    and I am getting the results below

    CPU model :  Intel(R) Xeon(R) CPU           E5462  @ 2.80GHz
    Number of cores : 4
    CPU frequency :  2400.000 MHz
    Total amount of ram : 16042 MB
    Total amount of swap : 31249 MB
    System uptime :   8:17,
    Download speed from CacheFly: 82.8MB/s
    Download speed from Coloat, Atlanta GA: 14.9MB/s
    Download speed from Softlayer, Dallas, TX: 47.3MB/s
    Download speed from Linode, Tokyo, JP: 8.03MB/s
    Download speed from i3d.net, Rotterdam, NL: 12.2MB/s
    Download speed from Leaseweb, Haarlem, NL: 28.5MB/s
    Download speed from Softlayer, Singapore: 8.31MB/s
    Download speed from Softlayer, Seattle, WA: 1.70MB/s
    Download speed from Softlayer, San Jose, CA: 23.9MB/s
    Download speed from Softlayer, Washington, DC: 61.5MB/s
    I/O speed :  76.8 MB/s
    

    are the above good ?
    Thank you in advance.

  • kamal said: are the above good ?

    Yes. I think you don't have RAID ? If you don't have RAID, I/O is also good.

  • Yes there is no Raid only one TB Sata HDD, another question I have manually configured LAMP setup..

    What permission should I have on the www folder ..

  • FlamesRunnerFlamesRunner Member
    edited August 2015

    @kamal, if you're hosting multiple users, I suggest you use something similar to 'apache2-mpm-itk'. Virtual hosts can then be configured to run user scripts as them. Then, set permissions on your www directory to 771.

  • Oh thank you for your reply, I have more than 7 manually configured Virtual hosts so I can now just adjust the permission to 771 ?

    Also I have SSL for one of the domain
    without using the .htaccess
    I added the following to the virtual host configuration

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
    
    RewriteEngine On
    RewriteCond %{HTTPS} !on
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    

    The problem with the redirection is that it's being redirected to double // what should I do to properly redirect the domain from non www to www along with the https

  • SadySady Member

    @kamal said:
    Oh thank you for your reply, I have more than 7 manually configured Virtual hosts so I can now just adjust the permission to 771 ?

    Also I have SSL for one of the domain
    without using the .htaccess
    I added the following to the virtual host configuration

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
    
    RewriteEngine On
    RewriteCond %{HTTPS} !on
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    

    The problem with the redirection is that it's being redirected to double // what should I do to properly redirect the domain from non www to www along with the https

    I would recommend you to go with centminmod in case you can't understand these things.

  • Thank you very much for your reply, I have Ubuntu and Apache 2.4 manually configured, do you think it would be wise to switch to CentOS and then use the centminmod as you suggested ?

  • @kamal said:
    Thank you very much for your reply, I have Ubuntu and Apache 2.4 manually configured, do you think it would be wise to switch to CentOS and then use the centminmod as you suggested ?

    Yes, for now.

  • I want to recommend you to use VESTA (vestacp.com) , is free and easy to install .. this can help you a lot ..

  • @kamal said:
    Thank you very much for your reply, I have Ubuntu and Apache 2.4 manually configured, do you think it would be wise to switch to CentOS and then use the centminmod as you suggested ?

    If you are happy with configuring everything manually and it works, why not stick with it? It's a great learning experience, even if you plan to change to a control panel in the future.

  • Or you can use Centos web control panel . You can even restore cPanel backups.

  • Thank you all for your great replies, I have chosen centminmod and it seems to work fine untill now

    Sincerely
    Kamal Gurung

Sign In or Register to comment.