Posts Tagged ‘Linux’
- In: Debian | Linux | PHP | ubuntu
- 11 Comments
What is crontab? crontab is a program which is used to install, deinstall or list the tables used to drive the cron(8) daemon in Vixie Cron. You can easily have your own crontab, and though these are files in /var/spool/cron/crontabs, they are not intended to be edited directly.
If the /etc/cron.allow file exists, then you must be listed therein in order to be allowed to use this command. If the /etc/cron.allow file does not exist but the /etc/cron.deny file does exist, then you must not be listed in the /etc/cron.deny file in order to use this command. If neither of these files exists, then depending on site-dependent configuration parameters, only the super user will be allowed to use this command, or all users will be able to use this command. For standard Ubuntu or Debian systems, all users may use this command.
The options of crontab command are given below:
If the -u option is given, it specifies the name of the user whose crontab is to be tweaked. If this option is not given, crontab examines “your” crontab, i.e., the crontab of the person executing the command.
crontab -l will show you your currently set up cron jobs on the server.
crontab -r will delete your current cron jobs.
crontab -e will allow you to add or edit your current cron jobs by using your default text editor to edit your “crontab file”. In my case Nano
Note that, vi has a bug in it and won’t work to edit your crontab! We recommend nano (which is just like pico), which is the default editor anyway! Read the rest of this entry »
I would like to share my Ubuntu experiance with you, thus I am giving you some exact steps to follow for achiving satisfaction in Ubuntu Linux.
Here you are:
Command | Usage |
---|---|
sudo apt-get install php | Install the latest version of PHP |
sudo apt-get install mysql-server | Install the latest version of MySQL server |
sudo apt-get install phpmyadmin | To install phpMyAdmin |
sudo apt-get install apache | For installing Apache web server |
sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin | To link phpmyadmin in your webserver’s root directory |
sudo /etc/init.d/apache2 force-reload | To force restart Apache server (now you could access localhost/phpmyadmin from your web browser 🙂 |
sudo apt-get install filezilla | for installing FileZilla |
sudo apt-get install vlc | To install the famous player VLC ( might ask for the hardy heron DVD 😦 ) |
sudo apt-get install netbeans | it’s a famous WYSIWYG editor for developers :p |
sudo apt-get install banshee | a cool multimedia player |
sudo apt-get install scim-m17n | for Bangla computing developed by Omi Azad vai |
sudo apt-get install konsole | A great replacement of gnome-terminal with root user facility in Ubuntu |
Tonight up to this, may be I will write some more commands later 🙂
- In: ubuntu | Uncategorized
- 5 Comments
1. Check the mod-rewrite whether it is enabled or not by running the following command:
sudo a2enmod rewrite
You will get a message like this “This module is already enabled!” if your mod-rewrite is already enabled. If mod-rewrite is not enabled, follow the on-screen instructions to install it.
2. Open and edit the default file from this directory /etc/apache2/sites-available/default by using the following command:
sudo nano /etc/apache2/sites-available/default
if you don’t know how to use nano, than you may use another way to set the write permission by running the following command though it’s not recommended 😉
sudo chmod -R 755 /etc/apache2/sites-available/default
3. Find the following Directory structure:
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
4. Find AllowOverride None and replace with the following text
AllowOverride All
5.Restart apache using:
sudo /etc/init.d/apache2 force-reload
And you are done! 🙂
Now you should now be able to view http://localhost/ with the correct css formatting for the cake default page.
Recent Comments