Warning: exec() has been disabled for security reasons

Function exec is disabled. What to do?

I see the “Warning: exec() has been disabled for security reasons” message on my site. What should I do? How can I fix this?
Solution for the “exec disabled” issue

In order to eliminate this error message you need to do ONE of the following things:

Remove the exec string from the disable_functions at php.ini* file
Ask your hosting provider to remove the string above if you don’t have an access to the php.ini* file
Change hosting provider which allows the running of the exec function.

Google app email setup

by Alex Benko, 2by2host

Google app email setup

These only apply to configuring POP3 and SMTP

Google app emails work through secure connections. This is important to understand when setting up your email program to work with Google apps. These steps also assume that you have already signed up with Google apps either free or paid, went through all confirmation steps and now are ready to configure your email program like Outlook, Thunderbird, etc.

The information you will need is the following:

  1. Your name: This is optional but put something in there so that people see who the email came from.
  2. E-mail address:The email address you're trying to your mailbox with.
  3. Incoming mail server(POP3): pop.yourdomain.com (you have to create a CNAME record in your DNS zone first and point it to pop.gmail.com).
  4. Outgoing mail server (SMTP): smtp.yourdomain.com (you have to create a CNAME record in your DNS zone first and point it to smtp.gmail.com).
  5. User Name: Your full email address like yourname@yourdomain.com
  6. Password: Password to your mailbox.
  7. Login using secure password authentication: This should be disabled.
  8. My outgoing server (SMTP) requires authentication: This should be enabled.
  9. Use the same settings as my incoming mail server: This should be selected.
  10. Incoming server (POP3): Port 995.
  11. This server requires a secure connection (SSL): This should be enabled.
  12. Outgoing server (SMTP): Port 587.
  13. Use the following type of encrypted connection: TSL.
  14. Server Timeouts: (Greater than 1 minute. Recommended setting is 5).
  15. Leave a copy of messages on the server Set this to disabled, otherwise you will end up downloading multiple copies of the same messages.
  16. Our recommendation for a fast and secure Google app hosting package are either our managed shared hosting or GoEasy plan The first one is fully-managed meaning we do everything for you and the second is self-managed which means you configure everything yourself. It's your pick to go with an exceptional Google app hosting packages that everybody loves.

Managed Shared Hosting

About the service

You might have a site that needs constant care and maintenance. A good example would be an application like Drupal, phpBB, SMF, WordPress, etc that needs constant updates or you might need a team that will always be there when you need them.

Your current hosting provider might not know how to fix your issues or why your site is overloading their server or what software to recommend to you or why your site looks different in various web browsers.

These are all common problems and not every provider knows what to do about them other than recommending you to move to a dedicated server (which will not address the root of the problem) or just move elsewhere far from their servers.

For a good quality dedicated server you’ll be paying over $200 a month. The first question that will come up is “who will manage that for you?” You will need to manage it on a daily basis. There will be constant break-in attempts, vulnerability exploits, network issues, other annoying issues that take hours to resolve, compatibility issues and of course spammers. On top of that you will need a disaster recovery plan and a solid backup solution.

That’s why we came up with our managed shared hosting plan. We encourage people to switch to this plan and start breathing freely.

MSH (Managed Shared Hosting) package offers you all of the benefits of dedicated hosting but also includes server management (value of $300 a month) and limited extendable application support.

Order MSH package for only $45 a month

Note: You will be redirected to our billing system at billing.2by2host.com Do not worry that's where our billing system resides. Select a new or an existing domain and then the package billing cycle from the drop-down on the next page. Keep following the prompts to complete your order.

What's included

In addition our MSH package includes manual monitoring service. We create a 2by2host admin account on your site and one of our technicians will check your software and the mods and will also make recommendations as far as where potential problems might be. If you do get hacked for some reason we will make your site operational again and let you know what needs to be done to avoid this in the future. We also encourage strong passwords for all accounts on your system.

In some cases there might be additional upgrade costs if the implementation time goes above the 30 minutes a month but we would get your approval first. The 30 minutes can also be swapped out to any of the development, design or search engine optimization services that we offer instead of the monitoring/update service.

With MSH hosting package you qualify for our $50 an hour rate for design, development and SEO optimization. Any other services can be also discussed.

Checking for corrupt, not cleanly closed and upgrade needing tables

If you are seeing this issue it's very likely that the database server stopped working abruptly. This can mean an issue with your current web hosting provider!

You should try our hosting and never have these issues.

With our managed shared hosting we would fix these types of issues completely free!

Wondered why sometimes you might see the following MySQL message?

Checking for corrupt, not cleanly closed and upgrade needing tables

In most cases this is not an error. It's only a system notification telling you that MySQL server is checking the tables during the start-up process. However, if your tables were not cleanly closed, you might need to run these commands from shell:

For not cleanly closed MyISAM tables

Check table(s):

myisamchk /path_to_mysql/db1.MYI

You can put an asterisk (*) to check all tables.

Repair table(s):

myisamchk –recover /path_to_mysql/db1.MYI
or with –safe-recover instead of –recover

SQL statements

In addition, there are some SQL statements for MyISAM and InnoDB tables that can help you with corrupt tables. These are:

CHECK TABLE_NAME

REPAIR TABLE_NAME

Change password in cPanel email

domain.com/webmail
U: user@domain
P: 654123qweytr

From there you should see an icon that says: “Change Password”. You can use it to change password for your mailbox.

To start using your emails just click on Squirrel Mail or Horde.

By the way, you could also configure your Outlook program or any other one to work with this.

Let us know if you need help with that.

What is “retry time not reached for any host after a long failure period”

Do you know that we offer great web hosting for your PHP applications? We know PHP/email/DNS and everything related to hosting very well, so you can always ask for technical help, once you become our hosting or web development customer.

We recommend using Gmail for all outgoing mail from your domain. This way your web site's IP address will stay clean and you will never get black listed. Your customers will always receive your communications. Contact us using the form on the right to find out how to do this.

Recently one of our customers reported an issue sending emails to yahoo.com and noted the “retry time not reached for any host after a long failure period” error in the bounced emails. It's likely that the exim database has become corrupt. To fix it we ran these commands:

/usr/sbin/exim_tidydb -t 1d /var/spool/exim retry > /dev/null
/usr/sbin/exim_tidydb -t 1d /var/spool/exim reject > /dev/null
/usr/sbin/exim_tidydb -t 1d /var/spool/exim wait-remote_smtp > /dev/null

/scripts/courierup — force
/scripts/eximup –force

How to enable error_reporting in htaccess

Need technical assistance with your current hosting provider? We can help you. You don't need to move your site. Contact us using the form on the right.

Do you know that we offer business web hosting for your PHP applications? We know PHP as well as htaccess very well, so you can always ask for technical help, once you become our hosting or web development customer.

Sometimes it's very important to have the ability to enable all available error_reporting settings for your website without editing the source code. To achieve this, some changes to your .htaccess need to take place.

php_value error_reporting 7
php_flag display_errors On

By the way, you can easily disable the error_reporting by placing the hash sign (#) in the beginning of the line in your .htaccess:

#php_value error_reporting 7
#php_flag display_errors On

How to wget multiple files

Looking for a professional advice for your Linux system? Please use the form on the right to ask your questions.

Using wget with many files

Getting multiple files with wget command is very easy. Run the wget -r URL command. The -r option is for recursive download. It will download the entire directory. See the sample below:

wget -r http://www.yahoo.com/images/

This example will download all image file inside the /images/ directory of the yahoo.com website.

Downloading files with wget from a password-protected site

In some cases you might need to copy files from a password-protected site. Here's how to do it from your cPanel for example:

wget -r http://username:password@Domain.com/folder

Removing android apk

by Alex Benko, 2by2host

Removing android apk

These are the easy steps to remove any .apk file from an Android device.

The way a file system on an micro SD card is mounted is normally as read-only. This is done because your manufacturer has contracts to promote the software and vice versa. In addition all files on the card have “root” permissions, so if you don't have a rooted device, it's not easy to remove these. You might see tons of apps that you will not need taking up valuable space on your card. So we are presenting you with a couple of ways to remove the .apk files from your card.

Geeky way to remove .apk files from your Android device:

  1. Root your device (this will void the warranty but you can always go back to being unrooted). The easiest way to root your device is to use SuperOneClick software. You can Google it or use one of our articles that describe it.
  2. Once you have an rooted device you can install a “Terminal Emulator” app (free from Android Market) and run “su” command from the shell. It will ask you if you'd like to run that command with “root” permissions and once you confirm it you will be logged in with “root” permissions.
  3. Next you'll need another free program called “mount /system (rw/ro) (free from Android Market). Install and run it. You will see two buttons “Mount r/o” and “Mount r/w”. The latter will remount the flash card with write permissions.
  4. Now go back to the “Terminal Emulator”. “cd” to /system/app directory and run “rm appname” (you can use partial name like app*, so that you wouldn't have to type in the full name).

This will remove the unwanted .apk file

Whimpy way to remove .apk files from your Android device:

  1. Get micro SD card reader ($10 from Amazon), stick your card into it and remove the necessary files from your PC or Mac

This will remove the unwanted .apk file

Our choice of the best packages to run your Android compatible site is either our managed shared hosting or GoEasy plan Load up your Android site tool to either and you're ready to go. Most of people recommend these as a perfect platform for an Android compatible site.