exim_dumpdb /var/spool/exim retry | grep some@mail
R:some@mail:
exim_fixdb /var/spool/exim retry
R:some@mail:
D
q
exim_dumpdb /var/spool/exim retry | grep some@mail
R:some@mail:
exim_fixdb /var/spool/exim retry
R:some@mail:
D
q
perl /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi
/usr/local/cpanel/etc/init/stopcphulkd
also you can disable it:
rm -f /var/cpanel/hulkd/enabled
psql
select * from pg_stat_activity;
Passwords are not encrypted, so:
su – postgres
psql
\l
\c DB_NAME
SELECT login, password FROM res_users WHERE login = ‘admin’;
or
SELECT login, password FROM res_users;
If you see this message on OpenVZ container. if sh exists or this is symbolic link, usually it means you have some damaged binary files. You can take them from OS template.
/usr/local/cpanel/cpanel -V
if is stable or released:
grep CPANEL /etc/cpupdate.conf
yum install fcgi-devel
vi Gemfile.local
gem ‘fcgi’
yum install fcgi-devel
gem install fcgi
bundle install –without development test
If you trying install mysql on fresh Debian VPS (OpenVZ template):
Stopping MySQL database server: mysqld.
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found
ATTENTION: An error has occured. More info is in the syslog!
/var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found
dpkg: error processing mysql-server-5.5 (–configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
Quick fix:
apt-get install bsdutils
also you can get such errors:
dpkg: error processing mysql-server (–configure):
dependency problems – leaving unconfigured
Errors were encountered while processing:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
wget -q -O – checkip.dyndns.org|sed -e ‘s/.*Current IP Address: //’ -e ‘s/<.*$//'
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel source "$HOME/.rvm/scripts/rvm" echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
rvm install 1.9.2
rvm –default 1.9.2
gem install bundler
gem install passenger
passenger-install-apache2-module
vi /usr/local/apache/conf/includes/pre_main_global.conf
LoadModule passenger_module /home/ruby/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /home/ruby/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11
PassengerRuby /home/ruby/.rvm/wrappers/ruby-1.9.2-p290/ruby
PassengerResolveSymlinksInDocumentRoot on
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak-modrails
/usr/local/cpanel/bin/apache_conf_distiller –update
/scripts/rebuildhttpdconf
/etc/init.d/httpd restart
chmod ugo+x ~
chmod ugo+rX -R ~/.rvm
Using Rails apps:
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source "$HOME/.rvm/scripts/rvm"
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
rvm install 1.9.2
rvm –default 1.9.2
gem install rails
rails new hello_world
Gems to the vendor/ directory:
bundle install –deployment
bundle install –path vendor/bundle
Pointing a site to Rails:
mv ~/public_html ~/public_html.bak
ln -s ~/hello_world/public ~/public_html
alternatively you can put Rails into a subdirectory (or subdomain, add-on domain, etc.):
ln -s ~/hello_world/public ~/public_html/hello-world
environments:
export RAILS_ENV=production
echo “export RAILS_ENV=production” >> ~/.bashrc
rake assets:precompile
touch tmp/restart.txt
author of that instructions is Dave James Miller
vi /etc/php/fpm/pool.d/www.conf
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
mv -v /var/cpanel/hulkd/enabled /tmp/
service cpanel restart
ioncube_encoder5 /projects/myproject –into /encoded-projects
ioncube_encoder5 –with-license key.php –passphrase yourpassphrasehere /projects/myproject –into /encoded-projects
with make_license:
./make_license –passphrase yourpassphrasehere –header-line ‘‘ –property “UserName=’Chuck Norris'”
or
/make_license –passphrase yourpassphrasehere –header-line ‘‘ \
–property “UserName=’Chuck Norris'” –allowed-server example.com,www.example.com