Below are some notes on how to use git from day to day.
Basics
Command | Description |
---|---|
$ git config --global user.name "<your name>" When creating a domain in Plesk, PHP safe_mode is enabled by default. To change the default behavor do the following as the admin: I had to add the SKU to the checkout of Ubercart, to do that, I had to do the following: One of the things that Qualified Scanning Vendors look for on a server is that the server does not use weak AND medium strength ciphers. Plesk does come with a tool to enable you to switch off weak ciphers used with courier, Apache, and the control panel itself. # /usr/local/psa/admin/bin/pci_compliance_resolver --enable all This will disable all weak ciphers for courier mail, Apache, and the control panel. Other parameters are: InputStreamReader isr = new InputStreamReader(conn.getInputStream()); BufferedReader br = new BufferedReader(isr); StringBuffer sb = new StringBuffer(); String line; while ((line = br.readLine()) != null) { sb.append(line); } br.close(); result = sb.toString(); System.out.println(result);
When transfering domains from one server to another, sometimes the emails get delievered to the old server after the DNS has been updated. When that happens, you can run the following script to forward the emails to the other server, or to a different email address.
I just did a kernel upgrade on the server and after making sure that the IPs and services were working properly I tried to backup a domain through the web interface and got this error: Plesk Backup Error: Specified file is not accessible I know that the location for Plesk back up files are located in /var/lib/psa/dumps The owner was correct, psaadmin:psaadmin. Then I noticed that the tmp directories permissions were set to 700, so after running: While trying to download and upload files via FTP, I was getting Oct 11 15:19:39 209443-www2 xinetd[12269]: EXIT: smtp status=1 pid=8309 duration=0(sec) Oct 11 15:19:39 209443-www2 xinetd[12269]: FAIL: ftp per_source_limit from=xxx.xxx.xxx.xxx In order to fix this I had to modify the /etc/xinet.d/ftp_psa file. I did so by adding the bold lines to the file: There are a number of things I look for when I receive an email about one of our clients not being able to send email. After reading through the case, the first thing I do is look at the bounce back message. Usually the error code within the message will tell me whats wrong. There are times when you don'e get anything useful back. In that case, I do the following to try and get more information: I've decided to write an application in Java to manage my Rackspace Cloud Servers. To send requests and recieve responses, I opted to use XML. Parsing XML took a little getting used to because I didn't fully understand how Nodes/Elements and Attributes worked. The following is the limits response: <limits xmlns="http://docs.rackspacecloud.com/servers/api/v1.0"> <rate> <limit verb="POST" URI="*" regex=".*" value="10" remaining="2" unit="MINUTE" resetTime="1244425439" /> <limit verb="POST" URI="*/servers" regex="^/servers" value="50" remaining="49" unit="DAY" resetTime="1244511839" /> <limit verb="PUT" URI="*" regex=".*" value="10" remaining="2" unit="MINUTE" resetTime="1244425439" /> <limit verb="GET" URI="*changes-since*" regex="changes-since" value="3" remaining="3" unit="MINUTE" resetTime="1244425439" /> <limit verb="DELETE" URI="*" regex=".*" value="100" remaining="100" unit="MINUTE" resetTime="1244425439" /> </rate> <absolute> <limit name="maxTotalRAMSize" value="51200" /> <limit name="maxIPGroups" value="25" /> <limit name="maxIPGroupMembers" value="25" /> </absolute> </limits> |