LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-01-2007, 10:19 AM   #1
goldfox
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
Question Making changes to php.ini using SSH client


Hi,
I would like to know if its possible to make changes to php.ini by using the command line. If so can anyone show an example how to change default settings to:
upload_max_filesize = 100M
post_max_size = 100M
 
Old 07-01-2007, 10:38 AM   #2
fatzeus
Member
 
Registered: Nov 2004
Location: Venice, Italy
Distribution: Gentoo
Posts: 44

Rep: Reputation: 15
Of course it's possibile, just use a text editor that works in console.
Vim, nano and pico are the most popular. If you've never used one i suggest you nano or pico because Vim is a great product but difficult at first.

So, for example with nano, just open the file like this:
#nano /etc/php.ini (of course with correct path)
Made your changes and save the file (CTRL+O i think, but it's written)
 
Old 07-01-2007, 12:13 PM   #3
goldfox
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fatzeus
Of course it's possibile, just use a text editor that works in console.
Vim, nano and pico are the most popular. If you've never used one i suggest you nano or pico because Vim is a great product but difficult at first.

So, for example with nano, just open the file like this:
#nano /etc/php.ini (of course with correct path)
Made your changes and save the file (CTRL+O i think, but it's written)
Do I need to download text editor, if so do you have link?
here is what I have so far.

[root@readyweb ~]# pico /usr/local/lib/php.ini
-bash: pico: command not found
[root@readyweb ~]# nano /usr/local/lib/php.ini
-bash: nano: command not found
[root@readyweb ~]#
 
Old 07-01-2007, 12:39 PM   #4
fatzeus
Member
 
Registered: Nov 2004
Location: Venice, Italy
Distribution: Gentoo
Posts: 44

Rep: Reputation: 15
Maybe try also vi just to see if it's installed:
#vi -h
In that case you can find lots of guide to use it (open and save is not a lot difficult).
If you don't have it you can get nano here:
http://www.nano-editor.org/
Of course if you are using distros like Debian,Gentoo,Ubuntu and so on the packet manager will install it for you without going to the site.
 
Old 07-02-2007, 02:28 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,295

Rep: Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358
vi is pretty much the default editor for *nix style systems. It's been around for yrs before things like nano or pico or even vim ..
give it a shot.
 
  


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.ini-dist to php.ini lord-fu Programming 10 05-02-2006 05:24 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
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 12:16 PM
php: different mail server from php.ini rayds Programming 0 09-14-2004 03:48 AM
where is php.ini? ShawnD Linux - Software 6 07-24-2002 10:42 AM


All times are GMT -5. The time now is 01:26 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