Why don’t EC2 ubuntu images have swap?

You are right, the Ubuntu EC2 EBS images don’t come with swap space configured (for 11.04 at least). The “regular” instance-type images do have a swap partition, albeit only 896 MB on the one I tested. If some process blows up and you don’t have swap space, your server could come to a crawling halt … Read more

What is the maximum port number?

(2^16)-1, or 0-65,535 (the -1 is because port 0 is reserved and unavailable). (edited because o_O Tync reminded me that we can’t use port 0, and Steve Folly reminded me that you asked for the highest port, not the number of ports) But you’re probably going about this the wrong way. There are people who … Read more

df says disk is full, but it is not

It’s possible that a process has opened a large file which has since been deleted. You’ll have to kill that process to free up the space. You may be able to identify the process by using lsof. On Linux deleted yet open files are known to lsof and marked as (deleted) in lsof’s output. You … Read more

What user should I use for wp-cli on Ubuntu VPS [closed]

I think the error is very clear. The owner of public_html is www-data, you don’t have any permisson to write to that folder. You can use whatever user you want as long as that user have permission to read, write and execute your DOCUMENT_ROOT folder. But you shouldn’t use root user. So, to solve that … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)