Archive for January, 2010

.htaccess upload_max_filesize ini_set()

I m PHP 5.2.0 / Apache
and I can’t access php.ini

I try to update .htaccess
and added
php_value upload_max_filesize “25M”
php_value post_max_size “25M”

However it will give me “Internal Server Error” More >

Plesk fix .conf files

In case you need to allow access with PHP scripts of a certain virtual host to additional folder(s), you should set up option ‘open_basedir’ for the virtual host with the new path value, splitting the folder names with colons. This action can only be made by a user with root privileges on domains’ vhost.conf or vhost_ssl.conf files (for SSL virtual host). For more information, read the article ‘Including Directives into Configuration File of Web Serve’ in the Parallels Plesk Panel documentation.

Once applied these changes, you should recreate Apache’s configuration files and restart Apache service using the following command in the shell. If the vhost(_ssl).conf file is found, then it will be automatically added to the httpd.include file of the domain:

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

/plesk_installation_directory/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=<domain_name>

B KB MB GB TB Converter

B KB MB GB TB Converter

Have you ever been confused about the number of kilobytes in a megabyte, or in a gigabyte or vice-versa? Now you can convert among bytes and kilobytes and megabytes and gigabytes and terabytes with ease.

http://egret.net/kb__mb.htm

many processes of “executable”

Do you notice if it happens at a particular time everyday?

Cause we’ve discovered that it can be a cron problem. Try disabling all cron jobs and see if it still happens.

Also, be sure to do this:

Go into plesk:

1) Mail server settings

* At Relay Options:
2) Uncheck the authentication required: “POP3 lock time”

* Disable greylisting:
3) /usr/local/psa/bin/grey_listing –update-server -status off

http://forum.parallels.com/showthread.php?t=90550

How To scp, ssh and rsync without prompting for password

How To scp, ssh and rsync without prompting for password

Whenever you need to use scp to copy files, it asks for passwords. Same with rsync as it (by default) uses ssh as well. Usually scp and rsync commands are used to transfer or backup files between known hosts or by the same user on both the hosts. It can get really annoying the password is asked every time. I even had the idea of writing an expect script to provide the password. Of course, I didn’t. Instead I browsed for a solution and found it after quite some time. There are already a couple of links out there which talk about it. I am adding to it… More >

Javascript confirm Yes/No

Use a javascript confirm box to ask the user if they want to delete
More >

Rsync Examples Scripts

http://www.mikerubel.org/computers/rsync_snapshots/

https://calomel.org/rsync_tips.html

http://rootprompt.org/article.php3?article=8976

http://www.comentum.com/rsync.html

Mysql Select within Select (sel into sel)

SELECT
clients.id,

(SELECT Count(clients_job.id)

FROM
clients_job

WHERE
clients_job.client_id =  clients.id   ) AS JobCounter

FROM 
clients

ORDER
BY EPONIMIA ASC