(Problem Solved) Loosing the php.ini file for unknown reasons
Linux - NewbieThis 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
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
(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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.