Cannot find how to modify a file.

If it doesn't fit in another category, ask it here.
Post Reply
brian47374
Posts: 2
Joined: 2012/04/03 21:05:01

Cannot find how to modify a file.

Post by brian47374 » 2012/04/05 21:54:42

Hello,

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.

http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WebHome
http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/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.

http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/RebuildPhpconf
http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/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!

Thanks,

Brian

DaemonProgrammr
Posts: 78
Joined: 2011/12/12 12:49:46

Re: Cannot find how to modify a file.

Post by 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..)

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cannot find how to modify a file.

Post by 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.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Cannot find how to modify a file.

Post by 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 [url=https://www.centos.org/search.php?query=negus&mid=30&action=showall&andor=AND]Negus[/url] guides are appropriate and very inexpensive. See also threads such as [url=https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=35637&forum=18]this[/url].

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.

[url=http://wiki.centos.org/AdditionalResources/OtherVoices]Other Voices[/url]
[url=http://wiki.centos.org/AdditionalResources/OtherSpins]When CentOS Is Not CentOS[/url]

Post Reply