Cannot find how to modify a file.

If it doesn't fit in another category, ask it here.

Cannot find how to modify a file.

Postby brian47374 » 2012/04/05 21:54:42


I’m a virgin when it comes to Linux. I am currently running WHM 11.30.6 (build 6), CENTOS 5.8 x86_64 virtuozzo on a VPS. I have cPanel 11.

What I am really looking for is some documentation that explains things in detail. I’ve looked through the online documentation and quite honestly it doesn’t really tell you HOW to do things. ... cs/WebHome ... cs/WebHome

For example, I need to modify the php.ini file but none of the options given are what I need when I click on it when trying to configure php. ... ildPhpconf ... ocs/PhpIni

Like in the link just above, it doesn’t TELL me how to get to the /usr/local/lib/php.ini. It only says that it is wiser to edit the php.ini file through the editor. Okay, although I understand that, it doesn’t provide me the options to do that.

The documentation is OKAY, but not at all what I had hoped for as a novice admin.

One thing that I need to do is to configure my php to run on DSO with PHP 5.3.10 but there’s not an option that can do it. I don’t know that I can. I would prefer to run FASTCGI but there is apparently a lot of tweaking that needs to be done.

Also, I need the edit the php.ini file due to some mysql extension issues.

Heck, I can’t even find the php.ini file. Documentation says that it could be here /etc/php/php.ini but how do I get there? Or, how do I recompile php?

I would love to have access to documentation that explains things in DETAIL. Not only GUI functions, but behind the scenes functions with command lines, etc. if that’s how I need to get things done.

What resource would give me, the novice, the best overall idea/schematic if you will of both GUI and command line functions? And, will the fact that I’m using cPanel complicate things even more? And, if so, what would be the best resource for that ? I’m a fairly quick learner, and I’m ANXIOUS to get my hands on some good documentation. If I'm missing something that should be VERY obvious, PLEASE tell me! :-D

Any input would be GREATLY appreciated!


Posts: 2
Joined: 2012/04/03 21:05:01

Re: Cannot find how to modify a file.

Postby DaemonProgrammr » 2012/04/06 06:51:18

Short answer about editors:
Use either 'nano' (type nano php.ini in the directory that contains that file), from the command-line or 'kwrite' from the menu.
nano is more or less like 'edit' in DOS. 'kwrite' is the linux equivalent of notepad. Just make sure you start editing as a root user, otherwise you'll run into write permission issues.

But if you're that much new in Linux, you might want to study some of the basics. While books like 'Linux for beginners' don't usually cover specific up to date distro's, they often give good pointers about basic operations for administration of the OS.

It's really dangerous doing stuff with root permissions, when you have no idea what you're doing. (No offense..)
Posts: 78
Joined: 2011/12/12 12:49:46

Re: Cannot find how to modify a file.

Postby TrevorH » 2012/04/06 11:02:17

You should probably be aware that running cpanel replaces so many system components of CentOS that it can no longer be regarded as CentOS. Any advice we might give that would work on a CentOS system might actually break one with cpanel installed. Since you pay them for support, your questions are better addressed to them via their support channels.
User avatar
Forum Moderator
Posts: 9167
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Cannot find how to modify a file.

Postby pschaff » 2012/04/06 11:05:19

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature. There are some recommendations for books and other resources there. For CentOS-5, Fedora 6 books such as the well-respected Negus guides are appropriate and very inexpensive. See also threads such as this.

Do note that cPanel and WHM are commercial products, with paid support, have their own support resources; and cPanel makes enough changes that the resulting system is no longer really CentOS, so be careful what you follow as standard CentOS advice may break your system.

Other Voices
When CentOS Is Not CentOS
Retired Moderator
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Return to CentOS 5 - Miscellaneous Questions

Who is online

Users browsing this forum: No registered users and 0 guests