Browsing articles from "July, 2013"
Jul
30
2013

How to Install and Setup Postfix on Ubuntu

Install Postfix Postfix can easily be installed through apt-get: sudo apt-get install postfix During the installation, you will see a dialogue box appear, asking you which kind of installation you would prefer. Select “Internet Site”. Follow up by entering the name of your domain. Once Postfix is installed there are a few steps that need to be taken before it is fully functional. Configure Postfix Once Postfix is installed, go ahead and open the main […]

Jul
30
2013

Installing Bugzilla 4.0 with MySQL on Ubuntu

Install Perl Check the version of Perl you have installed on your machine. $ perl -v Bugzilla runs with Perl 5.8.1 or higher. If you don’t have Perl installed on your machine, install it. $ sudo apt-get install perl Install MySQL  Check the version of MySQL you have installed on your machine. $ mysql –version Bugzilla runs with MySQL 4.1.2 or higher. If you don’t have MySQL installed on your machine, install it. $ sudo […]

Jul
20
2013

How to Install Linux, Apache, MySQL, PHP on Ubuntu

Step One—Install Apache Apache is a free open source software which runs over 50% of the world’s web servers. To install apache, open terminal and type in these commands: sudo apt-get update sudo apt-get install apache2 That’s it. To check if Apache is installed, direct your browser to your server’s IP address (eg. http://12.34.56.789). The page should display the words “It works!” like this. How to Find your Server’s IP address You can run the following […]

Jul
20
2013

Install phpMyAdmin on Ubuntu Linux

The easiest way to install phpmyadmin is through apt-get: sudo apt-get install phpmyadmin During the installation, phpMyAdmin will walk you through a basic configuration. Once the process starts up, follow these steps: Select Apache2 for the server   Choose YES when asked about whether to Configure the database for phpmyadmin with dbconfig-common   Enter your MySQL password when prompted   Enter the password that you want to use to log into phpmyadmin After the installation […]

Jul
20
2013

How to Check Apache Module and Enable Apache Modules?

We can use apache2ctl -M to the module that has been enabled on apache. Or if you have apache + PHP you can check it from phpinfo() function <?php echo phpinfo(); ?>   What if you want to enable the module you can use a2enmod “The module name”   for example “enable mod_rewrite” :: #a2enmod rewrite   Then restart the apache service #/etc/init.d/apache2 restart or #service apache2 restart

Jul
19
2013

PHP exec() Error Codes

exec() error codes mean from the return at the third parameter. for example  exec($cmd.’ 2>&1′, $output, $return); 1 – Catchall for general errors. 2 – Misuse of shell builtins. 126 – Command invoked cannot execute. A permission or command not executable problem. 127 – Command not found. 128 – Invalid argument to exit. Exit takes only integer range 0 – 255. 128+n – Fatal error signal “n”. 130 – Script terminated by Control-C. 255* – […]

Jul
18
2013

Linux command line : What does it mean 2>&1

For example  #ls 2>&1 > ls.log What is actually mean by 2>&1?? Since every shell process has there own descriptor :: 0 (stdin), 1 (stdout) and 2 (stderr) :: and & in the front of &1 indicated that 1 is not a file or folder, it is a descriptor. The > mean redirect the out put to another descriptors or  files. in this case 2>&1 > ls.log means that stderr(2) and stdout(1) put is redirected to the ls.log file. normally, for example #ls […]

Jul
17
2013
AWS // S3

Copy Contents in S3 Bucket Between AWS Accounts with S3cmd

First, download s3cmd download from http://s3tools.org/s3cmd and install: $ cd s3cmd $ sudo python setup.py install The following command will prompt you for your S3 key and secret. The prompt for ‘Path to GPG program:’ entered nothing in this field. $ s3cmd –configure Then try with the command $ s3cmd sync –skip-existing –recursive s3://source-bucket-name s3://target-bucket-name You will get ERROR: S3 error: 403 (AccessDenied): Access Denied   Then set the policy for both source and destination s3 buckets The […]

Jul
16
2013

Fix QuickTime crash on launch in Mac OSX

Process:         QuickTime Player [16463] Path:            /Applications/QuickTime Player.app/Contents/MacOS/QuickTime Player Identifier:      com.apple.QuickTimePlayerX Version:         10.2 (603.12) Build Info:      QuickTimePlayerX-603012000000000~1 Code Type:       X86-64 (Native)Parent Process:  launchd [137] User ID:         501     Date/Time:       2013-06-02 14:28:05.861 +0400 OS Version:      Mac OS X 10.8.3 (12D78) Report Version:  10   Interval Since Last Report:          13526 sec Crashes Since Last Report:           4 Per-App Interval Since Last Report:  43 sec Per-App Crashes Since Last Report:   4 Anonymous UUID:                      F04F6ADA-5B29-6015-7594-EAAF73E4879A     Crashed Thread:  7  […]

Jul
3
2013

Fix VsFTP – FTP Passive Mode Problems on Amazon EC2 Instances

For a while I was forced to connect to FTP (an installation of VSFTP) on our EC2 server using Active mode, because passive mode refused to work. While this is OK for FTP clients that can be configured to use active mode, other utilities such as screen capture (e.g. Jing) and the wordpress auto-upgrade could not work with active mode, causing all sorts of erroneous malarky. If you’re getting errors such as “227 entering passive mode… […]




Member Area