shared-hosting

How to configure PHP to display detailed errors instead of error 500 page?

痞子三分冷 提交于 2019-12-10 22:13:21
问题 I have a PHP application deployed on my IIS hosting and I am always getting generic IIS "error 500" pages insteady of detailed error pages. I understand I need to modify some php.ini file (from this question). It seems that display_errors is set correctly: echo ini_get('display_errors'); outputs 1 . I have also tried setting display_errors and error_reporting in the function that causes the error (I know the particular function is the problem because I manually modified it). function

403 Forbidden Laravel on shared hosting

旧城冷巷雨未停 提交于 2019-12-10 21:41:29
问题 I have a shared hosting and I'm trying to make my laravel project works on it, I'm using voyager to the admin panel. I put my app public folder inside the /public_html and the rest of the project on the same level of the /public_html, so it looks like this: .bash_history .bash_logout .bash_profile .bashrc .cache .cpanel .htpasswds logs mail app -> my project public_ftp public_html -> where my app public folder is .ssh tmp etc ... I have managed to work almost everything, but the admin panel

How do I change the umask of a shared docker volume?

Deadly 提交于 2019-12-10 20:21:37
问题 This is related to "https://stackoverflow.com/questions/36477636/how-do-i-implement-a-shared-hosting-like-service-with-docker". I am trying to setup a bunch of apache-php containers that should be able to rw to the docroot, and one single sftp container that should also be able to rw to the same directory. So, the plan is to create a shared volume, and mount it inside both containers (obviously in different places when it comes to the sftp container). I modified the official php:7-apache

ASP.NET MVC membership - user being logged out frequently - don't know why

大城市里の小女人 提交于 2019-12-10 13:06:26
问题 I have an ASP.NET MVC 4 web application. Running locally, it works fine, but on the web host (which uses shared hosting), the logged on user is frequently logged out by being redirected back to the home page. In most cases, the user is logged out after performing only a few actions. The web host suggested that my application could be using up too much memory but I used a program to profile the memory usage and I confirmed that it wasn't using excessive amounts of memory - in fact the

Performance profiling a .net website with shared,remote hosting

点点圈 提交于 2019-12-10 12:28:33
问题 Having performance issues with my website. I'm relatively new to .net, although I've learned an awful lot over the last few months! I posted this question last night Improving performance when working on Images with ASP.NET in VB From which a comment was posted which got me thinking, and Googling this morning. I'm unclear on how I would actually got about 'performance profiling' my site. I've seen that there are tools built into visual studio if I can replicate the entire site locally, but I

Lucene.NET on shared hosting

风格不统一 提交于 2019-12-10 11:56:37
问题 I'm trying to get Lucene.NET to work on a shared hosting environment. Mascix over on codeproject outlines here how he got this to work on godaddy. I'm attempting this on isqsolutions. Both examples he posted run fine on my local machine and both throw the same error on the the shared hosting server: Compiler Error Message: CS0246: The type or namespace name 'Lucene' could not be found (are you missing a using directive or an assembly reference?) Line 1: <%@ Page Language="C#" %>Line 2: Line 3

Shared hosting providers supporting RavenDB [closed]

折月煮酒 提交于 2019-12-10 01:41:56
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I setup an AppHarbor application only to find out that it does not support embedded RavenDB. It looks like it may be coming soon to

PHP: Using browscap.ini on shared host. - ini_set() failing

狂风中的少年 提交于 2019-12-08 16:25:22
问题 I'm trying to use get_browser() , unfortunately my page is on a shared host, and I have no access to php.ini. I have downloaded the latest version of browscap.ini and placed in my document root. I have then added the following:- if (!ini_set('browscap', '/home/ private stuff /browscap.ini')) { echo "Failed to set browscap"; } else { echo "browscap = [" . ini_get('browscap') . "]"; } exit(); But this fails, (nb: the echo statement for the failed condition always shows [] - even if I didn;t

cakephp: configuring cakephp on shared host justhost

老子叫甜甜 提交于 2019-12-08 13:04:06
问题 I tried to configure cakephp on justhost for my addon domain and i'm getting 404 not found error when I go to www.merryflowers.com/pages/home Can someone please help me out? The following are the changes I made in /webroot/index.php and /webroot/test.php if (!defined('ROOT')) { define('ROOT', DS.'home'.DS.'xxx'.DS.'public_html'); } if (!defined('APP_DIR')) { define('APP_DIR', 'merryflowers'); } if (!defined('CAKE_CORE_INCLUDE_PATH')) { define('CAKE_CORE_INCLUDE_PATH', DS.'home'.DS.'xxx'); }

How To Programmatically Create MySQL Databases on Shared Linux Hosting Plans

独自空忆成欢 提交于 2019-12-08 12:46:10
问题 Is there a sort of reliable way to programmatically create MySQL databases and MySQL users on shared Linux hosting plans from a PHP page? For instance, accessing cpanel or phpmyadmin through an API or hook if I know my cpanel access information and/or my FTP information? Occasionally I see this with some sites and products but don't know how they do it. 回答1: Thanks to @Alex C who got me on the right track. The following will work with many shared hosting plans, but you'll want to check with