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.

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

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.

 

 

Downgrading your server

In some cases, when you need to re-plan or your site isn’t getting the traffic you wanted you decide to downgrade the server to lessen the expense. Downgrading is not automatic. It will be a process of migration.

Here are the steps:
1. You will need to create first your new server from your dashboard.

dashboard > create server

2. Once the new server is ready you can request the migration by submitting a support ticket.

3. After the migration has been completed you can then destroy the old server from your dashboard.

dashboard > manage > system > destroy

Understanding Server Uptime and Proactive Response with Cloud Monitoring

We monitor your server 24×7 with proactive response to issues. Our staffs are on stand-by to take necessary actions in case your server becomes unresponsive.

Our Cloud Monitoring has global location including US, Europe, Asia and Australia. Your sites and servers are checked by multiple nodes to minimize false positive result.

If your server becomes unresponsive, our technical team ensures that your server gets restarted/rebooted.

By default our monitoring checks your server every minute with with 2 probe servers verification before it sets the alert. The estimated time before alert is 15 minutes.

Server Keeps Crashing:
If your server continuously crashing within a day we will investigate the issue and notify you. The maximum automatic reboot within a day is five(5). If the issue is out of our scope you will need to fix it first. Until then the proactive response is disabled. If the issue is within the network or server, we can automatically fix it and update you for information about the issue.

Limitations:
There are issues beyond our control.

  1. Issue with bandwidth provider/carrier.
  2. You have internet (ISP) issues.
  3. Hardware failure – we automatically replace hardware or transfer your site/files into another machine.
  4. Site/Script issues