Archive for the ‘VPS’Category

PHP 5.3.2 released!

The PHP development team today released PHP 5.3.2 which includes many bug fixes, added some security improvements and implemented many more changes. You can go to the PHP site and download it right away from your preferred mirror, but if you are a ServerGrove VPS customer you can open a support ticket and we will upgrade it for you. If you plan to get a VPS with PHP 5.3 make sure to select the 5.3 version when you place your order and we will install the latest version.

As is the case with any upgrade, some applications may not run with PHP 5.3 so make sure your site or application is ready for the upgrade. The benefits of upgrading to PHP 5.3 are plenty, lots of new features and significant speed and memory management improvements which is big by our book.

Some PHP applications already require PHP 5.3, the most known ones are Symfony 2.0 and Lithium. If you need to develop with PHP 5.3, we recommend you to take a look at Zend Server CE 5.0 for your development environment, which we just wrote a blog post about it.

Tags:

05

03 2010

Dedicated IP now on all VPS 100 accounts

We are continually trying to improve our products and beginning this week a dedicated IP will be included with all VPS 100 accounts. If you are an existing VPS 100 customer you may request a dedicated IP at no additional cost by opening a support ticket. Keep in mind that your domain will have to be updated to point to the new IP address. This is really easy if you are already using our DNS servers.

Additional IPs for your VPS may still be purchased at $2 p/mo, as long as you provide a valid justification.

About the VPS 100

The VPS 100 is our entry level VPS offering 10GB Disk space, unlimited domains, 100GB data transfer, 256mb RAM burstable to 512MB. For $20 a month it is one of the best VPS offerings on the market fine tuned for running PHP frameworks & applications. It also includes DNS and Email service hosted in our servers outside your VPS so all the resources are used for your website hosting. For more information visit servergrove.com/vps

Tags:

08

12 2009

VPS hosting PCI-compliance ready

The Payment Card Industry Data Security Standard (PCI-DSS) is gaining momentum. It requires merchants (and providers) to “use strong cryptography and security protocols such as SSL/TLS or IPSEC to safeguard sensitive cardholder data during transmission over open, public networks.” when dealing with credit card numbers and account information.

One aspect of securing the data is the encryption of the communication between the browser (client) and the server. Most of our customers use Apache web server, and by default, this lets clients use weak encryption protocols and ciphers, mainly for backward compatibility with old browsers.

We recommend our customers to include these Apache configuration directives in their ssl.conf file. In fact, all our VPS images include this by default:


# use strong SSL protocols, specially do not enable SSLv2
SSLProtocol -ALL +SSLv3 +TLSv1

# Do not accept weak SSL ciphers from clients.
SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM

If you own a SSL certificate, you can test it along with the server configuration using this excellent service from SSL Labs.

To know more about our VPS offering for ecommerce follow this link.

22

07 2009

How to install an SSL certificate on Apache

In order to install a SSL certificate on a CentOS Virtual Server, make sure your plan includes a dedicated IP address. If it does not, contact us so we can assist you with adding one to your account.

To install the SSL certificate follow these steps:

  1. Create a file /etc/httpd/conf.d/cert.key and place the content of the certificate key in it. It will look like (with more lines):

    —–BEGIN RSA PRIVATE KEY—–
    MIICXgIBAAKBgQDsvYWqOtJBR+j15pCITwyM48Cp3rBArdJOsOjoFrU2CXiDpYAb
    4ZiA3CD+wTQtod+3aeRTAkEAuXfD0NSgcTYsqHS+HHUyDZifrjZBPhBNL4ONAvof
    ReXZzngKgFTGhfUm0Ypu6QVTRHit+Miv+AyY72KCUsN4/A==
    —–END RSA PRIVATE KEY—–

  2. Create a file /etc/httpd/conf.d/cert.crt and place the content of the certificate in it. It will look like (with more lines):

    —–BEGIN CERTIFICATE—–
    MIIDODCCAqGgAwIBAgIDC+KlMA0GCSqGSIb3DQEBBQUAME4xCzAJBgNVBAYTAlVT
    MRAwDgYDVQQKEwdFcXVpZmF4MS0wKwYDVQQLEyRFcXVpZmF4IFNlY3VyZSBDZXJ0
    UeHR9A2VwXvIbcrxYoLLFZraqI56CNwRCNIsUB9Z9k+6Y0J+A2iRo75Ws2cHPAMc
    97keASGvyDZy1w9W
    —–END CERTIFICATE—–

  3. Edit /etc/httpd/conf.d/ssl.conf and change SSLCertificateKeyFile and SSLCertificateFile directives so they point to the files listed in 1 and 2.

    SSLCertificateFile /etc/httpd/conf.d/cert.crt
    SSLCertificateKeyFile /etc/httpd/conf.d/cert.key

  4. Restart apache by running service httpd restart

15

07 2009

New PHP 5.3 VPS image available

If you follow PHP news closely, you probably know that today is an important day. PHP 5.3 has been released, featuring some big new features in development for quite some time. Because we know how important is to take advantage of new features, we configured a new VPS image with PHP 5.3.

If you plan to purchase a VPS hosting plan with PHP 5.3, make sure you select the right version in the order form so our provisioning system selects the right image. If you are a current customer and want to run PHP 5.3, let us know and we will help you upgrade free of charge. Please make sure that your applications are PHP 5.3 ready by reading the upgrade guide.

Additionally, our VPS image includes the following software:

  • CentOS 5.3 & Ubuntu 8.10
  • Apache 2.2
  • MySQL 5.1.35
  • PHP 5.3.0
  • APC 3.1.2
  • memcached & memcache PHP extension
  • symfony 1.2.x (older versions are also available)
  • Zend Framework 1.8.4
  • many more.

30

06 2009

Symfony 1.2.4 and Zend Framework 1.7.4 available at ServerGrove

Just a few minutes ago Symfony 1.2.4 was released, fixing several bug fixes.

Additionally, we upgraded Zend Framework to 1.7.4.

All our shared hosting servers have been upgraded. If you have a VPS or dedicated server and want automated upgrades of our PHP library add this to your /etc/crontab file:

0 4 * * * root    cd /usr/local/php; git pull > /dev/null

That’s it!

04

02 2009

Combining Symfony and Zend Framework

During the creation of a web application, on many occasions it is necessary to do something that requires the use of an external library.

If you happen to be building your web application using symfony, it is possible to use parts of the Zend Framework (and other frameworks and libraries) independently. This enables a whole new world of features with no preset limits.

At ServerGrove we use symfony for many of our projects, and also use Zend Framework since it provides many great components. This is why, we are always up to date on both frameworks and you will get excellent technical support when hosting your framework based sites with us.

So, as an example, you can use Zend_Mail to send emails from symfony. Some other components that are very useful in the symfony world are:

- Zend_Currency
- Zend_Mime
- Zend_Ldap
- Zend_Http
- Zend_OpenId
- Zend_Pdf

And the list goes on.

But going back to the Zend_Mail example, first, we need to tell symfony where to find the Zend Framework library.

All our servers here at ServerGrove come with not only symfony pre-installed but also we have all latests Zend Framework releases. It will be located at /usr/local/php/Zend. This will always be the latest stable version. If you need to use a specific version of the framework (to avoid possible future compatibility issues) you can also link to a specific version, for example /usr/local/php/ZendFramework-1.7.0/library

So, we need to modify the file config/ProjectConfiguration.class.php so we can use the autoloader provided by ZF, it should look like this:


// config/ProjectConfiguration.class.php
class ProjectConfiguration extends sfProjectConfiguration
{
static protected $zendLoaded = false;

static public function registerZend()
{
if (self::$zendLoaded)
{
return;
}

$zflib = '/usr/local/php/Zend';

set_include_path($zflib.PATH_SEPARATOR.get_include_path());
require_once $zflib.'/Loader.php';
Zend_Loader::registerAutoload();
self::$zendLoaded = true;
}

// ...
}

Then when we need to send the email, usually in an action, this is what we do:


ProjectConfigation::registerZend();
$mail = new Zend_Mail();
$mail->setBodyText('Message body');
$mail->setFrom('me@example.com', 'My name');
$mail->addTo($recipientEmail);
$mail->setSubject('Subject');
$mail->send();

That’s it. Could not be simpler! As we said, this opens many possibilites by using external libraries and avoids reinventing the wheel. By using the set of libraries and frameworks we provide on ServerGrove, it has never been easier to develop and run powerful and professional websites.

Reset (or recover) the Mysql root password

It is not possible to recover a lost Mysql password since they are encrypted. But it can always be changed or reset.

To change the root Mysql password, follow these steps (they are primarily listed to use in our VPS servers but they may be used in others as well):

1) Stop mysql by executing as root in the command line: service mysql stop

2) Start mysql without the privileges system, execute: mysqld_safe –skip-grant-tables &

3) Open the mysql console by executing: mysql

4) Run the following queries (replace the root password with your desired password)

UPDATE mysql.user SET Password=PASSWORD(‘yourpassword’) WHERE User=’root’;
FLUSH PRIVILEGES;

5) exit the mysql console and stop mysql: service mysql stop

6) Start mysql by executing: service mysql start

Now the new password is in place.

14

01 2009

APC included in Virtual Servers

We have added APC (Alternative PHP Cache) to all PHP-based ServerGrove Virtual Servers images. This means that when you order or recreate a VPS, you get APC installed and configured by default.

APC is a free and open opcode cache for PHP.
It was conceived of to provide a free, open, and robust framework for
caching and optimizing PHP intermediate code.

It allows your PHP applications to perform faster with the same resources, allowing you to get more of your VPS.

For current VPS customers, please contact us to ask the installation of APC in your VPS.

04

10 2008