Jump to content

PHP setup - new to running my own PHP server


Recommended Posts

hi there,

 

I'm new, so hi,

 

i've just upgraded my hosting to a VPS, and when trasferring my websites accross found a problem.

 

my old hosting had php set up with the setting so i dont have to use $HTTP_GET_VARS[] to retrieve a variable from the http, so i was using codes such as echo $variable to pull the variables strait from the http

 

now , on my own managed vps that setting is not enabled, which means editing all my current scripts, or (the easy option) enabling that setting.

 

however, i don't know what that setting is called nor how to access the php settings on my vps.

 

i phoned technical support for my vps and they told me i'm responsible for managing my own server, and basically its not thier problem.

 

soooooooooooooooo could one of you lovely people lead me in the right direction?

 

Thanks in advance

 

Tony

 

P.S my VPS is hosted by webfusion (pipex)

Link to comment
Share on other sites

The setting is called registr_globals and should be left off for security reasons.

 

Your php.ini would normally reside within /etc/php or something simular. If your unable to locate it make a file containing...

 

<?php

  phpinfo();

?>

 

When you view this file it will give you all sorts of info about php, including the location of you php.ini.

 

PS: Unless you know what your doing, I really think a VPS may be a bad choice security wise. You need to take care of everything. Have you setup a firewall as yet?

Link to comment
Share on other sites

ok thanks, i'll leave it off for now i'll just rewrite my scripts with HTTP_GET_VARS.

 

I'm only running basic scripts anyway nothing too fancy.

 

firewall is installed by default like php was.

 

just looked now, it has access list set up allowing the common ports, and also 'system policy for incomming traffic' is set to 'allow all other incomming traffic'

 

should i set this to deny all other incomming traffic?

 

Thanks

 

Tony

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.