Solved

Updating php.ini on a Linux VPS

Posted on 2009-07-02
9
443 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
Comment Utility
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
Comment Utility
Sorry, where shall i type it?
0
 
LVL 29

Expert Comment

by:fosiul01
Comment Utility
in ubuntu pc , command line
0
 
LVL 4

Author Comment

by:wilson1000
Comment Utility
cool...

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

      I need to activate this extension:

     extension=php_mcrypt.dll

cmd.jpg
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 29

Expert Comment

by:fosiul01
Comment Utility
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
Comment Utility
you can use, phpinfo() file to see the path of your php.ini

0
 
LVL 4

Author Comment

by:wilson1000
Comment Utility
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
Comment Utility
ok then

go to
cd /etc/php5/apache2/

sudo nano php.ini

change as you want

0
 
LVL 4

Author Comment

by:wilson1000
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now