plesk

How to connect MSSQL from PHP 7, Plesk 12.5 installed on CentOS 7

末鹿安然 提交于 2020-01-07 00:36:28
问题 My Plesk 12.5 installed on CentOS 7 and supporting multiple php versions in same time. I have successfully installed pdo_dblib driver for php version 5.4.16. Does anybody knows how to install similar driver for php 7. I have PDO enabled on php7 and support PDO drivers mysql, odbc, pgsql, sqlite. How I can add mssql. I found this links library I need php70w-pdo_dblib but how I can installed? question on the plesk site 回答1: Thanks everybody for the help. I have resolved my problem by simply

403 Forbidden: nginx is blocking default page

ε祈祈猫儿з 提交于 2020-01-06 06:58:26
问题 If I go to my website example.com I get an 403 Forbidden error from nginx but not on example.com/index.html (the indexfile is default). I use Plesk Onyx 17.0.17 on CentOS 6.9 . Every other file in my webspace is loading correctly. Only on the clear domain example.com it is not working. I have the default nginx configuration. https://example.com = 403 Forbidden; https://example.com/index.html = working 回答1: I solved the problem. I changed from FPM to FastCGI in the PHP-Settings (Plesk). Plesk

getting javascript 'Sys' is undefined error

ⅰ亾dé卋堺 提交于 2019-12-31 01:45:30
问题 On the developement machine my website is working fine but I am getting javascript 'Sys' is undefined error on hosting server and my AJAX is not working. I have make a sample page and scriptmanager on it, Please look into this. http://nexapps.com/default2.aspx button and textbox is in AJAX updatepanel, but when hit to button page is full postback. Note: hosting server--IIS7, but my other websites are working fine on the same server Thanks 回答1: Sounds like your web.config, see if any of this

Setting up cron task in Plesk 11

蓝咒 提交于 2019-12-30 04:03:11
问题 I'm trying to setup a cron task in Plesk to run a short script every 5 minutes, I've just moved from a managed hosting account to a full access Plesk VPS, and I'm a little lost on a couple of things, this one in particular, when I go to Server > Scheduled Tasks I get a list of 'system users' as below, but I'm not sure under which user to make the cron task, any ideas? adm apache bin daemon ftp games gopher .. going all the way down to webalizer The cron script path is below if that's relevant

Run a Perl script in PHP - Plesk 11

与世无争的帅哥 提交于 2019-12-25 00:29:02
问题 How can I run a a Perl script in every page of the server? I put the code at /var/www/cgi-bin , now I need the correct the code to run it. Where should I place it. I have added this code to the httpd.conf: Action add-footer /cgi-bin/script.cgi AddHandler add-footer .htm .htm and on the site I have added the code script. If the page is .html the code runs but is the page is PHP the code does not run. I have tried this but is does not work, in works on HTML files but not in PHP <Directory / >

To convert the extension of a file to the different directory by a ffmpeg command

社会主义新天地 提交于 2019-12-24 22:41:24
问题 The command below is to convert from mp4 file to jpg file with the same file name in the same directory, .../httpdocs/save/. [root@server-xxxxx-x ~]# for i in `find /var/www/vhosts/xxxxxx.com/httpdocs/save/ -type f -name "*.mp4"`; do ffmpeg -i $i `echo $i | sed -En "s/.mp4$/.jpg/p"`; done Now, I need to convert from, .../httpdocs/save/ to the different directory, .../httpdocs/file/, how should I change the command above? I'd appreciate if anyone could help me out. ffmpeg version 2.2.2 回答1:

Hosting a selenium app on GoDaddy. “This program is blocked by group policy”

孤人 提交于 2019-12-24 08:23:14
问题 I have built a standard ASP.NET MVC (.NET 4.52) app and hosted it with GoDaddy on their Plesk hosting. It calls a class that uses Selenium, I'm using PhantomJS as the web client. In my services controller that calls the class that references Selenium I get the error: [Win32Exception (0x80004005): This program is blocked by group policy. For more information, contact your system administrator] System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) +1900 System

Plesk Windows deploy node.js

て烟熏妆下的殇ゞ 提交于 2019-12-24 01:39:05
问题 I have created an Angular project with Node.js as a backend. This is the server file structure: Home directory - httpdocs - node-hm - dist - browser(folder) - server (folder) - server.js - package.json - web.config I have managed to "npm install" from the Node.js menu in plesk. Tried to: change the Application Startup File to "dist/server.js". change document root to "node-hm/dist" folder. copy dist file to "node-hm" - only the index is loaded, other files like CSS won't load What am I

Running Cronjob from a specific directory

纵饮孤独 提交于 2019-12-23 03:37:10
问题 I created a php script for generating RSS feeds which is to eventually be run via a Cronjob. All the php files and the resulting RSS xml will be within a sub folder in a website. The php script runs fine on my local dev if I use terminal or the browser while within the same directory on my local development machine. e.g. php /Library/WebServer/Documents/clientname/siteroot/rss/dorss.php works fine as does navigating to the dorss.php file in Chrome. The CronJob has executed though with errors

Apache RewriteLock alternative using PHP?

最后都变了- 提交于 2019-12-23 03:02:42
问题 My server is running CentOS under Plesk so editing my httpd.conf to add a Rewritelock entry is not an option as I understand it. A RewriteLock entry is also not allowed in a vhost.config either, so I think I'm stuck looking at an alternative as decribed here. As a test I am successfully using this approach, which is slightly modified since my entries are in my vhost.conf. I also added my attempt at locking the file: #!/usr/bin/env php <?php /* Extra lines to add to vhost.conf: RewriteEngine