Solved

Updating php.ini on a Linux VPS

Posted on 2009-07-02
9
452 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
Industry Leaders: 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 500 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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Codeigniter Query Help Returning JSON 4 47
PHP mail() function not working... 8 33
Unix Help with:  mailx -s 17 58
Do not understand error message 3 23
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
This article discusses how to implement server side field validation and display customized error messages to the client.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 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