LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-22-2014, 05:39 PM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Rep: Reputation: 61
Question 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
 
Old 02-23-2014, 10:38 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
In phpinfo output see your "Configuration File (php.ini) Path" option.


Quote:
I have no clue what 22527 means, nor do I care to know
If you don't want to put in an effort then please also don't complain.
 
Old 02-23-2014, 11:10 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by wh33t View Post
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.
 
Old 02-23-2014, 01:56 PM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
Have you restarted the httpd server after editing? Changes will be visible after a reload of the server.
 
1 members found this post helpful.
Old 02-23-2014, 02:22 PM   #5
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
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 ..

P.S: j-ray gave you your answer. Have fun!
 
Old 02-28-2014, 11:23 PM   #6
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Original Poster
Rep: Reputation: 61
Thanks for your advice and counseling guys.

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

Quote:
Loaded Configuration File /etc/php5/apache2/php.ini
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.
 
Old 03-01-2014, 07:32 AM   #7
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
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.
 
1 members found this post helpful.
Old 03-01-2014, 05:49 PM   #8
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Original Poster
Rep: Reputation: 61
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.
 
Old 03-06-2014, 12:11 AM   #9
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Original Poster
Rep: Reputation: 61
Thanks, that solved it. Set display_errors to ON and it works now. Thanks guys.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What to restart after editing php.ini? newlinuxnewbie Linux - General 4 10-08-2013 03:15 PM
GD library installed - should I be editing my php.ini file? paul1107 Linux - Newbie 13 03-08-2012 10:54 AM
php.ini-dist to php.ini lord-fu Programming 10 05-02-2006 05:24 PM
editing a php.ini file ilustrate Linux - General 4 07-13-2005 12:16 PM
editing PHP.INI file question hct224 Linux - Newbie 1 10-31-2003 10:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration