The known_hosts is used for SSH and SFTP connections. In this example, we are using Master Credentials to access the server remotely.Have issues connecting via SSH or SFTP? If you’re getting an error like the one below, this usually happens because the IP address or the SSH key fingerprint has changed (often due to a server update), and the old one is still stored in your known_hosts file. You can also click on the hyperlink text of bullet points to learn about the procedure of connecting remotely to the server. You can connect to your server via SSH in two ways, choose your preferred option from the below options. Let's begin by connecting to the server via SSH to access the logs folder of your application. First, choose which method you want to use from SSH or SFTP to connect to your server. This may include details of errors and warnings that indicate potential problems with an event or application configuration.Īnalyzing logs can be beneficial when it comes to debugging, troubleshooting the application-level issues, and maintaining a good website's health because logs provide information about web requests, the status of requests, visitor's IP addresses, viewed pages, user-agent(s), PHP processes, CPU, and memory consumption.Īpplication logs can also be monitored using the Cloudways Platform but please note that the logs section of the Cloudways Platform will only display the recent 1000 log entries of Apache, Nginx, and PHP individually but if you are looking to view the previous logs as well, then you need to connect to your server via SSH/SFTP and here is how you can do it.Īpplication logs are maintained in the logs folder of your application directory. On the other hand, error logs refer to the Apache Error Logs containing information about the issues an application encounters. Here, access logs refer to the logs of Apache (for dynamic requests such as PHP requests), Nginx (for static assets such as images/JS/CSS), and PHP (detailed PHP process information such as files/routes, CPU, and memory consumption). In this article, you will learn about viewing your application's Access and Error logs by remotely connecting to the server via SSH or SFTP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |