Posts

Image
How to Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6 About Lemp LEMP stack is a group of open source software to get web servers up and running. The acronym stands for Linux, nginx (pronounced Engine x), MySQL, and PHP. Since the server is already running CentOS, the linux part is taken care of. Here is how to install the rest. Step One—Install the Required Repositories We will be installing all of the required software with Yum. However, because neither nginx nor php-fpm are available straight from CentOS, we need to download two extra repositories first. sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm Step Two—Install MySQL The next step is to begin installing the server software, starting with MySQL and dependancies. sudo yum install mysql mysql-server Once the download is complete, restart MySQL: sudo /etc/init.d/mysqld res...
Image
External Proxy Server for Mikrotik - fazar.net External Proxy Server for Mikrotik Mikrotik routerboard has a built-in proxy in it, but it has main constraint : very limited storage capacity. Therefore, most network administrators whom using mikrotik will use an external proxy to overcome this constraint. Here you can found an easy ways to implementing external proxy server for Mikrotik. Squid is the most widely used proxy daemon for linux (including its derivative such as lusca). Some several advantages in the implementation of external proxy are : Easy to adjust the configuration to suite your needs The use of access control lists (ACLs) that can be used for specific purposes Squid (especially version 2.7) can be “armed” with a url redirector. In some condition, url redirector can be used to force squid to cache dynamic content (such as Youtube videos). Greater storage capacity as the general computer or server use the harddisk as data storage. In this p...
How To Remove Ubuntu’s Password Keyring UPDATE: This post is almost 2 years old now and the method described below is somewhat obsolete (but still works). Borrowing from the comments posted below, do the following to remove the keyring in a more simple fashion: 1) Go click Applications > Accessories > Passwords and Encryption keys 2) The should be entries there listing an array of keyring password. 3) Right click on them and select change password 4) Enter the old password if you have one then leave the new password blank. (A warning message should appear) I’ve not done this personally (I haven’t had to) but if I’m guessing correctly, the “warning message” mentioned above in step 4 is likely the same warning message pictured below, asking if you are sure you want to use “Unsafe Storage”. You can read more about what this means below. —————-[Begin old post]—————- I would have made the title of this post “How to remove the Keyring password manager in Ubuntu Linux” b...
Installing & Configuring VSftpd Installing & Configuring VSftpd Applicable to Centos Versions: Centos 5.x Centos 6.x Requirements Explanation of requirements. Root access to your server Server running Centos 5.x or 6.x Doing the Work Basic description of what will be done and what is expected. Install VSftpd and add a user: yum install vsftpd useradd ftpuser passwd ftpuser Configure VSftpd: vi /etc/vsftpd/vsftpd.conf Change these options to your liking, when finished making any changes here, restart the vsftpd service so they take effect. # Example config file /etc/vsftpd/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all compiled in defaults. # # READ THIS: This example file is NOT an exhaustive list of vsftpd options. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's # cap...
Image
Native VLAN Mismatches   Error#1   Lets assume that one of the workstations on the network (PC 5) cannot connect to the internal web server WEB/TFTP, lets use the figure below as an example of a switched network, the first place you start will be at the Switch 2 to check if VLANs are properly configured. Looking at the diagram, switch port fa0/3 on Switch 2 is configured as a trunk port.                                                                                                   ...
 Daloradius server config #yum -y update #reboot #yum -y install wget vim ntp man #ntpdate pool.ntp.org #yum -y install httpd mysql mysql-devel mysql-server php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc \ #yum -y install freeradius freeradius-mysql freeradius-utils #setenforce 0 chkconfig httpd on chkconfig mysqld on /etc/init.d/httpd start /etc/init.d/mysqld start #mysql_secure_installation  mysqlpwd #####Disallow root login remotely? [Y/n]n#####press 'n' # iptables -F # vi /var/www/html/test.php <?php phpinfo(); ?> PHPmyadmin cd /var/www/html/ wget your-phpMyadmin.tar.gz tar -zxvf your-phpMyadmin.tar.gz mv your-phpMyadmin phpmyadmin cd phpmyadmin cp config.sample.inc.php config.inc.php vi config.inc.php $cfg['Servers'][$i]['auth_type'] = ¡®http¡®; #/etc/init.d/httpd restart #vi /etc/raddb/users testuser Cleartext-Password := "testpassword" #radiusd -X #radtest testuser testpassword localhost 1812 testing123 ####...