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.

 

ftp – I uploaded changes to my site, but they are not displaying online

If uploaded correctly, changes made to your website will display immediately. There is not a waiting period for the server to display your changes (i.e. – the server does not cache anything). The only thing you may need to do is click the refresh button in your web browser in order for it to reload and display your new pages.

If you are making changes to your primary domain, please make sure you uploaded your changes to the www folder in your account. Anything uploaded outside of the www folder will not display on the web. By default, your primary domain will always point to the www folder for it’s content.

If you are making changes to one of your extra domains, please make sure you uploaded your changes to the correct folder for that domain. If you are unsure which folder a domain points to, please go to the domain section of your control panel and click on the link that says “List Extra Domains”.

If you continue to have problems, please let us know the name of the file that you are trying to modify and where it is located inside of your account. Please give me a specific example of a change you made to the file so we can tell the difference between the new and old version of the file.

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.