Updating php.ini on a Linux VPS

Hello,

I currently run the following on a VPS:

Operating system: Linux 2.6.9
Ubuntu 8.04
Plesk Control Panel v8.6.0 with Virtuozzo

I would like to amend the php.ini file in order to activate an extension.

Would you please be kind enough to guide me through the process?

Many thanks
LVL 4
wilson1000Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fosiul01Commented:
type this

locate php.ini
( normaly its /etc/php.ini)
it will show you where is php.ini

sudo nano php.ini

do your change

then restart apache
wilson1000Author Commented:
Sorry, where shall i type it?
fosiul01Commented:
in ubuntu pc , command line
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

wilson1000Author Commented:
cool...

I have this screenshot, what should i type in here?

      I need to activate this extension:

     extension=php_mcrypt.dll

cmd.jpg
fosiul01Commented:
how comes your php.ini file is empty ??

it should not be empty.

you sure you are editing right file, not empty file ??
fosiul01Commented:
you can use, phpinfo() file to see the path of your php.ini

wilson1000Author Commented:
Thank you, this is the value from an info call:

/etc/php5/apache2/php.ini
fosiul01Commented:
ok then

go to
cd /etc/php5/apache2/

sudo nano php.ini

change as you want

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wilson1000Author Commented:
It looks like the extension doesn't exist ? php.ini says:

; Directory in which the loadable extensions (modules) reside.
; extension_dir = "./"

But there is no list of extensions to uncomment ? Does that mean that what ever is in that directory will be activated?  
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.