Monday, May 6, 2013

php - display image & security


I think you want to :
  1. deny access to the image/ directory
  2. put this script outside the image/ directory

    CODE --> show.php

    header("Content-type: image/jpeg");
  3. access "/image/baby.jpg" with http://example/show.php?image=baby
Of course the simple solution would be to just set up your web server and do no programming. But probably I do not fully understand your idea.

Saturday, May 4, 2013

Ubuntu Clean Installation & moving data

1. Install lamp
   apt-get install tasksel
2. Moving /var/www
2. Moving database

     a. Stop mysql service
         sudo /etc/init.d/mysql stop
     b. Backup current database
         cp -Rp /var/lib/mysql /var/lib/mysql.backup
     c. Copy the database
         cp -Rp /mountpoint/var/lib/mysql /var/lib/mysql
     d. Start mysql service
         /etc/init.d/mysql start

    cp /etc/my.cnf  or /etc/mysql/my.cnf 

3. Install & moving FTP
    apt-get install vsftpd
mkdir /srv/ftp
usermod -d /srv/ftp ftp 
/etc/init.d/vsftpd restart
vi                 /etc/vsftpd.conf
touch /etc/vsftp.chroot_list 
vi /etc/vsftp.chroot_list

service vsftp restart
create user
useradd  it
usermod -d /home/it/ftp it
usermod -G ftp,it it
4. Moving vitualbox
 apt-get install virtualbox
cp /home/vm/xp_pro.vdi

5. Install Teamviewer

6. Moving Thunderbird
cp -Rp /home/fadabi/.thunderbird /home/new/

10.  Copy firefox
cp -Rp /home/fadabi/.mozila/firefox/*.default /home/fadabi/.mozila/firefox/
vi profiles

7. Moving Mysql database
/etc/init.d/mysql stop
cp -Rp /var/lib/mysql /home/newdb
rm /home/newdb (to remove file, leave only dir)
vi /etc/mysql/my.cnf  (chang to new datadir to /home/newdb)

8. Install teamviewer

9.Install virtual box
apt-get install virtualbox
cp -r /old/vmbox /new/vmbox

Top 25+ Open Source e-Commerce Solution

Following are the Open Source E-Commerce Applications:-
  1. osCommerce: osCommerce is an online shop e-commerce solution that offers a wide range of out-of-the-box features that allows online stores to be setup fairly quickly with ease, and is available for free as an Open Source based solution released under the GNU General Public License. More..
  2. Magento: Magento is a feature-rich, professionally developed open-source eCommerce solution offering merchants complete flexibility and control over the look, content, and functionality of their online stores. Magento’s intuitive administration interface features powerful marketing, search engine optimization and catalog-management tools to give merchants the power to create sites that are tailored to their unique business needs. More..
  3. Zen Cart: Zen Cart is an open source online store management system. It is PHP-based, using a MySQL database and HTML components. Support is provided for several languages and currencies, and it is freely available under the GNU General Public License. Zen Cart branched from osCommerce as a separate project. Beyond some aesthetic changes, the major differences between the two systems come from Zen Cart’s architectural changes (e.g. a template system) and additional included features in the core. More…
  4. FishCart: FishCart®, in use since January 1998, is a proven Open Source e-commerce system for products, services, online payment and online donation management. Written in PHP4, FishCart® has been tested on Windows NT, Linux, and various Unix platforms. FishCart presently supports the MySQL, PostgreSQL, Solid, Oracle and MSSQL. More…
  5. VirtueMart:  VirtueMart is an Open Source E-Commerce solution to be used together with a Content Management System (CMS) called Joomla! (and Mambo). Joomla! and VirtueMart are written in PHP and made easy for use in a PHP/MySQL environment.  More…
  6. phpShop: phpShop is a PHP-powered shopping cart application. It is released under the GNU General Public License. The primary purpose of phpShop is to provide a simple shopping cart solution that is easy to customize to suit any purpose.  More…
  7. MyMarket: MyMarket is a fully functional online shopping catalog system, built using PHP and MySQL. It was created by Ying Zhang  for the purpose of teaching people about the basics of creating an E-Commerce site. More…
  8. PrestaShop: The PrestaShop e-Commerce Solution was built to take advantage of essential Web 2.0 innovations such as dynamic AJAX-powered features and next-generation ergonomy. PrestaShop guides users through your product catalog intelligently and effortlessly, turning intrigued visitors into paying customers. More…
  9. nopCommerce: nopCommerce is an open source e-commerce solution that contains both a catalog frontend and an administration tool backend. nopCommerce is a fully customizable shopping cart. It’s stable and highly usable. From downloads to documentation, offers a comprehensive base of information, resources, and support to the nopCommerce community. More…
  10. dashCommerce: dashCommerce is an ASP.NET Open Source e-Commerce Application. Built using some of the latest technologies, dashCommerce is focused on providing a robust e-commercce application that is stable and highly usable. In addition, the dashCommerce community is one of the most active communities in the open source / .NET space, so take a look around. More…
  11. WordPress e-Commerce Plugin: The WordPress e-Commerce plugin is a state-of-the-art e-Commerce platform with a focus on aesthetics, web standards and usability. It is both free and priceless at the same time. More..
  12. OXID eShop: OXID eShop Community Edition is a proven and flexible open source software. Thousands of online businesses worldwide use its extensive functionality to create optimum eCommerce solutions. With its modular, state-of-the-art and standards-based architecture, customization is easy. More..
  13. Substruct: The first and most robust Ruby on Rails open source e-commerce project. Open source Ruby on Rails E-Commerce. More..
  14. OpenCart: OpenCart is an open source PHP-based online shopping cart system. A robust e-commerce solution for Internet merchants with the ability to create their own online business and participate in e-commerce at a minimal cost. More..
  15. AgoraCart: The powerful “Free” Open Source ecommerce shopping cart software solution offers you a very wide range of features that allow you to setup an online storefront or shop ranging from a simple template based store for novices to the integration of complex web design concepts created by your web designer. More ..
  16. StoreSprite: A powerful, free php/mysql shopping cart easy to install, customise and maintain,  no complex scripting to negotiate design and deploy a top rate store that your client can manage with little or no training. More..
  17. Spree Open Source E-Commerce: Spree capitalizes on the dynamic nature of the Ruby progamming language to provide the most flexible commerce platform available. Spree has been designed from the ground up to be as open and extensible as possible. You no longer have to be frustrated with the limited set of choices provided by most platforms. Spree is maintained by an active team of developers who continue to refine the code based on lessons learned from the challenges of real world deployments. More..
  18. DigiStore: Digistore Ecommerce 4.0 is a fully featured open source ecommerce solution based on the popular osCommerce engine. Boasting improvements both to the administration and the end user experience – Digistore has quickly become a popular choice for people wishing to market products online. More..
  19. Satchmo: Like most Open Source projects, Satchmo was started to “scratch an itch.” This particular itch was to create a framework for developing a python based shopping cart framework software using Django. More..
  20. cpCommerce: cpCommerce is an open-source e-commerce solution that is maintained by templates and modules. This Ecommerce Script combines many utilities found in other “free” ecommerce scripts, except I allow you to completely customize the entire design by editing a single template file and the CSS (Cascading StyleSheets) each section pertains to. Due to how the script was developed, the program finds your template, and is told where to place each element in the program using easy to read tags. More..
  21. Ubercart: Ubercart is an exciting open source e-commerce package that fully integrates your online store with Drupal, the leading open source content management system. This is a killer combination for anyone looking to build a community around a product, sell access to premium content, offer paid file downloads, and much much more! More..
  22. Chromium Cart: Chromium Cart is the premier open source (free) PHP-based online shopping cart system aimed at both beginners as well as professionals. Chromium Cart is an easy to use, yet widely expandable e-commerce solution. Unlike many of the “clones” out there, ChromiumCart was developed from the ground up using MVC framework. More..
  23. DantoCart: DantoCart is an open source shopping cart solution released under the GNU General Public License. This means that you are free to use, distribute and modify DantoCart under the terms of the GNU License. More..
  24. eclime: eclime is a very powerful Smarty™ based e-commerce/shopping cart software build from trusted osCommerce 2.2 engine, with many useful contributions added. It has all the features needed to run a successful internet store and can be customized to whatever configuration you need. More..
  25. osCSS: osCSS is the leading Open Source online shop e-commerce solution that is available for free under the GNU General Public License. It features a rich set of out-of-the-box online shopping cart functionality that allows store owners to setup, run, and maintain their online stores with minimum effort and with no costs, license fees, or limitations involved. More..
  26. OFBIZ: The Apache Open For Business Project is an open source enterprise automation software project licensed under the Apache License Version 2.0. By open source enterprise automation we mean: Open Source ERP, Open Source CRM, Open Source E-Business / E-Commerce, Open Source SCM, Open Source MRP, Open Source CMMS/EAM, and so on. More..
Download the features checklist of few of the above application:E-commerce Checklist

Copy mysql database

1. Stop mysql service
sudo /etc/init.d/mysql stop
2. Backup current database
cp -Rp /var/lib/mysql /var/lib/mysql.backup
3. Copy the database
cp -Rp /mountpoint/var/lib/mysql /var/lib/mysql
 4. Start mysql service
/etc/init.d/mysql start

/etc/my.cnf  or /etc/mysql/my.cnf