Showing posts with label LAMP. Show all posts
Showing posts with label LAMP. Show all posts

Saturday, October 22, 2011

How to install osCommerce

osCommerce (open source Commerce) is an e-commerce and can be used on web server that has PHP and MySQL installed. You can simply download on this site. After you download, you have to unzip and copy to a folder on web server.

The goal of this post is show you how to install osCommerce. I am installing on a virtual machine that works like a web server (LAMP) to simulate real scenario of installation osCommerce.

If you don't know install or configure a web server on Ubuntu, please read this post or see this video.

If you already installed LAMP, please following the next steps to install:


  1. Go to this site and download "oscommerce-2.3.1.zip";
  2. Unzip "oscommerce-2.3.1.zip";
  3. Copy to web server ;
  4. Step #3

  5. Check out the copy;
  6. Step #4

  7. Modify the permissions on specific folders;
  8. Step #5

    Step #5

  9. After modifying the permissions, will show up  the next screen. Press the button "Continue";
  10. Step #6

  11. It will show up a form where you have fill with right values. But I didn't create a database yet. For that, I went to terminal and typed "mysql -h localhost -u root -p" to login MySQL Server. And then, I created database called "oscommerce" with next command: "create schema oscommerce". Finish! Now you can fill form like you can see in third image.

    Note: I made a mistake to input "192.168.1.199" instead a right IP address which is localhost or 127.0.0.1.

  12. Step #7

    Step #7

    Step #7

  13. I agreed with those values by default. If you want to change, you are comfortable to change.
  14. Step #8

  15. The next form is about your online store. You have to give information like your online store name, owner name, owner email address, administrator username and administrator password.
  16. Step #9

  17. Please read the post-installation notes. It is very important follow the steps to finish the installation.
  18. Step #10

  19. The next image will demonstrate you how to set permissions on step #3 and #4 according the previous image.
  20. Step #11

  21. Then, type in your browser: http://localhost/oscommerce/catalog/admin. This address will drive at administrator page where you have insert administrator username and password.
  22. Step #12

  23. Follow the path Administration Tool -> Tools -> Security Directory Permissions. This page will list permissions that you have change to with command "chmod 777 ..." like you can see in first image. After you changed permissions, press F5 to reload page to see values changed. Finish! You already finished the part of administration. Now let see the online store.
  24. Step #13

    Step #13

  25. Type "http://localhost/oscommerce-2.3.1/catalog/" and press Enter. Voilá! Congratulations! You installed your online store!
  26. Step #14


And now you can do anything with your online store and sell anything. Good luck for your sales!







Tuesday, April 12, 2011

How to configure snmpd


Continuing the installation of Cacti, you need do some configuration on another machines. Without doing this configuration, an error message will show up when you try create a device. Please click on this link to see how to do.

Friday, April 8, 2011

How to install Cacti

Cacti has some prerequisites. You need to install these packages before install Cacti:
  • RRDTool;
  • NET-SNMP;
  • MySQL;
  • PHP;
  • Apache;
You will also need to install some other packages for support. To see a video that show you how to install Cacti, please click this link or you can read the tutorial below.

Apache

Open a terminal and follow the next steps:
  1. sudo apt-get install apache2
After the installation is complete, open http://localhost in your favorite browser. If everything goes fine, you will see It Works! on the top.

PHP

Now that your web server is ready, we will install PHP. Open a terminal and follow the next steps:
  1. sudo apt-get install php5 libapache2-mod-php5
  2. sudo /etc/init.d/apache2 restart
  3. sudo gedit
  4. write the following PHP code:
    1. <?php phpinfo();?>
  5. save file as info.php in  /var/www folder
  6. open your favorite browser and type http://localhost/info.php.
MySQL

Enter the following command:
  1. sudo apt-get install mysql-server-5.0 php5-mysql
  2. type your password (e.g.: root)
  3. sudo /etc/init.d/apache2 restart
  4. open http://localhost/info.php in your favorite browser and check MySQL module.
Great!!! Now you have a LAMP (Linux, Apache, MySQL, PHP) configured system.

Net-SNMP

Open terminal and type the following commands:
  1. sudo apt-get install snmp php5-snmp
  2. sudo /etc/init.d/apache2 restart
  3. Open http://localhost/info.php in your favorite browser and check SNMP module
RRDTool

RRDTool is available in the Debian repository, so you can install it through APT. Type in your terminal
  1. sudo apt-get install rrdtool
Cacti

Before continuing, be sure that you got no error previously. You are in the last step of installing Cacti.
  1. sudo apt-get install cacti
  2. select option 'apache2'
  3. type your password of the database's administrative user (e.g.: root)
  4. type your MySQL application password for cacti and retype in password confirmation (e.g.: root)
  5. To complete the configuration process, open http://localhost/cacti in your favorite browser. 
In the installation type page, you can select if it's new install  or an upgrade. As we are going to install it for the first time, we will select New Install (which is selected by default) and click Next. The path settings page automatically determines the installed paths for RRDTool, PHP, SNMP and Cacti.log as well as the versions for Net-SNMP and RRDTool and then click Next.
In login screen, the username is admin and the default password is admin. After a successful login for the first time, the system will ask you to set a new password. Enter a new password and ensure you remember it. Without this password, you cannot administer the system!