Getting Apache logs: Difference between revisions
No edit summary |
(Filezilla -> Cyberduck, gooi volgorde om) |
||
Line 1: | Line 1: | ||
You can find all your | You can find all your Apache logs (like access.log and error.log) on all of our shell servers in the directory <code>/var/log/apache_user/''username''</code>. For more general information on how to access your files, please visit [[Accessing your files]]. | ||
==Using Cyberduck== | |||
You can access the log files using an SFTP client like Cyberduck. Click on "Go" on the top bar and then click "Go to Folder...": | |||
[[File:Getting Apache Logs - Cyberduck 1.png]] | |||
Then enter <code>/var/log/apache_user/''username''</code> as path name (replace ''username'' with your own username): | |||
[[File:Getting Apache Logs - Cyberduck 2.png]] | |||
After pressing "Go", you will see a directory for each of your websites, containing their Apache logs. | |||
[[File:Getting Apache Logs - Cyberduck 3.png]] | |||
==Using the command line== | |||
You can also access your logs by [[Accessing shell servers over SSH|logging in to one of our shell servers over SSH]] and navigating to the correct directory: | |||
username@ssh1:~$ cd /var/log/apache_user/username | |||
username@ssh1:/var/log/apache_user/username$ ls | |||
username.ulyssis.be | |||
username@ssh1:/var/log/apache_user/username$ cd username.ulyssis.be | |||
username@ssh1:/var/log/apache_user/username/username.ulyssis.be$ ls | |||
access-2014-05-07.log error-2014-05-07.log | access-2014-05-07.log error-2014-05-07.log | ||
username@ssh1:/var/log/apache_user/username/username.ulyssis.be$ tail error-2014-05-07.log | |||
[Wed May 07 01:27:14 2014] [error] [client 10.0.0.1] File does not exist: /home/user/ | [Wed May 07 01:27:14 2014] [error] [client 10.0.0.1] File does not exist: /home/user/username/www/favicon.ico | ||
If you can't find your username inside of <code>/var/log/apache_user</code>, don't worry. If you enter it with <code>cd username</code>, it will automatically appear. | |||
[[Category:Webserver]] | [[Category:Webserver]] |
Revision as of 01:52, 4 August 2021
You can find all your Apache logs (like access.log and error.log) on all of our shell servers in the directory /var/log/apache_user/username
. For more general information on how to access your files, please visit Accessing your files.
Using Cyberduck
You can access the log files using an SFTP client like Cyberduck. Click on "Go" on the top bar and then click "Go to Folder...":
Then enter /var/log/apache_user/username
as path name (replace username with your own username):
After pressing "Go", you will see a directory for each of your websites, containing their Apache logs.
Using the command line
You can also access your logs by logging in to one of our shell servers over SSH and navigating to the correct directory:
username@ssh1:~$ cd /var/log/apache_user/username username@ssh1:/var/log/apache_user/username$ ls username.ulyssis.be username@ssh1:/var/log/apache_user/username$ cd username.ulyssis.be username@ssh1:/var/log/apache_user/username/username.ulyssis.be$ ls access-2014-05-07.log error-2014-05-07.log username@ssh1:/var/log/apache_user/username/username.ulyssis.be$ tail error-2014-05-07.log [Wed May 07 01:27:14 2014] [error] [client 10.0.0.1] File does not exist: /home/user/username/www/favicon.ico
If you can't find your username inside of /var/log/apache_user
, don't worry. If you enter it with cd username
, it will automatically appear.