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
0
votes
2 answers

Prevent PHP files in addon domain from redirecting to main domain subfolder

I have an addon domain (addon.com) on my main account (main.com). Most files work fine, like html files will go to the addon domain (addon.com/test.html). However, PHP files redirect to a subfolder of the main domain. For example, I put test.php in…
Steven Yuan
  • 369
  • 2
  • 3
  • 13
0
votes
0 answers

Asp.net iis how to emulate typical shared hosting settings

I have a problem with the identity of users being invalidated whenever the application pool is recycled at my shared host. I've read that I may be able to solve this by specifying a machine key, instead of it being auto generated, but first I want…
Jules
  • 4,319
  • 3
  • 44
  • 72
0
votes
1 answer

Python cgi script not working on shared hosting

#!/usr/bin/python print "Content-type:text/html\r\n\r\n" print '' print '' print 'Hello Word - First CGI Program' print '' print '' from wsgiref.handlers import CGIHandler from app import…
Sumit Raj
  • 113
  • 1
  • 3
  • 10
0
votes
1 answer

Pdf is not generated on share hosting hostgator

All I have used a'lot of libraries to generate Pdf from html on Asp.net C#. It works fine on local hosting. but generate security issue when upload on shared hosting. In ItextSharp pdf generation tool this issue is resolved by updating the assembly…
Muhammad zubair
  • 291
  • 2
  • 6
  • 20
0
votes
1 answer

System.Security.SecurityException: Pechkin html to pdf generator throws security exception on shared hosting

I'm using Pechkin HTML to PDF generator. It works fine on local server, but throws an exception on shared hosting company. https://github.com/tuespetre/Pechkin Security Exception: Description: The application attempted to perform an operation not…
Muhammad zubair
  • 291
  • 2
  • 6
  • 20
0
votes
0 answers

RavenDB - EmbeddableDocumentStore already disposed or NRE

This question is about creating a single instance of the Raven document store in the lifetime of a ASP.Net MVC application and subsequently using a new IDocumentSession per request to serve the client with. I believe to have followed the recommended…
0
votes
1 answer

I can't get my html to link to css files on the server

I just started setting up my first live personal site, which I am hosting through iPage. Despite the fact that everything worked great on my local environment, I cannot get the html to link to the css files on the server. I have inlcuded a picture…
0
votes
2 answers

Is there a piece of secret data in a Linux user account?

I want my application (PHP, but that shouldn't matter) to store some data in a shared repository (the APC user cache, but again irrelevant). To prevent users from reading eachother's data I'd like to encrypt it per user. I could have the user…
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
0
votes
1 answer

Which directories are writable by web server on shared web-hosting?

Currently I'm using shared webhost (Linux) to host my site. I know that anything inside '~/home/my_user_name/www' directory is writable by server. What are the other locations? Basically I want to change default session storage location and probably…
understack
  • 11,212
  • 24
  • 77
  • 100
0
votes
1 answer

Shared hosting and simple DoS attacks

My site is hosted on shared hosting and if you spend 25% CPU for more than 90 seconds hosting company automatically disable application pool. I wonder if this code can offload server from a simple DoS attacks void Application_BeginRequest(object…
Georgi Filipov
  • 332
  • 2
  • 18
0
votes
1 answer

ASP.NET WebForms vs. ASP.NET MVC for Shared Web Hosting

I am looking into creating a web application that will live on a shared web hosting provider. The majority of my professional work involves internal Asp.Net web form development on dedicated servers. I have not developed with MVC before, so my…
crjunk
  • 949
  • 4
  • 21
  • 40
0
votes
1 answer

How to install and configure git on a shared hosting?

So I've been searching all over the web on how to install git on my shared host but I still do not have any idea.
sprint
  • 11
0
votes
2 answers

Asynchronously calling a PHP Script via another PHP script

Let's assume I have two PHP scripts, s1.php and s2.php. Let's also assume that s2.php takes about 30 minutes of running. I would like to use s1.php to call s2.php asynchronously. When s2.php is called, it will run on its own without returning any…
Greeso
  • 7,544
  • 9
  • 51
  • 77
0
votes
3 answers

Version and deploy cakephp in shared hosting

I have my cakephp project deployed in a shared hosting, but it's unversioned. I would like to version it using git or mercurial, and deploy changes easily. What steps do I have to take? Should I install git first in my shared hosting first and make…
Alex M
  • 471
  • 4
  • 22
0
votes
1 answer

PHP API call timing out on shared hosting using file_get_contents()

So I'm trying to query an API and get a JSON object back. All works well on my local WAMP install, but when I deploy it to the server, the API query fails :( I've tried using cURL and file_get_contents(). With the same outcome. I've tried two hosts,…
Matt C
  • 1,431
  • 2
  • 14
  • 18