shared-hosting

Where on my server is the PHP version that serves web pages?

时间秒杀一切 提交于 2019-12-12 03:33:02
问题 I'm on a shared server. When I save a script with phpinfo() and open it in the browser, the script tells me "PHP Version 5.6.18": When I visit my server through SSH and look in /usr/local/bin , ls shows me PHP versions from 4 to 5.5, but no version 5.6: When I search for PHP with which php , I get the following (with results from ... -v in parentheses): /usr/bin/php (4.4.9) /usr/bin/php4.4 /usr/bin/php5.2 /usr/bin/php5.4 /usr/bin/php5.5 /usr/bin/php5.4-cli /usr/bin/php5.5-cli /usr/bin/php4.4

zend project on shared hosting?

∥☆過路亽.° 提交于 2019-12-12 02:40:11
问题 I created a zend project on localhost on ubuntu OS and it is working perfectly on my local system. Now I want to upload this project online. I purchased domain name and hosting. I got following directory structure to upload files. /www.example.com/web/content/ So www.example.com is pointing to /www.example.com/web/content/ folder. This directory structure is unchangeable. I put all public folder files to /www.example.com/web/content/ and application , library and tests folders into /www

On this workflow, does git command needs to be installed on the production server?

会有一股神秘感。 提交于 2019-12-12 02:07:47
问题 Developer A - Local Repository --> pulls/push ---> github Developer B - Local Repository --> pulls/push ---> github Capistrano would remain on our developers' machines, however we will define :repository to point to our GitHub project: set :repository, "git@github.com:myuser/myproject.git" # My clone url Developer A OR Developer B must be allowed to deploy committed files to the production machine. Question 1) Those committed files will come from one of the Developers machines, correct?

HTTP Error 403.0 - ModSecurity. Action You do not have permission to view this directory or page

北慕城南 提交于 2019-12-12 00:43:40
问题 I have an ASP.NET Website and hosted on shared hosting and everything is working fine but recently I had requirement to call one page of website from php script via cURL but while executing php script via php-cgi.exe I am getting below error; HTTP Error 403.0 - ModSecurity Action You do not have permission to view this directory or page. Note I am able to browse that page from my browser without login to website. What can be the possible cause for this error and could someone guide me to

Advice for Getting mod_rewrite to Work

坚强是说给别人听的谎言 提交于 2019-12-11 17:19:38
问题 I am trying to make clean URLs. I have written a simple rule on the .htaccess file and I have been told that it should work. However, it does not. I was wondering if it might have something to so with mod_rewrite not being enabled. I am using Network Solutions shared hosting. I called the company and was told that mod_rewrite is enabled by default on the hosting I have. Any advice on how I can check to see if mod_rewrite is enabled? Also, I would appreciate any related advice. Thanks in

How to programmatically communicate with Apache?

别说谁变了你拦得住时间么 提交于 2019-12-11 16:07:43
问题 This question was migrated from Super User because it can be answered on Stack Overflow. Migrated last year . So many web applications these days run on their own microservers, it can be hard to implement them on shared hosting platforms. The apps listen on a dedicated port you can customize or reverse proxy, but shared hosting usually only has 80 and 443 open. Just as an example, the handy web-based editor ICEcoder is a PHP application, so you just drop the files in a directory and away you

How do I shift main domain root to subfolder and prevent access to addon domains from main domain at the same time?

我只是一个虾纸丫 提交于 2019-12-11 13:55:49
问题 Once more I turn to SO when I am at my wits end. A client of mine is running three separate websites on a single hosting plan. What I need to do is shift the main domain contents to a sub-folder and link the main domain to it so that maindomain.com/ actually gets linked to /maindomain/ This i got working with RewriteCond %{HTTP_HOST} ^(www.)?maindomain.com/$ RewriteCond %{REQUEST_URI} !^/maindomain/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$

implement comet with php driven website

时光总嘲笑我的痴心妄想 提交于 2019-12-11 13:41:45
问题 I wanted to know if somebody could explain in somewhat simple terms how I could get started with comet. I am on a shared host environment. What exactly are my possibillity's? From what I have read here sofar, is that php is not the best option., because it is run as a one process per request instead off thread. On another, they talk about sockets. I have also read about facebook and that they run there own comet server written in erlang, but they still have a php website. So how exactly does

The FastCGI process exceeded configured request timeout - Shared Hosting

折月煮酒 提交于 2019-12-11 06:44:31
问题 I'm writing a wordpress plugin which do some time consuming XML file processing in the background. On my machine, it takes at least an hour. It doesn't consume at lot of CPU%, but it's just slow. When I test on my windows based shared hosting, I'm getting "The FastCGI process exceeded configured request timeout". PHP of the hosting is not running in safe_mode. From much searching, I realized that calling set_time_out() does not work when running as CGI under IIS. IIS impose another time limit

C# Graphics.RotateTransform works on localhost, but not on remote server

懵懂的女人 提交于 2019-12-11 03:18:26
问题 It works on my machine... I have a problem with using a C# Graphics method on my ASP.NET web host. I'm combining two map pins into a single image. I load an empty pin image and write a number on top of it. I then combine two of these, having rotated one 15 degrees and the other -15 degrees. It looks fine running through my localhost web server: Expected http://harriyott.com/images/stackoverflow/expected.png I upload this to my shared server, and I get this instead: Actual http://harriyott.com