file=/etc/webmin/miniserv.pem
openssl req -x509 -newkey rsa:2048 -keyout $file -out $file \
-days 3650 -nodes -subj \
"/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com"
openssl x509 -x509toreq -in $file -signkey $file >> $file
/etc/init.d/webmin restart
Monthly Archives: June 2016
linux chattr recursive
chattr -i -R *
directadmin enable opcache
cd /usr/local/directadmin/custombuild
./build set opcache yes
./build opcache
directadmin update mysql 5.6 or mariadb
cd /usr/local/directadmin/custombuild
./build set mariadb 5.5
./build set mysql_inst mariadb
./build set mysql_backup yes
./build update
./build mariadb
Where mariadb can be 5.5, 10.0, or 10.1.
./build php n
directadmin monitor services
vi /usr/local/directadmin/data/admin/services.status
directadmin php 7
cd /usr/local/directadmin/custombuild
./build set php1_release 7.0
./build update
./build php d
php -v
GlassFish HTTP Status 500 – Internal Server Erro j_security_check no error logs
/etc/init.d/glassfish restart
Waiting for the domain to stop .
Command stop-domain executed successfully.
Waiting for domain1 to start ……….
Successfully started the domain : domain1
domain Location: /opt/glassfish4/glassfish/domains/domain1
Log File: /opt/glassfish4/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
Secure Admin must be enabled to access the DAS remotely
asadmin --host localhost --port 4848 enable-secure-admin
directadmin DATABASE ERROR: CONNECTION FAILED! Unable to connect to the database!
cat /usr/local/directadmin/conf/mysql.conf
to get the login/password for mysql.
Type:
mysql -uda_admin -ppassword
where da_admin/password are the login/pass output from the mysql.conf.
Once in mysql, type:
DROP DATABASE da_roundcube;
quit
once the db is dropped and you’re out of mysql, type:
cd /usr/local/directadmin/custombuild
./build roundcube
Opening and ending tag mismatch: devices line 35 and graphics
error: Failed to create domain from /etc/libvirt/qemu/1003.xml
error: (domain_definition):76: Opening and ending tag mismatch: devices line 35 and graphics
You need just edit virtual server config file and fix errors.
yum list repo packages
[root@srv ~]# yum --disablerepo="*" --enablerepo="mysql56-community" list available
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Available Packages
mysql-community-bench.x86_64 5.6.31-2.el6 mysql56-community
mysql-community-client.i686 5.6.31-2.el6 mysql56-community
mysql-community-client.x86_64 5.6.31-2.el6 mysql56-community
mysql-community-common.i686 5.6.31-2.el6 mysql56-community
mysql-community-common.x86_64 5.6.31-2.el6 mysql56-community
mysql-community-devel.i686 5.6.31-2.el6 mysql56-community
mysql-community-devel.x86_64 5.6.31-2.el6 mysql56-community
mysql-community-embedded.i686 5.6.31-2.el6 mysql56-community
mysql-community-embedded.x86_64 5.6.31-2.el6 mysql56-community
mysql-community-embedded-devel.i686 5.6.31-2.el6 mysql56-community
mysql-community-embedded-devel.x86_64 5.6.31-2.el6 mysql56-community
mysql-community-libs.i686 5.6.31-2.el6 mysql56-community
mysql-community-libs.x86_64 5.6.31-2.el6 mysql56-community
mysql-community-libs-compat.i686 5.6.31-2.el6 mysql56-community
mysql-community-libs-compat.x86_64 5.6.31-2.el6 mysql56-community
mysql-community-server.x86_64 5.6.31-2.el6 mysql56-community
mysql-community-test.x86_64
openvz wrong disk space
vzctl stop
du -sh /vz/private/
vzquota show
vzquota drop
vzctl start
linux show partition style system options
tune2fs -l /dev/sda1 | grep feature
The configuration file now needs a secret passphrase (blowfish_secret)
cd /usr/share/phpMyAdmin/ or where phpmyadmin was installed
cp config.sample.inc.php config.inc.php
vi config.inc.php
Set $cfg[‘blowfish_secret’] = “”
linux tmfs ramfs /tmp
mount -o mode=1777,nosuid,nodev -o size=1024m -t tmpfs tmpfs /tmp