shared-hosting

Problems cloning 1and1 git repository in 1and1 shared Linux server with Eclipse EGit

孤街浪徒 提交于 2019-12-22 17:29:29
问题 I have just setup a git repository in my 1and1 shared hosting. 1and1 offers git as part of the Linux business package and I decided to use it instead of installing my own git. When I do dir .git I can see the information inside the repository: -rw-r--r-- 1 foo ftpusers 23 Sep 6 19:41 HEAD drwxr-xr-x 2 foo ftpusers 6 Sep 6 19:41 branches -rw-r--r-- 1 foo ftpusers 92 Sep 6 20:42 config -rw-r--r-- 1 foo ftpusers 73 Sep 6 19:41 description drwxr-xr-x 2 foo ftpusers 4096 Sep 6 19:41 hooks -rw-r--r

SecurityException - Dapper on shared hosting

回眸只為那壹抹淺笑 提交于 2019-12-22 05:58:07
问题 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. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type

robots.txt allow all except few sub-directories

我与影子孤独终老i 提交于 2019-12-22 05:53:45
问题 I want my site to be indexed in search engines except few sub-directories. Following are my robots.txt settings: robots.txt in the root directory User-agent: * Allow: / Separate robots.txt in the sub-directory (to be excluded) User-agent: * Disallow: / Is it the correct way or the root directory rule will override the sub-directory rule? 回答1: No, this is wrong. You can’t have a robots.txt in a sub-directory. Your robots.txt must be placed in the document root of your host. If you want to

What application trust level is need for ASP.NET MVC framework?

吃可爱长大的小学妹 提交于 2019-12-22 04:45:16
问题 i am trying to deploy simple asp.net mvc frameworkd application in may shared hosting and i get erro like this: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security

shell_exec configuration for git pull Godaddy vs Bluehost

本小妞迷上赌 提交于 2019-12-22 04:31:40
问题 I have a git pull web hook from Github, on two remotes, GoDaddy [production] and on Bluehost [staging]. This question isn't about those companies per se, but what could possibly be the reason for differences in the setups. I have this script, which I have setup as a post commit hook on github.com : <?php $output = shell_exec('git pull origin master'); echo "<pre>$output</pre>"; ?> When I commit on the Github repo, the hook fires and works fine on Bluehost. It doesn't do anything on Godaddy.

Windows Service on Shared Windows Hosting

天大地大妈咪最大 提交于 2019-12-22 01:08:56
问题 I have process which continuously downloads XML from the feed and saves it to DB . I have a Windows Shared Hosting . My question is what should I use.. WCF or Windows Service or Web Service . I cant use ASP.net because it will run on call only...but I need it run 24/7 . Can you guyz suggest me how to design it? I have written a Windows Service but was unable to run it on the Server. My hosting provider is Hostgator.com 回答1: You need to do it in a Windows Service. To run it you'll need a VPS

Background script on shared host with multiple PHP versions installed

一世执手 提交于 2019-12-21 21:38:59
问题 I was needing a way to generate thumbnails (using PHP5) for an image management script and had a problem where my host has multiple versions of PHP installed (4 and 5), with PHP4 set as default. This meant that any calls to php from the CLI would run PHP4. I've come up with the following as what I hope to be a cross platform solution. I'm posting it here primarily as I had a lot of trouble finding any help using Google, so this might help someone in the future, I also have the following

Laravel 5 on shared hosting - wrong public_path()

随声附和 提交于 2019-12-21 17:01:32
问题 I deployed a Laravel 5 project to a shared hosting account, placing the app-files outside of the www-folder, placing only the public folder inside of the www-folder. All like explained here, in the best answer: Laravel 4 and the way to deploy app using FTP... without 3. because this file doesn't exist in Laravel 5. Now when I call public_path() inside of a controller i get something like my-appfiles-outside-of-www /public instead of www/public . Does anyone know why I doesn't get the right

WCF authentication on IIS7 shared hosting

偶尔善良 提交于 2019-12-21 06:05:51
问题 After several days of tests I find the only way I can create a WCF web service with authentication is to put a certificate in localmachine/trustedpeople cert store. The host will not do this for me. Do you know any way to enable WCF authentication without putting a cert in that store? Is there any other way to get WCF security working on shared hosting? I have worked with a sample on codeproject that puts certs in app_data, but I haven't been able to get that to work. 回答1: I did some very

The symbols I should be aware of for SQL injection

谁说我不能喝 提交于 2019-12-20 07:28:28
问题 I know that you cure all of the stuff with mysql_real_escape_string() (and with htmlspecialchars() ), but I want to know the symbols that cause all this mess everyone wants to get rid of? The thing here is, that we here had to transfer a website not built by us from one host to another. It has been coded from ground up, to utilize php 's now deprecated and never loved one - magic_quotes . After the host change there have been php.ini changes also, we encountered a lot of unexpected results.