Questions tagged [shared-hosting]

Websites that are hosted on servers where many other peoples sites are hosted can have specific problems due to security concerns, lack of control of installed libraries, no root access etc.

There are many Shared Hosting providers that allow hundreds of sites to be run on a single server. To ensure everythings works as well as possible for everyone certain features of scripting languages are switched off and can cause problems for developers.

1607 questions
5
votes
3 answers

Restrict PHP's file system access to a folder

My scenario: I have a shared hosting account running Apache that I use for personal projects. Now a friend of mine needs a little space to put up a website for his hockey club. I decided to let him run it on my account and to give him an FTP account…
usimon
  • 415
  • 1
  • 5
  • 8
5
votes
1 answer

SecurityException - Dapper on shared hosting

For my current project I use Dapper. Everything perfect. Then I needed to deploy it on shared hosting. The result can be seen here (copied YSOD): Description: The application attempted to perform an operation not allowed by the security policy. …
stej
  • 28,745
  • 11
  • 71
  • 104
5
votes
4 answers

Should i not put a git repository in "htdocs"?

I'm getting more and more into Git and have to straighten this one out, I read somewhere that it's bad security practice to put a .git repo inside folders that can be accessed trough the web (sounds reasonable!). My question is, besides if its…
jonas
  • 620
  • 1
  • 6
  • 14
4
votes
1 answer

Upgrading Olson tz database natively implemented in PHP

I'm working on a site that makes heavy use of time zones which needs to be on the bleeding edge of the absolute latest tz information available (which I already get through the tz mailing list). What I don't know is how to get the PHP installations…
Tim Parenti
  • 511
  • 7
  • 26
4
votes
4 answers

CodeIgniter Cron Job on Shared Hosting?

I am trying to learn how to do my first cron job using CodeIgniter. In the past, it seemed the only way to do this with CI was to use the wget command instead of php. The CodeIgniter User Guide, however, says that now you can do this from the…
Joe W
  • 998
  • 6
  • 16
  • 36
4
votes
10 answers

Virus code injected in PHP Files

I own a website running on LAMP - Linux, Apache, mySQL and PHP. In the past 2-3 weeks the PHP and jQuery files on my website have become infected from malware from a site called gumblar.cn I can't understand how does this malware get into my PHP…
Vinayak
  • 756
  • 3
  • 7
  • 23
4
votes
2 answers

customErrors with redirectMode="ResponseRewrite" do not work on shared hosting

I am trying to setup custom error pages for my site (ASP.NET 4, integrated pipeline). Everything works properly on local machine but custom error pages for .aspx pages do not get shown on shared hosting (I see default error pages). If I change…
Bobrovsky
  • 13,789
  • 19
  • 80
  • 130
4
votes
1 answer

Common Lisp: What's the best way to use libraries in a shared hosting environment?

I was thinking about this the other day and wanted to see what the SO community had to say about the subject. As it stands right now Common Lisp is getting some attention as a web development platform, and with good reason (of which I'm sure you are…
BlueBadger
  • 898
  • 3
  • 10
  • 20
4
votes
0 answers

OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to NotMySite.ru:443

I get data via several proxys from external site (let it be fictional NotMySite.ru) with cURL PHP on virtual hosting. Some proxys worked nice, but some can't get data with error in topic. See full log: * Trying 45.15.237.221... * TCP_NODELAY set *…
4
votes
8 answers

How Much Traffic Can Shared Web Hosting (for a Python Django site) support?

Someone in this thread How Much Traffic Can Shared Web Hosting Take? stated that a $5/mo shared hosting account on Reliablesite.net can support 10,000 - 20,000 unique users/day and 100,000 - 200,000 pageviews/day. That seems awfully high for a…
Continuation
  • 12,722
  • 20
  • 82
  • 106
4
votes
7 answers

Is version control possible on a shared host w/o shell access?

I have a client who's host doesn't allow shell access. Is there any multi-user revision control system that can work in that situation (on linux)? He's reluctant to switch hosts.
sprugman
  • 19,351
  • 35
  • 110
  • 163
4
votes
1 answer

Issue with installing Node.js on Hostinger shared-hosting

I have installed Node.js on my Hostinger shared-hosting according to https://medium.com/@mayomi1/how-to-host-a-node-js-app-on-shared-host-52e12a62a259. When I try to use npm install fibers or npm install from the following package.json. { "name":…
Anik Adhikary
  • 61
  • 1
  • 6
4
votes
1 answer

Prevent access to Laravel through /public/ directory using .htaccess

I've set up a Laravel project on a shared hosting where the document root can't be set to Laravel's "public" folder. To get around this, I use the following .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} ^habbo.gallery$…
Metoniem
  • 239
  • 2
  • 15
4
votes
1 answer

Passport details api in laravel work fine on local host but not shared hosting

I have created api with passport. My all api works fine on localhost. But when I deploy on shared hosting my login and register api is working fine but details api not working. I rewrite htacess rule but nothing happened. Why this problem occured?…
Nokib
  • 51
  • 2
4
votes
3 answers

Mongoose does not establish the connection with the database on Namecheap shared hosting node js application

The flowing code successfully connects mongoose with the mlab database on localhost and Heroku. But it's not working on Namecheap node js Server. const express = require("express"); const mongoose = require("mongoose"); const port =…
Shifut Hossain
  • 1,599
  • 3
  • 14
  • 24