Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7975055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:32:41+00:00 2026-06-04T08:32:41+00:00

My company has a large hosting, but it’s not managed by us, we don’t

  • 0

My company has a large hosting, but it’s not managed by us, we don’t see configuration files, but I want to reply this feature on our local test server.

I’m new in my company and want to start some debug of applications to fix some minors and majors issues to clients, but the amount of files is so big that single error_file is huge.. and there are many people working on this so each time I check log (like 30 secs to 1 min) has hundreds of added lines.

I don’t know if this is set up on Apache, through .htaccess files or in php.ini.

I am talking about PHP errors, but I don’t know if this is set in PHP, Apache, or maybe using a third-party library.

I’m not talking about setting a specific folder error_log. I’m talking about if errors are logged in the scripts folder.

Example: I create a folder named test1. Inside it I make some buggy PHP script that throws some errors. When I run the script I can see an error_log file created in the folder. So it works on the fly.

I have tried to ask the hosting company support how they do this, but they haven’t answered me.


I don’t know if maybe could be some kind of cPanel setting (BTW, the hosting support stuff doesn’t understand this question either, but well.. usually level 1 of support can’t handle technical stuff).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:32:42+00:00Added an answer on June 4, 2026 at 8:32 am

    I found it.

    You have to set a directive in the php.ini file as follows, string "error_log". On the right side is the file name you want for the log,

    error_log = error_log
    

    This will generate a PHP error log in the folder where script executed are,

    I’ll try to explain.

    Script test.php in folder /www/site/lib:

    include "./db_conn.php";
    

    If file db_conn.php is not located in the same directory, this will fire a warning and error. Usually this will be lead to the servers/vhost log, but using this directive you will get an error_log file under the /www/site/lib directory.

    Why was I looking or this? Well, as I wrote, I’m working on a huge application, with thousands of files many fires warnings, notices, etc. I’m not the only one in the project and the site error_log file was so huge it was hard to keep tracking debug evolution for one or just some files. Now I just have to track the log from directories where I’m working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The company for which I work for has built a large ASP.NET MVC application
My company has decided to develop ebook DRM platform. The platform does not have
My company has a problem: we suspect that the NACHA files we are receiving
My company has several class libraries we use in multiple website projects (not web
We Want to Run Our C# Code on the JVM My company has a
Folks, I have just joined this company which has a huge source tree based
This has bothered me for quite a while, but now it is necessity that
My company has a large application we are finishing up. It utilizes WCF as
I work for a large company that has adopted sharepoint. I have been tasked
My company has a large codebase in Surround SCM, which was migrated from SourceSafe

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.