Sunday, October 6, 2013

how to turn off iis 7?

stop and disable the www service
type services.msc from the run command prompt > scroll down to World Wide Publishing service.
or go to control panel > Administrative Tools > Services.msc > World Wide Publishing service.

Wednesday, August 28, 2013

Theme - Responsive Blog

Responsive Blog is a responsive multipurpose Drupal 7 theme. We have created the theme with a wide range of sites in mind.
Overall Responsive Blog has a very clean and elegant design without much clutter. Its a very sleek solution that will make any site really stand out and look fantastic. The theme is completely responsive, and has been tested on the iPhone and iPad for optimal performance. This is an all around great theme, useful for almost any project.

Features

  • Responsive, Mobile-Friendly Theme
  • 1-column and 2-coumns layout support
  • 2 pre-designed color schemes (White and Dark)
  • A total of 12 block regions
  • Configurable layout : Sidebar can be Right or Left
  • Mobile support (Smartphone, Tablet, iPhone, Android, etc)
  • Configurable jQuery Cycle Image Slideshow
  • Multi-level drop-down menus (Multilingual support)
  • Minimal design and nice typography
  • HTML5 & super clean markup
  • Facebook, Twitter and other Social Icon.
Read More

Wednesday, April 3, 2013

XAMPP for Linux


Step 1: Download

Simply click on one of the links below. It's a good idea to get the latest version. :)

A complete list of downloads (older versions) is available at SourceForge.

XAMPP for Linux 1.8.1, 2012/9/30

Version

Size

Notice
XAMPP Linux 1.8.1 81 MB Apache 2.4.3, MySQL 5.5.27, PHP 5.4.7 & PEAR + SQLite 2.8.17/3.6.16 + multibyte (mbstring) support, Perl 5.14.2, ProFTPD 1.3.4a, phpMyAdmin 3.5.2.2, OpenSSL 1.0.1c, GD 2.0.1, Freetype2 2.1.7, libjpeg 6b, libpng 1.2.12, gdbm 1.8.0, zlib 1.2.3, expat 1.2, Sablotron 1.0, libxml 2.7.6, Ming 0.4.2, Webalizer 2.21-02, pdf class 009e, ncurses 5.3, mod_perl 2.0.5, FreeTDS 0.63, gettext 0.17, IMAP C-Client 2007e, OpenLDAP (client) 2.3.11, mcrypt 2.5.7, mhash 0.8.18, eAccelerator 0.9.5.3, cURL 7.19.6, libxslt 1.1.26, libapreq 2.12, FPDF 1.6, XAMPP Control Panel 0.8, bzip 1.0.5, PBXT 1.0.09-rc, PBMS 0.5.08-alpha, ICU4C Library 4.2.1, APR (1.4.6), APR-utils (1.4.1)
MD5 checsum: e7092eafff81ad363de45d192774b4d6
Upgrade 1.8.0 to 1.8.1 32 MB Upgrade package. How to upgrade?
MD5 checksum: 990a56b93ba5a909a63b67ba4f0ac503
Development package 38 MB The development package contains all files you need if you want to compile other software packages for XAMPP by yourself and the Unix manual pages. Install this package like the normal XAMPP distribution:
tar xvfz xampp-linux-devel-1.8.1.tar.gz -C /opt
MD5 checksum: 1377159c73d9a5bfc0e930b122861ee6

Step 2: Installation

After downloading simply type in the following commands:
  1. Go to a Linux shell and login as the system administrator root: su
  2. Extract the downloaded archive file to /opt: tar xvfz xampp-linux-1.8.1.tar.gz -C /opt
    Warning: Please use only this command to install XAMPP. DON'T use any Microsoft Windows tools to extract the archive, it won't work.
    Warning 2: already installed XAMPP versions get overwritten by this command.
That's all. XAMPP is now installed below the /opt/lampp directory.

Step 3: Start

To start XAMPP simply call this command:
/opt/lampp/lampp start
You should now see something like this on your screen:
Starting XAMPP 1.8.1...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.

Ready. Apache and MySQL are running.
If you get any error messages please take a look at the Linux FAQ.

Step 4: Test

OK, that was easy but how can you check that everything really works? Just type in the following URL at your favourite web browser: http://localhost
Now you should see the start page of XAMPP containing some links to check the status of the installed software and some small programming examples.

Read Me


A matter of security (A MUST READ!)

As mentioned before, XAMPP is not meant for production use but only for developers in a development environment. The way XAMPP is configured is to be open as possible and allowing the developer anything he/she wants. For development environments this is great but in a production environment it could be fatal.
Here a list of missing security in XAMPP:
  1. The MySQL administrator (root) has no password.
  2. The MySQL daemon is accessible via network.
  3. ProFTPD uses the password "lampp" for user "nobody".
  4. PhpMyAdmin is accessible via network.
  5. Examples are accessible via network.
  6. MySQL and Apache running under the same user (nobody).
To fix most of the security weaknesses simply call the following command:
/opt/lampp/lampp security
It starts a small security check and makes your XAMPP installation quite secure. For example this protects the XAMPP demo pages by a username ('lampp') and password combination.

Advanced start and stop parameters

Until version 0.9.4 /opt/lampp/lampp could only start and stop XAMPP. Since version 0.9.5 it learned a lot of new things to do.
START AND STOP PARAMETERS
Parameter Description
start Starts XAMPP.
stop Stops XAMPP.
restart Stops and starts XAMPP.
startapache Starts only the Apache.
startssl Starts the Apache SSL support. This command activates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay activated.
startmysql Starts only the MySQL database.
startftp Starts the ProFTPD server. Via FTP you can upload files for your web server (user "nobody", password "lampp"). This command activates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay activated.
stopapache Stops the Apache.
stopssl Stops the Apache SSL support. This command deactivates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay deactivated.
stopmysql Stops the MySQL database.
stopftp Stops the ProFTPD server. This command deactivates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay deactivated.
security Starts a small security check programm.
For example: To start Apache with SSL support simply type in the following command (as root):
/opt/lampp/lampp startssl
You can also access your Apache server via SSL under https://localhost.

* What is where?

What is where? A big question of our existens, here are some answers! ;)

What is where? A big question of our existens, here are some answers! ;)
IMPORTANT FILES AND DIRECTORIES
File/Directory Purpose
/opt/lampp/bin/ The XAMPP commands home. /opt/lampp/bin/mysql calls for example the MySQL monitor.
/opt/lampp/htdocs/ The Apache DocumentRoot directory.
/opt/lampp/etc/httpd.conf The Apache configuration file.
/opt/lampp/etc/my.cnf The MySQL configuration file.
/opt/lampp/etc/php.ini The PHP configuration file.
/opt/lampp/etc/proftpd.conf The ProFTPD configuration file. (since 0.9.5)
/opt/lampp/phpmyadmin/config.inc.php The phpMyAdmin configuration file.

* Stopping XAMPP

To stop XAMPP simply call this command: /opt/lampp/lampp stop
You should now see:
Stopping LAMPP 1.8.1...
LAMPP: Stopping Apache...
LAMPP: Stopping MySQL...
LAMPP stopped.

And XAMPP for Linux is stopped.

* Uninstall

To uninstall XAMPP just type in this command: rm -rf /opt/lampp
The end.

Saturday, March 30, 2013

Drush Commands

Core drush commands

archive-dumpBackup your code, files, and database into a single file.
archive-restoreExpand a site archive into a Drupal web site.
cache-clearClear a specific cache, or all drupal caches.
cache-getFetch a cached object and display it.
cache-setCache an object expressed in JSON or var_export() format.
core-configEdit drushrc, site alias, and Drupal settings.php files.
core-cronRun all cron hooks in all active modules for specified site.
core-executeExecute a shell command. Usually used with a site alias.
core-quick-drupalDownload, install, serve and login to Drupal with minimal configuration and dependencies.
core-requirementsProvides information about things that may be wrong in your Drupal installation, if any.
core-rsyncRsync the Drupal tree to/from another server using ssh.
core-statusProvides a birds-eye view of the current Drupal installation, if any.
core-topicRead detailed documentation on a given topic.
drupal-directoryReturn path to a given module/theme directory.
helpPrint this help message. See `drush help help` for more options.
image-flushFlush all derived images for a given style.
php-evalEvaluate arbitrary php code after bootstrapping Drupal (if available).
php-scriptRun php script(s).
queue-listReturns a list of all defined queues
queue-runRun a specific queue by name
search-indexIndex the remaining search items without wiping the index.
search-reindexForce the search index to be rebuilt.
search-statusShow how many items remain to be indexed out of the total.
self-updateCheck to see if there is a newer Drush release available.
shell-aliasPrint all known shell alias records.
site-aliasPrint site alias records for all known site aliases and local sites.
site-installInstall Drupal along with modules/themes/configuration using the specified install profile.
site-resetReset a persistently set site.
site-setSet a site alias to work on that will persist for the current session.
site-sshConnect to a Drupal site's server via SSH for an interactive session or to run a shell command
test-cleanClean temporary tables and files.
test-runRun tests. Note that you must use the --uri option.
updatedbApply any database updates required (as with running update.php).
usage-sendSend anonymous Drush usage information to statistics logging site. Usage statistics contain the Drush command name and the Drush option names, but no arguments or option values.
usage-showShow Drush usage information that has been logged but not sent. Usage statistics contain the Drush command name and the Drush option names, but no arguments or option values.
variable-deleteDelete a variable.
variable-getGet a list of some or all site variables and values.
variable-setSet a variable.
versionShow drush version.
watchdog-deleteDelete watchdog messages.
watchdog-listShow available message types and severity levels. A prompt will ask for a choice to show watchdog messages.
watchdog-showShow watchdog messages.

Runserver commands

runserverRuns a lightweight built in http server for development.

Field commands

field-cloneClone a field and all its instances.
field-createCreate fields and instances. Returns urls for field editing.
field-deleteDelete a field and its instances.
field-infoView information about fields, field_types, and widgets.
field-updateReturn URL for field editing web page.

Project manager commands

pm-disableDisable one or more extensions (modules or themes).
pm-downloadDownload projects from drupal.org or other sources.
pm-enableEnable one or more extensions (modules or themes).
pm-infoShow detailed info for one or more extensions (modules or themes).
pm-listShow a list of available extensions (modules and themes).
pm-refreshRefresh update status information.
pm-releasenotesPrint release notes for given projects.
pm-releasesPrint release information for given projects.
pm-uninstallUninstall one or more modules.
pm-updateUpdate Drupal core and contrib projects and apply any pending database updates (Same as pm-updatecode + updatedb).
pm-updatecodeUpdate Drupal core and contrib projects to latest recommended releases.

SQL commands

sql-cliOpen a SQL command-line interface using Drupal's credentials.
sql-connectA string for connecting to the DB.
sql-createCreate a database.
sql-dropDrop all tables in a given database.
sql-dumpExports the Drupal DB as SQL using mysqldump or equivalent.
sql-queryExecute a query against the site database.
sql-syncCopy and import source database to target database. Transfers via rsync.

User commands

user-add-roleAdd a role to the specified user accounts.
user-blockBlock the specified user(s).
user-cancelCancel a user account with the specified name.
user-createCreate a user account with the specified name.
user-informationPrint information about the specified user(s).
user-loginDisplay a one time login link for the given user account (defaults to uid 1).
user-password(Re)Set the password for the user account with the specified name.
user-remove-roleRemove a role from the specified user accounts.
user-unblockUnblock the specified user(s).

Other commands

makeTurns a makefile into a working Drupal codebase.
make-generateGenerate a makefile from the current Drupal site.

Global Options (see `drush topic core-global-options` for the full list)

-r <path>, --root=<path> Drupal root directory to use (default: current directory).
-l <http://example.com:8888>, --uri=<http://example.com:8888> URI of the drupal site to use (only needed in multisite environments or when running on an alternate port).
-v, --verbose Display extra information about the command.
-d, --debug Display even more information, including internal messages.
-y, --yes Assume 'yes' as answer to all prompts.
-n, --no Assume 'no' as answer to all prompts.
-s, --simulate Simulate all relevant actions (don't actually change the system).
-p, --pipe Emit a compact representation of the command for scripting.
-h, --help This help system.
--version Show drush version.
--php=</path/to/file> The absolute path to your PHP intepreter, if not 'php' in the path.
-ia, --interactive Force interactive mode for commands run on multiple targets (e.g. `drush @site1,@site2 cc --ia`).


Tuesday, February 19, 2013

Caching: Modules that make Drupal scale

There are many ways to improve the performance & scalability of Drupal.
Comparison of a selection of performance and scalability modules:

Read Full ....

8 Popular online apps to test the mobile version of your site

The mobile revolution has inspired major and minor websites alike to have a mobile version. Mobile versions can be created using themes, extensions, and other modifications.
While developing mobile version, you may want to test it on two, three, or even five different mobile handsets. After development, you are not aware how it will appear in each mobile present on this Earth as you have to buy each of them to test it manually.
Let us make this work simple for you by collecting some tools in this article to test the mobile version of your website.
You can test your mobile website on these tools, analyze it for the mistakes/errors, and then optimize it according to the recommendations. Let us have a look at some of the mobile testing applications available online.

1. W3C mobileOK Checker

W3C tops the list every time you come to the field of website testing. This time also, W3C mobileOK Checker tops the web-based mobile testing tools. You just have to visit its website and enter the URL to test and it will show whether your website is mobile-ready or not, along with what you can do to rectify any errors.

2. Ready.Mobi

Ready.Mobi is a service of dotMobi and an extension of W3C MobileOk Checker Service. It analyzes your website and provide the results in graph format whether the website is optimized well for mobile or not. You can check one web page without registering, but you have to create an account to test the whole website.

3. Google Mobile Testing

Google also has tools for testing your website for mobile. Visit the Mobile Testing site, enter the URL of your website, and press Enter. It will show the website in mobile format and you can check whether it is showing up correctly or not.

4. iPad Peek

Currently, Apple iPad is the highest selling tablet. If you are optimizing your website for mobile, then you should also check its compatibility for iPad (be sure to check your regular site here, not just the mobile version). Visit the iPad Peek website, enter the URL and press enter to show how your website looks on iPad.

5. Test iPhone

With all controversies, Apple iPhone is still one of the best selling smartphones around the globe. Do not miss iPhone testing while checking your website on Android, Symbian, and Windows Mobile platforms. You just have to visit the Test iPhone website, enter the URL and press Enter to do iPhone testing of your website.

6. Gomez

If you’re fed up with testing on emulators and web-based apps and thinking about buying a premium mobile website testing service, go for Gomez as it provides a “Try Before You Buy” option. You just have to fill out a small form and it will send the images captured on iPhone 3Gs, iPad, BlackBerry Storm 2, and Google Nexus One.

7. Opera Mobile Emulator

Opera is one of the best mobile Web browsers available in the market. Almost every Java-compatible handset supports either Opera Mini or Opera Mobile. Opera is also available for iPhone, Android, and Symbian platforms. You can test your website on this mobile browser by visiting its online demo.

8. BOLT Demo

BOLT is another leading mobile web browser. It mainly works on Java-compatible mobiles but the company also plans to launch an Android version. Test your Website on BOLT by using its online demo.

only show translated menu items into current language (Drupal 8)

function MY_THEME_preprocess_menu(&$variables) {   if ($variables['menu_name'] == 'brancott-header-menu') {    $langu...