» Knowledgebase - If its not here, Just ask.

Virtual Dedicated Servers

ID #1023

Can I turn off PHP safemode on my virtual dedicated server?

To Turn off PHP "safemode" on Your Linux Virtual Dedicated Server

  1. Using SSH, connect to your server.
  2. Once you are logged in, type <?php
    su
    -
    ?>
    .
  3. For your password, type the same password you used to connect to your server.
  4. At the command prompt type:
  5. vi /etc/php.ini
  6. Go to the line <?php
    safe_mode
    = on
    ?>
    and press the "i" key.
  7. Change the line to <?php
    safe_mode
    = off
    ?>
    and press the "Esc" key.
  8. Type <?php
    :wq
    ?>
    and press Enter to save your file and quit vi.

Once you have edited the file, you need to restart your Web server.

Tags: -

Related entries:

Last update: 2006-08-01 20:28
Author: Hosting Support
Revision: 1.0

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry