Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
php.ini editing, how to make changes stick? [Solved]
I have a Xen VPS box and I'm trying to change the error_reporting level of php on it. Currently it's error_reporting is set to 22527 as reported by phpinfo(). I have no clue what 22527 means, nor do I care to know. I just want to turn all the errors on so I can troubleshoot a script that isn't working properly.
I have edited error_reporting to = E_ALL in /etc/php5/cli/php.ini. Saved the changes, re-edited to make sure I saved it correctly, I have. phpinfo() does not report anything different, still 22527. I went into Webmin, applied changes to Apache, still reporting 22527.
I'm really beginning to hate Linux. Some of the most trivial things seem to be so convoluted. I have a feeling this is because the Ubuntu LAMP image does not try to be cleanly configured. At any rate, any tips in the right direction would be great.
Last edited by wh33t; 03-06-2014 at 12:11 AM.
Reason: Solved
I have a Xen VPS box and I'm trying to change the error_reporting level of php on it. Currently it's error_reporting is set to 22527 as reported by phpinfo(). I have no clue what 22527 means, nor do I care to know. I just want to turn all the errors on so I can troubleshoot a script that isn't working properly.
If you're not interested in learning anything, then why ask a question? A very small bit of research on Google will tell you that the 22527 is actually a bitmap mask of the conditions set in the php.ini file. The PHP documentation answers this, and tells you what to set to get what you want...checking documentation is always a good place to start: http://www.php.net/manual/en/errorfunc.constants.php http://www.php.net/manual/en/functio...-reporting.php
Quote:
I have edited error_reporting to = E_ALL in /etc/php5/cli/php.ini. Saved the changes, re-edited to make sure I saved it correctly, I have. phpinfo() does not report anything different, still 22527. I went into Webmin, applied changes to Apache, still reporting 22527.
One of the first things you need to start doing, is avoiding webmin. It's not a good thing to use for most of your work, and can cause you more problems. Learn to use the command-line, or the native Linux tools that you have, rather than a PHP/webmin 'crutch'.
Quote:
I'm really beginning to hate Linux. Some of the most trivial things seem to be so convoluted. I have a feeling this is because the Ubuntu LAMP image does not try to be cleanly configured. At any rate, any tips in the right direction would be great.
Then don't use it, and go back to using whatever you did before. You don't seem to want to learn, based on what you say above...you THINK it's convoluted, because you're using the wrong tools to do a job, and you don't know what you're doing yet. To me, Windows and Mac's are INCREDIBLY bad and convoluted, and I can do things in Linux in a tenth of the time. And it's because things are DIFFERENT...a Windows admin can fly through doing Windows server tasks that would take me forever...it doesn't mean that Windows is better, it's just that I don't know how to perform those same tasks, just like they wouldn't on Linux.
So, either put some effort in and learn, or go back to what you were using.
I can't help myself... PHP is one of the best documented languages out there.. You would have this problem in Windows, Linux and Mac, since you are describing a PHP problem, not a OS problem ..
I'm not interested in learning how to "admin" a server, just like I'm not interested in knowing how to compile Linux from scratch or build a processor from raw materials, we all choose our areas of specialty, configuring systems isn't mine.
With that said, here is what phpinfo() reports to me for the Loaded Configuration File
I have searched that file for 22527 using the CTRL-W (whereis) feature of Nano from PuTTY and it doesn't even exist in the document.
When searching for "error_reporting" in the same document, it appears to be uncommented and set to error_reporting = E_ALL & ~E_DEPRECATED
I have rebooted my entire VM and I am still not receiving any error messages. I'm not sure what to do from here, but perhaps the issue is Webmin configures Apache's subdomains.
wh33t.. From your description, you already have error_reporting set to the correct value and everything works fine.. Are you sure you're not looking for display_errors configuration runtime?
Currently (actually from the very beggining) all errors we're logged.
Im not aware that dislay_errors was a thing that needed to be taken into consideration. I will investigate the php.ini for that parameter and report back.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.