Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Updating php.ini on a Linux VPS

Posted on 2009-07-02
9
Medium Priority
?
458 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
0
Comment
Question by:wilson1000
  • 5
  • 4
9 Comments
 
LVL 29

Expert Comment

by:fosiul01
ID: 24766908
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
0
 
LVL 4

Author Comment

by:wilson1000
ID: 24766923
Sorry, where shall i type it?
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 24766955
in ubuntu pc , command line
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Author Comment

by:wilson1000
ID: 24767002
cool...

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

      I need to activate this extension:

     extension=php_mcrypt.dll

cmd.jpg
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 24767012
how comes your php.ini file is empty ??

it should not be empty.

you sure you are editing right file, not empty file ??
0
 
LVL 29

Expert Comment

by:fosiul01
ID: 24767020
you can use, phpinfo() file to see the path of your php.ini

0
 
LVL 4

Author Comment

by:wilson1000
ID: 24767148
Thank you, this is the value from an info call:

/etc/php5/apache2/php.ini
0
 
LVL 29

Accepted Solution

by:
fosiul01 earned 2000 total points
ID: 24767159
ok then

go to
cd /etc/php5/apache2/

sudo nano php.ini

change as you want

0
 
LVL 4

Author Comment

by:wilson1000
ID: 24767393
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?  
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question