Category: Backend

  • Fix for slow php mail() function – ubuntu – sendmail

    hostname sudo vi /etc/hosts // Change localhost [hostname (whatever your hostname is)] // To 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 = 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…

  • Install an FTP Server – fedora

    sudo yum install vsftpd cd /etc/vsftpd sudo vi vsftpd.conf Change: anonymous_enable=NO Add: #Replace with your IP pasv_enable=YES pasv_min_port=14000 pasv_max_port=14050 port_enable=YES pasv_address= pasv_addr_resolve=NO sudo service vsftpd start sudo chkconfig vsftpd on sudo /etc/init.d/vsftpd restart

  • 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

  • Setup .htaccess (Fedora)

    Command (Fedora) sudo vi /etc/httpd/conf/httpd.conf Change AllowOverrider to “All” for html directory Change for both and the one outside, then run sudo apachectl -k restart sudo service httpd restart Finally, make changes to htaccess (look at the bottom of permalinks page in WP)

  • Setup Php-MySql Server

    Commands (Fedora) sudo yum update sudo su yum install httpd service httpd start yum install php php-mysql yum install mysql-server service mysqld start mysqladmin -uroot create [name of sql database] mysql_secure_installation [enter your choosen password] y y y y

  • Install wxWidgets

    Commands (fedora) sudo yum install libffi-devel wget sudo tar xvfJ glib-2.43.4.tar.xz cd glib-2.43.4 sudo ./configure sudo make sudo make install wget sudo tar xvfJ gdk-pixbuf-2.31.2.tar.xz cd gdk-pixbuf-2.31.2 sudo ./configure sudo make sudo make install wget sudo tar xvfJ pango-1.36.8.tar.xz cd pango-1.36.8 sudo ./configure sudo make sudo make install wget sudo tar…

  • 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 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