In this tutorial, we will learn how to run Caligrafy on Cloudways. Caligrafy is a web-based handwriting recognition tool that can be integrated into your applications for converting handwritten input into digital text.
- Sign up for a Cloudways account: Visit the Cloudways website and create an account. You can choose a suitable plan based on your requirements.
- Launch a server: Once you have signed up and logged in, click on the "Launch" button to create a new server. Select your preferred cloud infrastructure provider and configure the server size and location.
- Install Caligrafy: After your server is up and running, access it via SSH using a terminal or any SSH client software. Once connected, navigate to the root directory and execute the following command to install Caligrafy: composer create-project --no-scripts --no-dev caliberweb/caligrafy:dev-master
- Configure the web server: Set up your web server to serve the Caligrafy application. For example, if you are using Nginx, create a new server block and point the document root to the Caligrafy public directory.
- Configure the database: Create a new MySQL or MariaDB database for Caligrafy and configure the database details in the .env file located at the root of the Caligrafy installation.
- Run the migration: In the same SSH session, navigate to the Caligrafy directory and execute the following command to run the database migrations: php artisan migrate
- Set up the domain: If you haven't already, configure a domain name for your Caligrafy application either by pointing an existing domain or creating a new one.
- Test the application: Access your Caligrafy application using the configured domain in a web browser. You should now see the Caligrafy interface.
That's it! You have successfully run Caligrafy on Cloudways. You can now explore the different features of Caligrafy and integrate it into your applications for handwriting recognition.
How to enable CDN for Caligrafy on Cloudways?
To enable CDN for Caligrafy on Cloudways, you can follow these steps:
- Log in to your Cloudways account and go to the server where your Caligrafy application is hosted.
- Click on the "Applications" tab on the top menu.
- Choose your Caligrafy application from the list and click on it.
- In the left sidebar, click on the "CloudwaysCDN" option.
- On the CloudwaysCDN page, click on the "Manage" button.
- In the "Manage CloudwaysCDN" panel, you will see a toggle switch to enable/disable the CDN. Turn it on to enable the CDN for your Caligrafy application.
- Once enabled, you can configure the CDN settings according to your requirements. You can choose the CDN type, configure HTTP/2 support, HTTPS support, cache settings, and more. Make sure you review and adjust these settings based on your application's needs.
- Click on the "Save Changes" button to apply the CDN settings.
- After enabling the CDN, Cloudways will provide you with a temporary CDN URL. You can use this URL to quickly test if the CDN is working correctly for your Caligrafy application.
- Finally, make sure to clear any caching done by your website and test your Caligrafy application using the CDN URL to ensure that the CDN is working as expected.
Note: Enabling the CDN may take some time to propagate across the CDN network. So, it might take a few minutes before you see the full effect of the CDN on your Caligrafy application.
That's it! By following these steps, you should be able to enable CDN for Caligrafy on Cloudways.
What is the difference between Cloudways and other hosting providers?
There are several key differences between Cloudways and other hosting providers:
- Managed Cloud Hosting: Cloudways specializes in managed cloud hosting, which means they offer cloud infrastructure from top providers like Amazon Web Services (AWS), Google Cloud, DigitalOcean, and more. Other hosting providers may offer shared, VPS, or dedicated hosting options.
- Easy Setup and Management: Cloudways offers a user-friendly platform with a simplified setup process and intuitive management features. It is designed to make cloud hosting accessible even for non-technical users. Other hosting providers may have more complex setup procedures and interfaces.
- Scalability: Cloudways allows easy scalability of resources based on your needs. You can easily scale up or down your server resources (CPU, RAM, storage) as your website or application demands change. This flexibility may not be as readily available with other hosting providers.
- Pay-as-You-Go Pricing: Cloudways offers a pay-as-you-go pricing model, allowing you to pay only for the resources you use. You can monitor and manage your server performance to optimize costs. Other providers may offer fixed pricing plans.
- Performance and Reliability: Cloudways utilizes advanced caching technologies, SSD storage, and CDN integration to ensure high performance and reliability for your website or application. They also offer features like automated backups, server monitoring, and staging environments. Other providers may have varying levels of performance and reliability.
- Support: Cloudways provides 24/7 support through live chat and ticketing system. They offer assistance for server-related issues, migration, security, and performance optimization. Other hosting providers may have different support options and response times.
It's important to note that the specific features and differences may vary depending on the hosting provider you compare Cloudways with. However, the overall focus on managed cloud hosting, ease of use, scalability, pay-as-you-go pricing, performance, and support are common highlights for Cloudways.
How to enable automatic backups for Caligrafy on Cloudways?
To enable automatic backups for Caligrafy on Cloudways, follow these steps:
- Navigate to the Cloudways Platform and select your desired server/application.
- Go to the "Backup" tab on the left side menu.
- Click on the "Enable" button next to "Automated Backups."
- Choose the backup frequency based on your preference. You can select "Daily," "Every 12 hours," or "Every 6 hours."
- Set the number of retained backups you want to keep. This determines how many backups are stored before older ones are deleted.
- Enable the backup retention you desire. You can choose to retain backups for "1 day," "3 days," "1 week," "2 weeks," or "1 month."
- Click on the "Save Changes" button to enable automated backups.
Cloudways will now create automatic backups for your Caligrafy application based on the specified frequency and retention settings.
How to connect a domain to Caligrafy on Cloudways?
To connect a domain to Caligrafy on Cloudways, follow these step-by-step instructions:
- Log in to your Cloudways account and access your server dashboard.
- From the top menu, go to the "Applications" tab and select the Caligrafy application you want to connect the domain to.
- In the left sidebar, click on "Domain Management."
- On the Domain Management page, you will see a list of your application's current domains. Click on the "+" icon to add a new domain.
- In the "Domain Name" field, enter your desired domain, such as "example.com." Make sure to include the full domain, including the "www" if needed.
- In the "Application" dropdown, select your Caligrafy application.
- Choose the SSL certificate option that matches your requirements. You can either select "Let's Encrypt SSL" to enable a free SSL certificate or choose an existing certificate if you already have one.
- Click on the "Save Changes" button to add the domain to your Caligrafy application.
- After saving, you will see a record generated in the DNS records table with the necessary details.
- Now, you need to update your domain's DNS settings to point to the Cloudways server. This step varies depending on your domain registrar. You will need to access your registrar's DNS management panel and create the required DNS records. For the "A" (IPv4) record, create a new record with the hostname (or subdomain) and point it to the IP address provided in the Cloudways DNS records table. For the "CNAME" record, create a new record with "www" as the hostname and point it to the domain provided in the Cloudways DNS records table.
- Save the DNS changes in your domain registrar's panel.
- Return to the Cloudways Domain Management page and click the "Verify DNS" button next to the newly added domain.
- Cloudways will check the DNS records and verify if they are correctly pointing to your server. Once the verification is successful, the status will change to "Active."
- Lastly, you can test your new domain by accessing it in a web browser. You should see your Caligrafy application using your custom domain.
Please note that DNS propagation may take some time, so your domain might not be reachable immediately.