LinuxQuestions.org
Register a domain and help support LQ
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-01-2011, 08:50 AM   #1
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Rep: Reputation: 21
php.ini.rpmsave instead of php.ini


hi guys

i had a problem with my httpd php installation ,so i remove them and also removed php.ini from /etc/ and then made a new installation.
Fortunately now it works except i'm having this error each time time i use time
Code:
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /var/www/a2billing/common/lib/admin.defines.php on line 165
so i tried to added date.timezone to my php.ini but i can't find it although php is working fine ,But instead of it find php.ini.rpmsave,and when i added date.timezone ,the problem exist!!!
another strange thing locate CMD tells me that php.ini file is in /etc.
Code:
[root@benchabane ~]# locate php.ini
/etc/php.ini
/etc/php.ini.rpmsave
Code:
[root@benchabane ~]# vi /etc/php.ini
"/etc/php.ini" [New File]
the phpinfo tells me
Code:
Configuration File (php.ini) Path        /etc
Loaded Configuration File                (none)
is there any explanation????
I'm running fedora 14 server,apache 2.2.17 php 5.3.5

php -v says:
Code:
[root@benchabane etc]# php -v
PHP 5.2.17 (cli) (built: Jan 31 2011 20:21:21) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

am'i running two copies of php??
thx in advance
 
Old 02-01-2011, 11:34 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Try
Code:
ls -l /etc/php.ini
or
Code:
updatedb
locate php.ini
Locate runs from a stored database of filelocations, it doesn't actually search your hard-drive. It's possible you've moved/deleted the php.ini file since it last updated
 
Old 02-01-2011, 02:37 PM   #3
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Original Poster
Rep: Reputation: 21
hi
Code:
[root@benchabane benchabane]# ls -l /etc/php.ini
ls: cannot access /etc/php.ini: No such file or directory
but updatedb cleared things up,now i know for sure that the php.ini is missing
thank you
 
Old 02-01-2011, 05:39 PM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Great if this solved your problem, then please mark the thread as "SOLVED" (under Thread Tools)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
PHP won't recognize my Configuration File (php.ini) path kriezo Programming 4 02-14-2008 03:31 AM
php.ini-dist to php.ini lord-fu Programming 10 05-02-2006 06:24 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 12:05 PM
Upgraded PHP from 4.3.4 to 4.3.10 and now it won't read php.ini gregmcavoy Linux - Software 11 01-22-2005 01:16 PM
php: different mail server from php.ini rayds Programming 0 09-14-2004 04:48 AM


All times are GMT -5. The time now is 03:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration