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.

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.