MAMP 3 is by far the best option for running a local web server with easy access to PHP, MySQL, and a range of dynamic DNS options.
server :: Curvve Media Blog
Cost cutting and maximizing profit is important to every business. When a business starts to pick up and heavily rely on its Internet presence, having a reliable DNS service becomes a critical component. I’ve spent a lot of time researching and testing a number of different DNS providers and eventually went with DNSMadeEasy. Custom DNS is incredibly cheap and carries a ton of benefits. The cost for 10 domains is about $30/year.
More importantly, choosing a dedicated DNS service can save you from unnecessary downtime, make switching hosting providers completely painless, and help prevent against coordinated Denial of Service attacks. If you’re looking for a custom DNS solution, I would defiantly check them out.
Dealing with Downtime
Most businesses can’t suffer long with their websites and email being down. What happens if the hard drive on your server crashes? How quickly can you rebuild your machine and launch a new one? Assuming you have a backup ready to go and can launch a new server instance with your hosting company, you still have to worry about switching the DNS.
Changing DNS with companies like GoDaddy and Network Solutions can be really problematic if you need a change to go live immediately. Putting in a DNS change can take anywhere between 24-48 hours to complete. If you’re dealing with an emergency situation, it’s game over. How well would a client react if you told them they would be down for 1-2 days? That was one of the main reasons we decided to go with DNSMadeEasy.
Working with Custom DNS
DNSMadeEasy gives complete control over their DNS records. We not only have all of our clients pointing to a vanity NameServer (which looks incredibly professional), but our TTL (time to live) changes are completed within 5 minutes. That’s huge. We can make changes on the fly without disrupting our clients. Now, when we update a domain’s DNS records, these changes are virtually immediate and replicated across global DNS network.
I can't really express how much this has helped with solving disaster scenarios or general incidents. DNSMadeEasy is pretty inexpensive in the long run. I would check them out. Don't forget to use this link to get a 30-day free trial with DNSMadeEasy.
Cool DNS Video
I keep telling myself that I am going to try and use more video in my posts, so here is a video from the DNSMadeEasy website.
Guide to setting up Swap Space on an EBS volume of a Centos/Ubuntu Linux Amazon EC2 web server.
A brief Overview on MySQL
While connecting to MySQL server you may get many errors this means that your other available connections are being used by other clients.
With the help of max_connections system variable you can control number of permitted connections. But 100 is its default value. And if you want to increase number of connections, you can set high value for this system variable.
To start this procedure you must have below mentioned decencies:
For root or a sudo user you must have SSH access
• Connecting via SSH to user server
• How do I enable root access?
• How do I disable SSH login for root user?
To increase the number of maximum connections of MySQL, edit the file /etc/my.cnf. And connect to server as root or sudo user via SSH, and type
Then you will see a section like this or may be somewhat different:
[mysqld] safe-show-database innodb_data_file_path=ibdata1:10M:autoextend datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock
Under [mysqld] add following line:
Resulting configure file must resemble this:
[mysqld] safe-show-database innodb_data_file_path=ibdata1:10M:autoextend datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock max_connections=250
To restart mysqld save the changes and type:
Result will appear as-
Output: Stopping mysql: [ OK ] Starting mysql: [ OK ]
If stopping FAILS, there will be some mistake, recheck all settings and make sure you have correctly entered new settings.
If you want to check settings whether it was applied successfully or not, use any of the below mentioned methods:
1. See mysql> prompt by Log into MySQL
mysql -uadmin -p`cat /etc/psa/.psa.shadow`
2. Run Command
show variables like 'max_connections';
Remember to add semi column to the end.To exit Mysql, apply the quit command.
A script to take daily, weekly and monthly backups of your MySQL databases using mysqldump. Features – Backup mutiple databases – Single backup file or to a seperate file for each DB – Compress backup files – Backup remote servers – E-mail logs –
I spent some time trying to figure out how to fix the Suexec Policy Violation error under Plesk in Centos.