Linux Shell Host – What are my options?

phpwebhosting.com is a great choice for a Linux shell host. After you sign-up, put in a request for ssh and it will be enabled quickly (all new accounts need to be verified). All common unix shell tools are pre-installed and, best of all, the admins will install more for you on request. You also have compiler access so are free to do any custom installs into your account space.

Your account is a normal unix shell – no restricted shells here. subversion and git are both available for revision control. Background processes are allowed as long as they do not cause a problem for other users. Crontab is also available.

Best Linux Host

What makes phpwebhosting the best linux host?

We try very hard to keep our accounts as close to a normal unix shell account as possible. The control panel allows beginners easy setup, but any client can also use the shell to enjoy all the power and enjoyment that linux provides.

We offer full compiler access and fast 8 CPU servers. We do not use CPanel or other pre-made hosting control panels. Sign up now and your account will be created instantly. Sign up for hosting here.

My WordPress says “Search Engines Blocked”. How do I fix this WP problem?

Login to your wordpress dashbord, select the Settings section near the bottom, then privacy. In the page that opens select the option:

I would like my site to be visible to everyone, including search engines (like Google, Bing, Technorati) and archivers

then save changes.

How to fix “Missing Dependency: php-api” when installing mcrypt module

Question:

I get the error “Missing Dependency: php-api” when trying to use yum to install php’s mcrypt module. How do I fix this?

Answer:

You likely installed/upgraded php using non-centos sources (usually the remi rpms). Try this:


yum -y --enablerepo=remi install php-mcrypt

(notice the added –enablerepo=remi)

What is happening in this case is that your php rpm is from remi but when you install php-mcrypt it is trying to use the default centos repositories. You need to tell it to also get php-mcrypt from the remi repository.

Upgrade php on centos (VPS)

Question: How do I upgrade php to the latest version on my VPS running centos?

Answer:

From the shell, run:

wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
wget ftp://ftp.muug.mb.ca/mirror/fedora/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh epel-release-5-4.noarch.rpm remi-release-5.rpm
yum -y --enablerepo=remi update php mysql
/sbin/service httpd restart

You also may want to edit /etc/php.ini and change :

short_open_tag = Off

to

short_open_tag = On

without this change php code will only work when using the full:

 

<?php

 

open tag.

 

Using TLS with POP3 (SSL)

When using POP3 on our servers, it is advised you use the encrypted connection option. There are several standard methods for encrypting POP3 so your mail program will have several options. Use the option “SSL/TLS” – the wording will vary with each mail program.

In general you should use:

SSL/TLS (not STARTTLS)
port 995

You will likely receive a warning about the SSL certificate the server is using. Usually the message will say that the certificate does not match the name of your mail server. This is because the SSL certificate is assigned to the actual name of your server (servername.phpwebhosting.com) and not your particular domain name (your-domain.com). The connection is still 100% secure and encrypted. Your mail program is only altering you to the fact that the name of the certificate is not the same as your domain name.

Tell your mail program to accept the certificate and the warning should not appear again. The only way to totally avoid these errors is to upgrade to a dedicated server and purchase your own SSL certificate. Contact support if you are interested in this upgrade.

Note: If the SSL errors persist you can also avoid SSL errors by using:

your-server.phpwebhosting.com

instead of

mail.your-domain.com

for the incoming (POP3) and outgoing (SMTP) servers. However this is not recommended. It will work but could cause problems in the future if your internal phpwebhosting.com mail server changes in the future. Using mail.your-domain.com ensures that any internal changes is transparent and never requires you update your mail settings. Your should only use your-server.phpwebhosting.com as a last resort if you are using a mail program which refuses to permit that name-mismatched SSL certificate.

Ruby, capistrano and a VPS

Q: What are my options for Rails?

A: Rails is pre-installed on your server (a few legacy servers may be missing it – if so, contact support). You can create a new app by typing :

rails

at the command line.

An example is :

rails myapp
cd www
ln -s ../myapp/public/ myapp
cd ../myapp/
script/generate controller test
emacs app/controllers/test_controller.rb

add:

def hello
render_text “Hello World!”
end

next go to:

http://yoursite.com/myapp/test/hello

capistrano is also pre-installed.

However if you are doing a lot of rails development, you may want to consider upgrading to a Virtual Private Server (VPS). A VPS will give you full root access so you can install things like mongrel and other app servers. Enter a support request to have your account upgraded to a VPS. Note: a fee will be involved. Be sure to ask support if you are not aware of VPS pricing.

Increase php timeouts with .htaccess

If you are running mod_php you may experience problems with big uploads and imports (or other long running processes).

You can adjust php’s default timeouts using a .htaccess file.

Create a file called .htaccess and put the code:

# increase php time-out limits
php_value max_execution_time 1000
php_value max_input_time 1000

inside it. Put the .htaccess file into the top-most directory of your site. If you already have a .htaccess
file, add the code above to the end of it.

This should solve you problem in most cases.

If it does not, try to increase the times (1000). If the problem persists, open a support ticket and include the URL, click path and any needed usernames and passwords. We will duplicate the problem and attempt to adjust your php execution times to make your script work.

Note: if you are running php as a cgi, you’ll need to adjust your /etc/php.ini file. Adding directives to .htaccess files has no effect on installs using php-cgi.