Plesk 11.x / Linux :: How To Partition SSD To HDD Correctly
Dec 6, 2014
I am running a CentOS 6.6 (Final) with Plesk 12.0.18 Update #27 on my dedicated server. I was advised to upgrade my server to one that has a SSD due to better performance. What they failed to tell me was that I would need to perform additional configurations so that Plesk stores the subscription files in the /HDD-var/ directory and NOT the /SDD-var/ directory. Current server
Here are my questions:
1. How difficult would it be (I am a quick learner and can follow exact steps or directions very well) to make Plesk store the files on the HDD rather than the SDD?
2. Is this something I should undertake or is this very difficult to do?
3. If I perform these changes, will they revert to the old way if I perform Plesk updates? Or will the changes I make become permanent?
SSH: df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 4.0G 916M 3.1G 23% /
/dev/mapper/ssd-usr 3.9G 1.9G 1.8G 51% /usr
/dev/mapper/ssd-var 3.9G 3.7G 2.7M 100% /var (Plesk is storing data here)
/dev/mapper/ssd-home 3.9G 792M 2.9G 22% /home (Would also like this data to be on the HDD)
I have domainA and domainB. domainA hosting files, for security ALL browser access should denied.. EXCEPT domainB make in php call with readfile() to a file on domainA. This should allowed.
domainB => readfile(http://domainA/myfile) => allowed ... all other access should denied.
So I set in vhost of domainA this:
<DirectoryMatch "^/var/www/vhosts/domainA/httpdocs/folder/"> Order deny,allow Deny from all Allow from 127 Allow from server-ipv4 Allow from server-ipv6/128 Allow from ::1/128 </DirectoryMatch>Click to expand...
I am using the plesk firewall and trying to set up SSH rule which only allows from my IP but deny from everywhere else. In previous versions this worked fine by adding an ip selecting Allow from selected sources, deny from others and the icon in the rules would be orange with the lines
allow incoming from xxx.xxx.xxx.xx Deny incoming from all others
However this no longer works as the deny from all others is not appearing and is not being generated in the iptables by plesk.
I have a Centos 6 server with Heart Internet, who yesterday had an issue with the issue and once back online have been struggling til now getting the mysql service working correctly again and have now refused to provide any further support and redirected me here.
I was following this article here: [URL] ....
I've gotten to point 4. "~# mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` -A | sed '1iSET FOREIGN_KEY_CHECKS = 0;' > /root/dumpall.sql" however it's saying "got error: 145: table './avenue141_dabs/av_options' is marked as crashed and should be repaired when using LOCK TABLES and any attempts made to get into the DB to repair is giving me "error: 1045: Access denied for user 'root'@'localhost' (using password: NO)
This issue is urgent as we have a few websites on this server which use mysql databases for their website.
I would like to install APCu (Alternative PHP Cache) & ZendOptimizer on plesk v12, I just wanted to know if there is any instructions for installing it correctly in a manner that will not cause issues with plesk updates.
I just took a server at a hosting service where I already have several Plesk servers running. The servers I already have running are equipped with 2 conventional disks in RAID1
This new server is equipped with a 2 x 2 TB and a 128 GB SSD disk. With a setup wizard you can install Plesk which comes with licenses.
This new server has a bit different partition model where /var is mounted on the SSD and there's a /data that's mounted on the 2 TB RAID. This /data will then not be used for Plesk.
I can think of many scenarios to change this, but I don't want to find out in the near future that back-ups aren't working because I'm using a symlink somewhere (just an example). The increased speed of the SSD is of course good for the databases, so maybe it's better not to move everything to that partition.
I'm thinking of creating mount points instead of /var/www , /var/qmail and /var/lib/psa
Copy its content to /data/var/www , /data/var/qmail and /data/var/lib/psa
Then modify /etc/fstab so these will point to the appropriate folder
I think it's more robust and transparent instead of using symlinks.
And what are the folders I chose to move?
Apache didn't want to start due to a permission problem.. I think I solved it by making SELINUX permissive
grep SELINUX= /etc/selinux/config
Code: # SELINUX= can take one of these three values: #SELINUX=enforcing SELINUX=permissive
When I deny all other traffic for the "System policy for incoming traffic" to secure the server by only allowing the explicit ports I've requested to open, my server stops operating correctly.
It appears when I set the "System policy for incoming traffic" to deny, it appears to be disrupting various functions such as web traffic over ports 80/443, FTP, SSH, they either work extremely slow or don't work at all.
I brought this up with my Plesk license provider and they stated that the Plesk firewall doesn't add any tracking for ephemeral ports, therefore if you set the policy to drop for incoming/outgoing, it's not going to allow proper TCP communication since the return socket can't be opened. Also that the firewall is an explicit deny system rather than explicit allow based system.
Am I doing something wrong? All I want to do is to block all ports other than the ones I've set to allow. Is this how it is supposed to work?
I have a disk in raid, but it seems raid is not working correctly. I took it out, and plug into another server without raid. However, fdisk shows error
#fdisk /dev/sdb device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 20023. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help):
Should I correct the partition table now, or should I put it in another raid for checking?
Microsoft Windows Server 2012 Panel version 11.5.30 Update #47
The Webadmin app does not install all the folders it needs to run correctly. I have downloaded and repaired the install as noted in [URL] ..... This did not repair the install. All the folders that are needed in the application directory in the vhosts folder are still missing. I have attached the install log.
yesterday i order one server in netdirekt but the server only have one hdd mount i need mount the other but first i need make one partition of it
Disk /dev/sda: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 30140 242099518+ 83 Linux /dev/sda2 30141 30401 2096482+ 82 Linux swap / Solaris
Disk /dev/sdb: 250.0 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
can anyone help me to creat a partition for /dev/sdb with 250.0GB ? for then i mount like that : mount /dev/sdb /home/user/hdd2
I want to move the data directory to another partition on all nodes. Apache (vhost), IIS (vhost), MySQL (databases) and Postfix (mailbox content). What's the correct way to do this without breaking functionality of PPA?
I am being rejected by Hotmail when sending mail from my VPS. I want to send mails from punbb and OSCommerce, with various website hosted on one VPS/Cpanel/LAMP solution. And with sendmail or SMTP, it'a always the same : passing almost every ISP except Hotmail/Gmail. I also always get this part in my email header regardless of which website i'm sending email from :
Code: Received: from host.locker4adream.com ([220.127.116.11]) by host.locker4adream.com with esmtpa (Exim 4.68) So I think it's the host.locker4adream.com part that makes me rejected. Because it's almost the only line in the email header that is different when I am using Outlook/Thunderbird to send mail. This ip (18.104.22.168]) is mine and I never spammed or anything.
So i asked my host ro add rDNS. And I added this line to my DNS zone on my mail domain: Code:
lockeradream TXT "v=spf1 mx a ptr ip4:22.214.171.124/32 ip4:126.96.36.199/32?all" I am really out of solutions! Can anyone tell me if the SPF record stated above is ok?
I was checking this tutorial and thank the lord I did this all correct before I saw this thanks to all of you here on WHT (you all rock!) but right at the end of the tutorial it talks about setting up PTR dns... what exactly are they for? And are they needed?
Also does anyone know how to check/configure the reverse DNS settings?
I have just ran easyapache to update from 5.2.4 to 5.2.5 and selected suhosin.
I can see no evidence of it by viewing phpinfo scripts such as vbulletin's.
i should be able to see something like this yes? [url]
and there is nothing new in php.ini other than:
Directory in which the loadable extensions (modules) reside. extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613" zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so" zend_extension_ts="/usr/local/IonCube/ioncube_loader_lin_5.2_ts.so" extension="suhosin.so"
Via SSH i get this
# php -v PHP 5.2.5 (cli) (built: Apr 26 2008 06:45:31) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd., and with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies with Suhosin v0.9.23, Copyright (c) 2007, by SektionEins GmbH with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
# /usr/bin/php -v PHP 5.2.5 (cgi) (built: Apr 26 2008 06:49:11) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd., and with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies with Suhosin v0.9.23, Copyright (c) 2007, by SektionEins GmbH with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
I've had this problem for a while. My HTTP will stop functioning, so I attempt to restart it via SSH. I restart it, yet it doesn't fix the problem. So I reboot the server via SSH. I wait 5-10 minutes and the server STILL isnt up. Can't login via SSH or anything.
So every time I have to tell my host to manually reboot the server. I've had apache recompiled multiple times, but I don't think that's the issue.
I had a small question about ODBC. I created a new connection to a MySQL database with the 'ODBC Data Source Administrator' on my Win 2008 / IIS 7 webserver.
In this administration panel the ODBC data source works just fine. When I fill in the required values I receive the list of available databases and pressing the "test" button results in a successful connection.
But when I want to use this connection in other software, a C++ application and a PHP application, they supply me with errors "Couldn't connect to database", etc.
So the ODBC connection is correct (so are the credentials in the software 100% sure of that), but software can't use the connection. Because the software worked perfectly on an older server I think I'm missing out on some sort of setting which enables applications to use the connection (or something like that).
DNS test . . . . . . . . . . . . . : Failed [WARNING] The DNS entries for this DC are not registered correctly on DNS se rver 'DNS.FIRST.IP.HERE'. Please wait for 30 minutes for DNS server replication. [WARNING] The DNS entries for this DC are not registered correctly on DNS se rver 'DNS.SECOND.IP.HERE'. Please wait for 30 minutes for DNS server replication. [FATAL] No DNS servers have the DNS records for this DC registered.
Server is a DC/AD. It has 2 IP's, both are static of course. the DNS Servers are manually added into the network configuration properties, as these are provided by the hoster.
Everything is working fine, except that a lot of excotic letters and symbols on the site are not displayed correctly. Most of the special letters in Swedish, Russian or Polish are replaced by a '?' or a small square. It is a serverside problem, as the same texts are displayed correctly on another, older webserver.
I assume it has something to do with a character set or font that I need to install. But I don't know the exact name of this option, so searching on google doesnt give much relevant results.
Yesterday i was putting a website to manage in localhost but i had to abilitate the usage of mod_rewrite. when i'm in the index and i try to open links i have this message..The requested URL /c3click.php was not found on this server.Here are the steps that i followed:
1) Search for LoadModule ReWrite and decommenting 2) Search for Servername localhost
<Directory /> AllowOverride all Require all granted </Directory>
3) Search for C:/wamp/www
# # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride all
# # Controls who can get stuff from this server. # # Require all granted # onlineoffline tag - don't remove Order Deny,Allow Allow from all Allow from 127.0.0.1 Allow from ::1 Allow from localhost
4) Reboot the server
In the beginning of my .htaccess file there's written
RewriteEngine On RewriteBase / Options -Multiviews
My configuration is Windows 7, Apache 2.4.4 on Wamp Server 64bit.
In the apache_error.log file i discovered this
[Wed Oct 02 10:33:47.582049 2013] [:error] [pid 2412:tid 1496] [client 127.0.0.1:50195] script 'C:/wamp/www/c3click.php' not found or unable to stat, referer: http://localhost/Lavoro/C3click/01-10-2013_Sito/