Meta 13 Project Blog
  • Home
  • Links
  • CMS
  • CSS
  • Ecom
  • Email
  • Flash
  • Google
  • HTML
  • Javascript
  • OS
  • PHP
  • SEO
  • SQL
Browse: Home / Plesk

Plesk

Allow Cron Jobs to access PHP/WGet/FTP in Plesk 10.1+

By Jason on May 8, 2012

As of Plesk 10.1 cron jobs have been restricted to a chroot jail that prevents it from using many linux commands.  Run the following as root and it will function like the old Plesk used to.

/usr/local/psa/bin/server_pref -u -crontab-secure-shell "/bin/sh"

Posted in Linux | Tagged Cron, Plesk, wget | Leave a response

Force Plesk to use vhost.conf for a single domain.

By Jason on March 29, 2012

/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain mydomain.com

A lot easier than creating a temporary protected directory, don’t you think?

EDIT:

On SB4 use:

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=mydomain.com

Posted in Linux | Tagged apache, Plesk, vhost | Leave a response

Create FTP account in non-standard directory on Plesk

By Jason on November 23, 2011

Stolen from http://kb.parallels.com/415

Is it possible to create FTP accounts to go to a certain directory on the server that is not your_domain/your_name/? We need to be able to create FTP accounts that only go to a specified directory.

Resolution
This feature is planned to be implemented in the future Plesk versions. This time it can only be done manually.

Login to the server as ‘root’ user and create a system user (for example USER_NAME) with home directory you need, for example:

# /usr/sbin/useradd -d $HTTPD_VHOSTS_D/your_domain/some/location -s /bin/false USER_NAME

Set the password for this user using ‘passwd’ command.

Add this user into ‘psacln’ group:

# /usr/sbin/usermod -G psacln USER_NAME

The user will be ‘chroot’-ed to his home because ‘psacln’ group is listed in /etc/ftpchroot. Set read/write permissions for this user on his home directory, for example:

# chmod 755 $HTTPD_VHOSTS_D/your_domain/some/location
# chown USER_NAME:psacln $HTTPD_VHOSTS_D/your_domain/some/location

And set execute permission on the domain’s httpdocs folder:

# chmod 751 $HTTPD_VHOSTS_D/your_domain/httpdocs

$HTTPD_VHOSTS_D – have to be replaced with the real path to the Plesk virtual hosts in the all examples above.

Posted in Linux | Tagged FTP, Plesk | Leave a response

Tags

.htaccess Advanced Custom Fields Bower c5 cms Composer Concrete 5 Concrete5 Cron CSS3 Cycle Cycle2 fancybox FancyBox2 Foundation Genesis Google Fonts Google Maps Google Webfonts Google Web Fonts Gravity Forms Grunt html5 HTML5 Boilerplate IE7 iPad iPhone jQuery lightbox Lists Magento Media Queries mobile pdf Plesk PrettyPhoto Responsive SASS SCSS static block Twitter typekit Video WordPress YouTube

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Recent Comments

  • Bryce on Responsive Email Templates
  • Justin on Mail Server Settings (Microsoft365)
  • Justin on Mail Server Settings (Microsoft365)
  • Bryce on Mail Server Settings (Microsoft365)
  • Justin on Mail Server Settings (Microsoft365)

Authors

  • Aaron Huisinga
  • Bryce
  • Darin
  • Jason
  • Josh
  • Justin
  • master
  • Nathan
  • nick
  • Paul

Archives

  • March 2016
  • July 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • September 2014
  • July 2014
  • June 2014
  • May 2014
  • December 2013
  • November 2013

Copyright © 2023 Meta 13 Project Blog. Powered by WordPress and Hybrid.