Browsing the archives for the Ubuntu category

Crontab creating multiple files with increasing numbers like php.1 php.2

The crontab in ubuntu was creating muntiple files with same name as the file in execution. I was running the file fr_bom.php in cron tab and it created multiple file like this fr_bom.php.409 fr_bom.php.410 fr_bom.php.411 I was wondering how do delete them suddenly it flashed to me that i should use wild card I used rm fr_bom.php.* [...]

EmailStumbleUponShare
0 Comments

How to add comment in crontab ubuntu – Linux – Solution

To add comments in crontab ubuntu is very simple and easy. I just got it in few seconds I wanted to comment out some cronjobs so i just added # at the start of the line. Like this #This is a comment Do let me know if this was easy!!!

EmailStumbleUponShare
0 Comments

Installing PEAR Mail for PHP On Ubuntu – Linux

You need to run these commands in putty sudo apt-get install php-pear sudo pear install mail sudo pear install Net_SMTP sudo pear install Auth_SASL sudo pear install mail_mime

EmailStumbleUponShare
0 Comments

Restart mysql in Ubuntu

Debian / Ubuntu Linux then use following command: * To start mysql server: /etc/init.d/mysql start * To stop mysql server: /etc/init.d/mysql stop * To restart mysql server /etc/init.d/mysql restart

EmailStumbleUponShare
0 Comments

.gz and gzip in Ubuntu command line

Installing gzip in Debian #apt-get install gzip Uncompressing a gzip File Using gunzip To uncompress a gzip file, execute the following command: #gunzip filename.txt.gz (where filename.txt.gz is the name of the file you wish to uncompress) The result of this operation is a file called filename.txt. By default, gunzip will delete the filename.txt.gz file. Compressing [...]

EmailStumbleUponShare
0 Comments

JFolder::create: Could not create directory SOLVED

I was getting JFolder::create: Could not create directory SOLVED on my server Configuration Ubuntu 9.02 I did the following to solve it in the command (Putty) sudo chown www-data FOLDERNAME That is u need to change the user of the files and folder in Ubuntu/Joomla from root to apache DO this to all the folders [...]

EmailStumbleUponShare
0 Comments

PostFix error in iRedmail install

If you get error Errors were encountered while processing: postfix-policyd while installing iRedmail then RUN apt-get install postfix-policyd and it will ask for the mysql root password. Then run the iredmail install script agan and boom.

EmailStumbleUponShare
0 Comments

Ubuntu: Changing Hostname from Command Line

To change use the below in putty sudo /bin/hostname mynewhostname and also sudo edit /etc/hosts

EmailStumbleUponShare
0 Comments

Transfer using wget with username and password

TO download a file called xx.zip use wget –user=hamzahal –password=’1qaZ’  http://www.site.com/xx.zip

EmailStumbleUponShare
0 Comments

Zip in Ubuntu and location of zipped file

To use zip command on Linux Ubuntu is very easy but has some requirements First need to install ZIP software. Please note ZIP and Unzip software require seperate installations. To install ZIP in Ubuntu using command prompt use apt-get install zip Then use the syntax command as follows zip -r zippedfilename.zip /locationofthefoldertobezipped Example I used [...]

EmailStumbleUponShare
0 Comments