RSS feed

allow_url_fopen per domain

March 12th, 2009 | Posted in Blog, Linux, Plesk | No Comments

On Plesk you can allow allow_url_fopen per domain by editting the vhost.conf file for that domain and set the php_admin_flag as bellow.


php_admin_flag allow_url_fopen on

Once you have done this, run the Plesk magicwand

/usr/local/psa/admin/sbin/websrvmng -v -a


Plesk domain status codes

December 2nd, 2008 | Posted in Plesk | 4 Comments

List all active domains:

SELECT name FROM domains WHERE status = '0'

List all suspended domains:

SELECT name FROM domains WHERE status = '16'

List all expired (hosting) domains:

SELECT name FROM domains WHERE status = '256'

List all domains with backup/restore in progress:

SELECT name FROM domains WHERE status = '4'

List all domains suspended by client:

SELECT name FROM domains WHERE status = '64'
[ad]


How can I install custom Ruby web applications?

November 29th, 2008 | Posted in Plesk | No Comments

To install on your site an application written in Ruby:

1 On your Home page, under Hosting, click Setup.

2 Select the CGI and FastCGI check boxes, and click OK.

3 Connect to your FTP account, change to the /htdocs directory, and create a subdirectory where the application files will reside. Let’s call this directory your_application, for illustration purposes.

4 Upload the application files to the httpsdocs/your_application directory.

5 Create a file with name .htaccess in this directory, open it with a text editor of your choice and add the following lines into the file:

RewriteEngine On RewriteRule ^$ /public/index.html [L]
RewriteCond %{REQUEST_URI} !^/your_application/public
RewriteRule ^(.*)$ /public/$1 [L] RewriteCond
%{REQUEST_FILENAME} !-f RewriteRule ^(.*)$
public/dispatch.fcgi/$1 [QSA,L]

6 Save the file.

7 Remove the file your_application/public/.htaccess

8 Open the file your_application/public/dispatch.fcgi with a text editor and put the following lines there: #!/usr/bin/ruby

9 Save the file.

Now the web application will be accessible at the following URL: http://yourdomain.com/your_application.




Categories