Jump to content

Q: Server Access & Error Log?


mr_zhang

Recommended Posts

Hi guys,

 

I understand that we can log on to our host and download the access.log and error.log (or similar file) for our website.

 

Is there a certain path where I can access those logs without actually logging in to host control panel?

 

I mean, is there a path where my program can get those files without downloading it to my computer?

 

Regards,

Link to comment
Share on other sites

Often it's in /var/log or /var/log/apache.  Your hosting provider is best placed to help you with that, as it can vary from system to system.  You can also try looking in the apache configuration, usually found in /etc/apache, as the log location will usually be defined there.

Link to comment
Share on other sites

Thanks infid3l,

 

That's great, it seems to be what I'm looking for. I'll try it.

 

However, it brings me to another questions:

 

- If I have several domains in several hostings, do I have to put the script on each and every domain?

- or just each and every host? If so, how to determine which error log belongs to which domain?

- Could I just put the script on 1 domain and let the script get all the error logs from all domains (which are in different hosting companies)? If so, how to do that? I mean how to determine the domains?

 

Regards,

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.