Changing PHP values

There are some ways to change the values of your PHP settings. The easiest way is through your site htaccess or adding php.ini in your site directory.

The first thing you need to know is the PHP info. To know the PHP default values just create/upload a file in your site folder containing the phpinfo() code/function then load it in your browser.

1. Create a file in your local then name it as “myphpinfo.php”.

2. Insert/Paste the following code

<?php phpinfo(); ?>

3. Upload the file inside your “public_html” folder

public_html/myphpinfo.php

4. Go to your browser address bar then type

http://yourdomain.com/myphpinfo.php

Note: Once you are done checking the values you need it is recommended to delete this file from your site.

To change the PHP values:

1. Create “.htaccess” file in your local.

Important: If there is already an .htaccess file in your site it is recommended to use it and just edit from your local.

2. Insert the code in your htaccess depending on what you want to change.

Increase the upload size value:

php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_input_time -1

Increase memory limit:

php_value memory_limit 256M

Increase max execution time:

php_value max_execution_time 300

3. After making the changes in your htaccess you can upload/replace the file in your site.

Database connection error

If you ever get the “Error establishing connection to database.” or “Cannot connect to database.” there could be some possible reasons.

1. Check if MySQL is running

Login to your hosting panel using “admin” user.

http://your_server_ip:8083

Check if the database server (MySQL) is running. If not then start/restart.

server > MySQL > start/restart

IF MySQL does not start/restart

Check if your disk is full.

server > show: CPU/ MEM / NET / DISK

Select “DISK”

2. Check if your database details are correct.

Download your database config file from FTP.

eg. WordPress

/web/yourdomain.com/public_html/wp-config.php

You can edit the password from the hosting panel.

user > webuser > login as webuser > db > your_db > edit

Type the password then save.

 

Website is not displaying

In some cases you get the 500 Internal Server error or other errors or simply the website is not displaying.

What to do:

1. Do not panic.

Nothing will be fixed if you started to panic and start doing mistakes. Even big websites get issues.

2. Check the server if accessible.

Try to access the server with ANY of the following.
– login to FTP
– login to hosting panel (https://your_server_ip:8083)
– go to your browser (http://your_server_ip)

If you are able to access the server in any of the above options then it means it is online.

IF you are not able to access the server then reboot.

Login to your account dashboard.

client dashboard > manage > system > power cycle

 

3. Check available disk space

Login to your hosting panel using “admin”.

server > show: CPU / MEM / NET / DISK > disk

If there’s no available disk then you need to delete some files in your server.

If your site is huge then maybe the backup is consuming all disk space.

Try to exclude directories in your backup.

Learn more from “Managing your backups“.

After cleaning the server and removing some files please restart the apache/httpd and mysql. Proceed to step #4.

 

4. Check if HTTPD/Apache and MySQL have crashed.

If you are able to access the server then do the following:

1. Login to your hosting panel using “admin” user.

http://your_server_ip:8083

2. Check If the HTTPD/Apache2 is online. If it is not online then it crashed.

server > httpd/apache2 > start/restart

3. Check if the database server (MySQL) is running. If not then start/restart.

server > MySQL > start/restart

IF restarting the HTTP and MySQL did not fix the issue then try to restart the server.

server > host.yourdomain.com > restart

 

5. Investigate website error logs.

If restarting the server/systems did not do the trick then check your site error logs.

You can download your site error logs from the hosting panel.

web > yourdomain.com > view logs > download ErrorLog

If you see errors then it is probably causing your site to crash.

Hire a developer to check and fix the issues.

 

 

Free Offsite Backups

Our Free Offsite Backups uses FTP protocol. It is used as repository for your backup files. It is on a shared environment. You can configure the backup frequency/interval from your hosting panel.

Features:
– 20gb disk space
– Redundant Storage
– 200gb bandwidth
– 10gb network
– 100mb max file size
– FTP access to download archive/backup files

Recommendations:

  • We recommend getting our Managed Backup Servers specially if your site is getting big.
  • If you are in a tight budget and your backup site is hitting the limits of our Free Offsite Backup you can get the FTP Repo.
  • Optimize your backup – learn more

Important Notes:
– We do not guarantee anything on our backup servers or services. We only provide the storage and setup. We are not responsible for any data loss or corrupted files. You are responsible for your backup files, data integrity and checking if the backup process is working.

Free Email Service

The Free Email Service is to provide clients with simple email services. You can use it to host your email. We suggest to use this service for basic purposes only ( eg. email verification). Web servers should only be used to host your websites. It is recommended to host your email on separate environment. In case you need to reinstall your web server or restore from backup, your emails will still be available.

Features:

  • 5gb storage
  • 10 domains
  • 10 email accounts per domain
  • DKIM Support
  • SPF
  • POP3
  • IMAP
  • SMTP
  • Webmail
  • Attachments
  • Email Forwarding
  • Anti-Spam
  • Anti-Virus
  • Catchall Email

To manage your email simply login to your assigned mail server.

client dashboard > manage > email > manage email accounts

Once you are logged in to the mail server please follow the steps:

STEPS:

1.  Add your domain here
Web > Add domain

2. Add email accounts
Mail > yourdomain.com > Add Account

3. Add the DNS records to your DNS. Found in the client dashboard.

client dashboard > manage > email

If you host your DNS with us the DNS records should already be added in Manage DNS.

After adding the records please be patient to wait for the DNS changes to propagate. Usually it takes within 24 hours or up to 72 hours to fully propagate.

Limitations:

  • Our Free Email Service is provided to clients with active paid services only.
  • We do not allow bulk/mass emailing.
  • We do not allow spam. Your account will be deleted without prior notice.
  • Sending limit is 5 per minute.
  • Email/Attachment size is 20mb

If your site is getting big and very active or you need more resources for your email, you can get our General Purpose VPS for email hosting.

Sending Newsletter:

When sending newsletter or mass/bulk emails, we recommend using SMTP service providers or newsletter services.

Disclaimer:

We are not responsible for any hack or data loss. Please backup your files or emails. We do not guarantee anything on the Free Email Service.

Browser warning on self-signed SSL

It is common to receive the warning from browsers if you are using self-signed certificate. You usually see this warning when you are accessing your web panel or cpanel. Do not worry, your browser is just simply saying they don’t recognize your ssl certificate because it is not issued by a Certificate Authority. Since you are accessing your own server then there’s nothing to worry as you trust your server.

You can bypass or tell your browser you trust this connection and proceed.

Using Chrome:
– Click “Advanced” then “Proceed”

Using Firefox:
– Click “I understand the Risk” then “Add Exception”

Using MS Explorer:
– Click “Continue to this website”

Create new FTP user using hosting panel

If you want to create a new FTP user for your developer then you can do this using in your hosting panel.

Login to hosting panel using your “yourwebuser“:

https://your_server_ip:8083

web > yourdomain.com > edit

Check “Additional FTP

Provide the FTP user credentials and path.

Example path:
/home/yourwebuser/web/yourdomain.com/public_html/
/home/yourwebuser/web/yourdomain.com/public_html/subfolder

How the billing works

Each server is billed on a daily usage on a 30-day billing period. Invoice is generated ten(10) days before the due date. You can add funds in your account from the client dashboard. All payments are added in your account after we verify. Payment verification usually it takes minutes or within 24 hours.

We manually review all first payment made by new clients which may take within 24 hours.

Servers that are powered off will still get billed.

Refunds:

  • All payments made are final. There are no refunds except for the following reasons:
  1.  new purchased service/server order with the first payment is unavailable or out of stock.
  2. Your plan is covered by the money back guarantee. Not all plans have money back guarantee.

 

Resizing/Upgrading Plan:
If you resize a server or changed your plan, you get a rebate on the unused days base on the daily rate. New billing cycle is applied in the new server. There are no rebates for destroyed/cancelled servers.

Rebates are non-refundable.

If your plan is under promo or discounted rate like quarterly, semi-annual or annual. The system will calculate base on daily rate.

You can use your available balance to purchase new servers/services.

Software Licenses:
There are no refunds on software licenses like cpanel or filemanager.

Transferring Site/Server to Another Account:
If you are transferring a site or server to another account your outstanding balance will be carried over to the new account if your balance is negative.

NOTE:

Our system automatically sends billing notifications. However we cannot guarantee email delivery to your inbox. Please check your spam folder. You are responsible for your invoices/billing with or without notice.

 

Initial Server Setup

Once your server completes the build process you should receive an email with your “admin” user details for vestacp web panel. If you did not receive an email, please check your spam folder.

You should be able to see the hosting panel link from your account dashboard once the server is ready.

Follow the steps:

1. Change your admin/root password and email

Immediately login in your web hosting panel and change the admin user email and password right after the build process is completed.

User > Admin > Edit

 

IMPORTANT:
Do not provide your admin/root details to anyone, except to your trusted devs/firends. Untrusted people can load malicious files in your server that could cause hacking activities in the future.

Note:
If you make changes in your hostname through your web panel this is not reflected in your client dashboard.