shared-hosting

ASP.NET MVC app custom error pages not displaying in shared hosting environment

廉价感情. 提交于 2019-12-17 10:32:41
问题 I'm having an issue with custom errors on an ASP.NET MVC app I've deployed on my shared host. I've created an ErrorController and added the following code to Global.asax to catch unhandled exceptions, log them, and then transfer control to the ErrorController to display custom errors. This code is taken from here: protected void Application_Error(object sender, EventArgs e) { Exception ex = Server.GetLastError(); Response.Clear(); HttpException httpEx = ex as HttpException; RouteData

CakePHP 3 on Bluehost Console Commands Do Not Function

早过忘川 提交于 2019-12-14 03:57:38
问题 I'm attempting to get a CakePHP 3 app setup on a shared hosting solution provided by Bluehost. When I attempt to bin/cake bake from a console (or any cake commands, really) I get the following output: ################################################################################ # # Bake is a shell script for running CakePHP bake script # # CakePHP(tm) : Rapid Development Framework (http://cakephp.org) # Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) # # Licensed

Which PHP 5 Version is most commonly used?

送分小仙女□ 提交于 2019-12-14 03:54:21
问题 When I'm developing applications that would be used on client web serves of different configurations, often with shared hosting, which PHP 5 version should I assume most web servers have, e.g 5.2.x, 5.3.x, etc? 回答1: Version 5.2 is used by 84.9% of all the websites who use PHP version 5. Version 5.3.3 is used by 39.7% of all the websites who use PHP version 5.3 You can see more statistical data from the following link: http://w3techs.com/technologies/details/pl-php/5.3/all 回答2: WordPress.org

“The application attempted to perform an operation not allowed by the security policy” on shared webhosting server

僤鯓⒐⒋嵵緔 提交于 2019-12-13 17:19:16
问题 I have created a web application in ASP.Net 4.0 framework and use LinqtoSQL for database interaction. I have build my code and upload on my shared web hosting server. Its home page working fine and all pages working fine where page content doesn't interact with database. But which pages interact database these pages gives me error : Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required

Django ImageField Alternatives

青春壹個敷衍的年華 提交于 2019-12-13 07:58:31
问题 I am using shared host with virtualenv to run Django Things run well, however, I can not use ImageField because gcc can not run, and I can not install Pillow. Is there any other way that can be use instead of ImageField ? Can I use FileField instead ? As I know it has problem with image dimension or something. Thank you 来源: https://stackoverflow.com/questions/30544126/django-imagefield-alternatives

How can we deploy from TFS to IIS on shared hosting? (GoDaddy)

好久不见. 提交于 2019-12-13 04:12:23
问题 The documentation found here describes how to deploy to IIS, but the WinRM component requires local admin permissions. Obviously, this isn't going to be available on shared hosting with service providers such as GoDaddy. (We'll be excluding Azure targets for the purposes of this discussion.) Visual Studio can do this very easily, simply by using an imported .publishsettings file. Doesn't it stand to reason that TFS should be able to do the same thing without needing the extra privileges? ..

I have a problem connecting to my db on godaddy with PDO

前提是你 提交于 2019-12-12 20:24:32
问题 I have been trying to connect to my database using pdo on godaddy with no successs. Initially i got the error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Then i look around the web, found out that i need to change the part to socket. I looked for my socket found it and changed it using unix_socket=/tmp/mysql-1.sock . Now i get the error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql-1.sock'

Yii2 redirect causes blank page

半腔热情 提交于 2019-12-12 19:12:10
问题 Is there any server/hosting setting that could cause simple redirect in Yii2 to not work? For example: function actionIndex(){ return $this->redirect('other-page'); } This code ends up with a blank page, no errors or messages are displayed(Error reporting is on), response code is 200 (although Yii2 debugger shows 302). Everything on my website works fine but as soon as code reaches any ->redirect() it just end up with blank page. This happens only on my clients shared hosting (on my local

Setting up PHPMailer using Bluehost account

℡╲_俬逩灬. 提交于 2019-12-12 17:00:21
问题 I tried contacting support from Bluehost but they don't know how to set this up. What I did is first create my email account(VPS account). Then get all the details of my email setting. Email Settings Mail Server Username: notification@website.co Standard (without SSL) Incoming Mail Server: details here Supported Ports: 143 (IMAP), 110 (POP3) Outgoing Mail Server: details here Supported Port: 26 (server requires authentication) So on my PHPMailer code I added this: $mail->SMTPAuth = true;

Upgrading Olson tz database natively implemented in PHP

早过忘川 提交于 2019-12-12 09:41:56
问题 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 running on my development machine and my web host to use more up-to-date tz data instead of the older data already on them. This isn't as simple as just upgrading PHP, since even the newest versions of PHP won't necessarily have the absolute latest