We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Updating php.ini on a Linux VPS

wilson1000
wilson1000 asked
on
Medium Priority
479 Views
Last Modified: 2013-11-15
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
Comment
Watch Question

Top Expert 2009

Commented:
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

Author

Commented:
Sorry, where shall i type it?
Top Expert 2009

Commented:
in ubuntu pc , command line

Author

Commented:
cool...

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

      I need to activate this extension:

     extension=php_mcrypt.dll

cmd.jpg
Top Expert 2009

Commented:
how comes your php.ini file is empty ??

it should not be empty.

you sure you are editing right file, not empty file ??
Top Expert 2009

Commented:
you can use, phpinfo() file to see the path of your php.ini

Author

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

/etc/php5/apache2/php.ini
Top Expert 2009
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

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?  
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.