LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2010, 02:30 PM   #1
javx
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
(Problem Solved) Loosing the php.ini file for unknown reasons


Hello, Sorry this is a long one. I am using Linux CentOs and I am new to Linux of course and I am having problems installing software that requires this: --with-gd and --enable-mbstring so I had to change the php-ini file.

In centos this file is located on the /usr/etc directory.

After some research I modified my php.ini file by adding this
--enable-mbstring
--with-gd
Later on I was told to remove those entries and to simply istall teh packages so I did this:
yum install php-mbstring
yum install php-gd

After the install, I restarted apache and looked for changed in the info.php but did not see any changes, I still see --without-gd and I never seen enable-mbstring.

To complicate things I was told I had a couple of duplicate packages so I remember running the remove command on that specific package and nothing else.

This morning I could not find the php.ini anymore and instead I found the following:
usr/etc/php.ini.rpmnew
usr/etc/php.ini.rpmsave

Note that I already had php-ini.rpmnew so I think that somehow the system renamed my file to "php.ini.rpmsave" but I am not 100%...

I looked at the log file this morning and I am finding a bunch of "yum: Erased: messages for packages I did not remove, does anyone know why this is????. Out of this list I am sure of removing php-cli since I had a duplicate of it.

Feb 25 11:35:17 localhost yum: Installed: php-mbstring-5.2.12-3.el5.art.i386
Feb 25 14:00:14 localhost yum: Installed: gmp-4.1.4-10.el5.i386
Feb 25 14:00:16 localhost yum: Installed: php-cli-5.2.12-3.el5.art.i386
Feb 25 14:33:13 localhost yum: Erased: php-cli
Feb 25 14:33:14 localhost yum: Erased: php-zend-optimizer
Feb 25 14:33:15 localhost yum: Erased: php-cli
Feb 25 14:33:15 localhost yum: Erased: php-mcrypt
Feb 25 14:33:18 localhost yum: Erased: wordpress
Feb 25 14:33:30 localhost yum: Erased: phpMyAdmin
Feb 25 14:33:34 localhost yum: Erased: php
Feb 25 14:33:36 localhost yum: Erased: php-devel
Feb 25 15:19:41 localhost yum: Erased: php-xml
Feb 25 15:19:42 localhost yum: Erased: php-mbstring
Feb 25 15:19:42 localhost yum: Erased: php-mysql
Feb 25 15:19:43 localhost yum: Erased: php-mbstring
Feb 25 15:19:43 localhost yum: Erased: php-common
Feb 25 15:19:45 localhost yum: Erased: php-gd
Feb 25 15:19:45 localhost yum: Erased: php-pdo

Last edited by javx; 02-27-2010 at 02:44 PM. Reason: Problem Solved by re-installing php and mysql
 
Old 02-26-2010, 07:22 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
/usr/etc/php.ini.rpmnew
is your new php.ini file.
rename it or copy it to php.ini

I couldn't say about the stuff yum erased, but I didn't watch it install the files you installed.

Rename that php.ini first and see what's what.
 
  


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
Package for php.ini file bkcreddy17 Programming 3 05-30-2008 05:45 PM
PHP won't recognize my Configuration File (php.ini) path kriezo Programming 4 02-14-2008 03:31 AM
editing a php.ini file ilustrate Linux - General 4 07-13-2005 01:16 PM
Question about php.ini file. jon_k Linux - Software 0 08-07-2004 06:52 AM
php.ini and file uploads gblue Linux - Newbie 0 02-29-2004 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration