-
mysql workbench `root`@`localhost` user getting denied access
$ mysql mysql> USE mysql; mysql> UPDATE user SET plugin=’mysql_native_password’ WHERE User=’root’; mysql> FLUSH PRIVILEGES; mysql> exit; $ service mysql restart
-
Fix for slow php mail() function – ubuntu – sendmail
hostname sudo vi /etc/hosts // Change 127.0.0.1 localhost [hostname (whatever your hostname is)] // To 127.0.0.1 localhost localhost.localdomain [hostname] sudo service apache2 restart
-
Setup PHP email function – ubuntu – sendmail
sudo apt-get install sendmail // Proceed to php.ini [mail function] ; Setup for Linux systems sendmail_path = /usr/sbin/sendmail -t sendmail_from = [email protected] [mail function] ; Setup for Windows systems SMTP = smtp.my.isp.net sendmail_from = [email protected]
-
Install an FTP Server (with OpenSSH) – ubuntu
sudo apt-get install vsftpd vi /etc/vsftpd.conf // Uncomment write_enable=YES local_umask=022 chroot_local_user=YES // Add allow_writeable_chroot=YES pasv_enable=Yes pasv_min_port=40000 pasv_max_port=40100 // End sudo service vsftpd restart sudo useradd -m ftpuser -d /var/www/html -s /usr/sbin/nologin sudo passwd ftpuser Continue for openssh encryption sudo apt-get install openssh-server sudo groupadd ftpaccess vi /etc/ssh/sshd_config // Comment Subsystem sftp /usr/lib/openssh/sftp-server // Add Subsystem…
-
Setup .htaccess (Ubuntu)
Commands (Ubuntu) sudo a2enmod rewrite sudo service apache2 restart vi etc/apache2/apache2.conf change AllowOverride None to AllowOverride All (see below) Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all sudo service apache2 restart
-
Install Ejabberd Server
Commands (XMPP) sudo apt-get update && sudo aptitude safe-upgrade sudo apt-get install build-essential sudo apt-get install libncurses5-dev openssl libssl-dev fop xsltproc unixodbc-dev gcc-4.6-base cpp-4.6 libgomp1 libquadmath0 libc6-dev openjdk-6-jdk libwxbase2.8 libwxgtk2.8-dev libqt4-opengl-dev libgtk2.0-dev xsltproc erlang-dev wget http://s3.amazonaws.com/downloads.basho.com/erlang/otp_src_R16B02-basho5.tar.gz tar zxvf otp_src_R16B02-basho5.tar.gz cd otp_src_R16B02-basho5 ./configure && make && sudo make install apt-get -y install ejabberd ejabberdctl register admin…
-
Updating Ubuntu Server
Commands (Ubuntu) # Fetches the list of available updates sudo apt-get update # Strictly upgrades the current packages sudo apt-get upgrade # Installs updates (new ones) sudo apt-get dist-upgrade