Jump to content

Detect hsoting type trick, shared or vps


Issam

Recommended Posts

If they didn't tell you it's dedicated hosting, it's shared.

 

[edit] Check __FILE__ or __DIR__: if they have your username in it, like /home/username, then it's shared. If you have virtually no control over the server, it's shared.

Edited by requinix
Link to comment
Share on other sites

Hi, again

I would like to make an installer that check if it is a vps or a shared not for my own but for people using the script. Some instructions and configuration have to be specific to shared hosting while an other specification for a vps or even a dedicated server, even if dedicated servers are too few.

 

Regards

Link to comment
Share on other sites

There's no reliable way to determine what kind of hosting they are using. They might have a dedicated server and have full control but if they are using something like cpanel it'd probably look like shared hosting from your script's point of view.

 

So, just ask them what kind of hosting they have and then show whatever instructions apply for their selected answer.

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.