plesk

PHP cli command line safe_mode restriction

馋奶兔 提交于 2019-12-06 03:13:04
I'm using the Kohana framework (3.0.9), which generates daily logs. I want to mail the log file if one was made the day before CRON runs the script, but after days trying I can't figure out how to put off safe_mode in PHP CLI modus. When I'm running my script on the web, there is no problem. But I want to run the script as a CRON task on my Plesk 9.5.2 server (or on the command line as root user) I'm getting the following error: ErrorException [ 2 ]: dir(): SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /var/www/vhosts/mydomain.com/subdomains

How to check if server is sending out spam?

為{幸葍}努か 提交于 2019-12-06 02:55:30
问题 I checked my IP address today because I was getting bounced back emails and I see it has been blacklisted on a few lists. I only use my website to send out customer emails and no newsletter emails; so I don't send many emails out. I don't know why my dedicated IP address would be blacklisted; is there a way to check my server running Plesk to see if someone is using my IP address to spam? Thank you! 回答1: prints destination of all email which sent from your server: cat /var/log/maillog | grep

Install additional node versions in Plesk Onyx

让人想犯罪 __ 提交于 2019-12-06 01:15:06
This a guidance not a problem to solve, to help those which have the same issue I had Enable Node support in Plesk Onyx: Install the "Node support" simply from your "update and updates" Plesk interface. Go to your "Node extension" page enable/disable the node versions you need In case you need additional node versions which does not come with the default node support installation: Install the N ode V ersion M anager on your server Install the versions you need e.g. nvm install v4.8.4 Copy paste the node version to plesk cp -R ~/.nvm/versions/node/v4.8.4/ /opt/plesk/node/ Then notify your plesk

Modify document root for nginx proxy under plesk

瘦欲@ 提交于 2019-12-05 20:02:44
I use Plesk with nginx as proxy, which is working good. I installed laravel php framework on a subdomain. the framework provides a direcotry "public" for public files, so I changed document_root with a custom vhost.conf file this way: DocumentRoot "/var/www/vhosts/example.com/laravel.example.com/public" Now apache is aware of this, PHP files working without any problems, but not the static files which are handeled via nginx, I get 404 not found because I must also reconfig the document_root for nginx. If I copy the static files, like css or js on the same dir-level as public it works, but the

How to remove unwanted WWW-Authenticate headers

南楼画角 提交于 2019-12-05 14:12:30
From an MVC app, I'm sourcing an iCal subscription with authentication following the answer to this SO question: Serving an iCalendar file in ASPNET MVC with authentication The iCal stream is being created dynamically from events in the DB using the DDay.iCal library. This solution works fine on the local development server: both OSX Calendar and Outlook can subscribe to and receive updates from the app. However, on the shared server at my web host, the authentication fails for both Calendar and Outlook. That is, they both keep asking me for user & password after the (correct) ones fail. EDIT:

PHP post_max_size local value overridden by master value on Plesk / IIS?

做~自己de王妃 提交于 2019-12-05 12:49:18
I'm running into a strange issue when uploading large files via PHP (through Drupal, though that's not the issue). Basically, my file uploads fail due to post_max_size limits being reached, even though the local directive is set to 96M, and the file is 25M. I've ensured everything else is correct, including max_input_time , max_upload_filesize , and the IIS FastCGI idle time. All these are plenty large and not the issue. I am overriding the post_max_size directive through Plesk, which (I believe) stores the change in a registry value. Running phpinfo() on the domain shows the correct local and

Can't Access Plesk Admin Because Of DOS Attack, Block IP Address Through SSH?

江枫思渺然 提交于 2019-12-05 08:25:50
I can't access Plesk Amdin because of DOS attack; can I block a hostname or IP address through SSH? If so, how would I be able to do this? Thank you! If you have iptables you can block it using simple rule: iptables -I INPUT --source 1.2.3.4 -j DROP This rule drops packets coming from IP 1.2.3.4. Probably the easiest is to SSH to your box use vim to and add the following to the top of your .htaccess file in the root of your domain ( /var/www/vhosts/yourdomain.com/httpdocs/.htaccess ): deny from 12.345.67.89 Obviously replace the IP address with the one you want to block. Repeat this for any

Plesk 11 forcing redirect to non-www

有些话、适合烂在心里 提交于 2019-12-04 20:51:44
问题 I have ordered the new dedicated server with Plesk 11 on it. Moved my websites from old server to the new one but had some issue on opening websites. Using .htaccess, I force the client to use the website with www. Plesk is doing contrary by default: www to non-www. A redirect loop as result ... My question: how can I disable adding Plesk these rows by default: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^www.example.com [NC] RewriteRule ^(.*)$ http://example.com$1 [L,R

how to solve Keyword not supported: 'data source'

自闭症网瘾萝莉.ら 提交于 2019-12-04 04:56:57
问题 I uploaded my website( that is programmed with asp.net mvc and entity framework 5 ) yesterday and wrote this connection string in the web.config file of the host root ( control panel is plesk onyx) I tried changing it to SqlCLient ,Removing some tags, and so many other things but no change it return error: keyword not supported: 'data source' when I remove data source it return keyword not supported 'initial catalog' and so on thanks for your attention <add name="ShopDBEntities"

Subversion web interface [closed]

荒凉一梦 提交于 2019-12-03 03:59:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I have recently installed Subversion onto a Linux server (CentOS) and everything works great. I am wondering if there are any web interfaces available for managing the repositories i.e. create / delete repositories, manage users and permissions, view revision history, etc. The idea is that I can do everything