plesk

Downloading files outside the webroot

[亡魂溺海] 提交于 2019-12-12 12:24:16
问题 OK, firstly apologies as I realise that this is a topic which has been covered many times before - believe me I know, I've read all of the previous questions and answers and still can't get this to work. I have a folder containing downloadable files. For security purposes I've located this file outside the webroot. However, despite my best efforts, I can't get my php script to download the file. I'm using a Linux VPS Apache Server using Plesk 11. The (simplified) file structure is as follows.

Plesk and Container with Subdomains

痞子三分冷 提交于 2019-12-12 05:54:01
问题 How is it possible to setup a subdomain in Plesk to redirect the Request to a container on the system but with a different port. Example: JBoss is running on port 8070 and domain.com:8070 shows the application. Now I want to add a subdomain to jboss.domain.com which points to domain.com:8070. I don't need just a redirect. I need a reverse proxy like nginx...but I don't know the right solution. Any suggestions? 回答1: I'm going to answer the question by myself ;) At first you have to install mod

Payment Gateway Response Page Displays empty values in VPS Hosting

守給你的承諾、 提交于 2019-12-12 04:25:07
问题 I was integrating a Test Payment Gateway Kit of IDBI Bank(PHP KIT), The Test Kit is working fine But response page displays all the values as empty and this happens in Godaddy VPS Hosting for windows but when the same code is put in shared hosting it works fine without any problem and i'm able to receive the response values and display it to the user , i'm literally confused any help/suggestion would be gratefull 回答1: Think the cause is SSL connection issue. PHP on windows doesn't use OS CA

Server Error in '/' Application (Configuration Error)

蓝咒 提交于 2019-12-12 03:45:23
问题 I;m getting this error message in my website when I try to use my website login screen. An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. ** Source File: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config Line: 284 ** **Version Information: Microsoft .NET

Java: Class -Xmx1g not found [duplicate]

≯℡__Kan透↙ 提交于 2019-12-12 03:26:25
问题 This question already has answers here : Error: Could not find or load main class –Xmx1G (2 answers) Closed 2 years ago . I am trying to run a Program called "YouTrack" on my server. It did always work, but after the server restarted i am getting an error message when i want to start YouTrack. Class -Xmx1g could not be found. I am executing this command: java –Xmx1g –XX:MaxPermSize=500m –Djava.awt.headless=true –jar youtrack-6.5.16932.jar 8112 My system: ubuntu 14.04 Plesk java version "1.7.0

PHP Cron Problems - using plesk: dynamic library, open_basedir

萝らか妹 提交于 2019-12-12 02:29:01
问题 I entered the following command through plesk (control panel) crontab, to run a php file once an hour: php httpdocs/cron/script.php And I am getting the following 2 error messages (once an hour, to my email): PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/http.so' - /usr/lib/php/modules/http.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: require_once(): open_basedir restriction in effect. File(../include

Unusual HTTP headers in the Plesk API

…衆ロ難τιáo~ 提交于 2019-12-12 01:00:03
问题 The documentation for the Plesk API* gives the following cURL function. function curlInit($host, $login, $password) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://{$host}:8443/enterprise/control/agent.php"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTPHEADER, array("HTTP_AUTH_LOGIN: {$login}", "HTTP

How to configure gitolite for a single domain on Plesk

不羁岁月 提交于 2019-12-11 15:59:56
问题 How to configure the gitolite on a plesk panel single domain. When I use a /bin/bash user created by plesk, the home folder becomes /var/www/vhosts/{user}/ Then after install gitolite there, the user still not using the $HOME/bin/ folder to find the gitolite binary, and uses the system binary, so always when I try to clone the gitolite-admin come's a empty directory. How to configure the plesk ssh domain user to use the $HOME/bin folder to access the gitolite repo and it binaries? I'm using

Plesk website via local IP

非 Y 不嫁゛ 提交于 2019-12-11 14:30:16
问题 I run Plesk Panel on my local Windows web server which works just fine but I want to add a website that will only be used on my local network. I have added it in the usual way and it works fine via it's domain however I want to know if it's possible to execute it via a local IP instead of the domain name. The main reason for this is that I hope it will speed up access for local users by avoiding DNS etc. So currently it's: http://subdomain.domain.com but I want to use: http://123.123.123.123

php cannot load pecl http extension

南笙酒味 提交于 2019-12-11 14:06:35
问题 I have installed pecl_http on a PLESK server (which seems to be successful) but for some reason, the http extension will not load into PHP. var_dump(extension_loaded("http")); gives me bool(false). pecl info pecl_http gives me a lot of info and if I run php -me http is also listed. php -i | grep "http_request" gives me: http_request => N/A => 0 => 0 http_request_datashare => GLOBAL => 1 => 0 http_request_pool => N/A => 0 => 0 and if I run pecl run-tests -p pecl_http I get a lot of FAILs and I