you download and install OpenLiteSpeed, follow the instructions below to get your Magento site working.
==== Install PHP modules ====
The easiest way to install PHP for OpenLiteSpeed is through our CentOS repository. If the LiteSpeed Repository was not installed and enabled during
the web server installation, follow [http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:rpm this guide] to install and enable the LiteSpeed Repository.
Use the following command to install PHP with the modules
lsphp55 lsphp55-common lsphp55-gd lsphp55-process lsphp55-mbstring lsphp55-mysql lsphp55-mcrypt lsphp55-pdo lsphp55-xml</pre></blockquote>
:: '''Note:''' There are
four versions of LSPHP (lsphp53, lsphp54, lsphp55, lsphp56) available.
[http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:rpm#direct_lsws_to_the_location_of_the_installed_php Direct LSWS to the location of the installed PHP.] (In this example, PHP 5.5 is installed by default in <code>/usr/local/lsws/lsphp55/bin/lsphp</code>. Change the value of the WebAdmin console > External App > your external application > Command setting to reflect that.)
If you are not using RedHat or CentOS, or you prefer to build PHP by yourself, see our [[Help:Building PHP for Magento|instructions for building PHP for Magento]] here.
==== Download Magento ====: Put Magento in a subdirectory of the virtual host /usr/local/lsws/DEFAULT/html/magento (This puts all the files in the right directory for running Magento on the virtual host "Example". )
blockquote> <pre>cd /usr/local/lsws/ DEFAULT/html wget http:// www. magentocommerce.com/ downloads/assets/1.9. 0. 1/magento-18.104.22.168.tar.gz tar -zxvf</pre></blockquote>
= Change ownership of all files in the Magento directory so that the web server has write permission during installation ==== <blockquote><code>chown -R nobody /usr/local/lsws/DEFAULT/html/magento</code></blockquote>
==== Set up Magento on a vhost ==== : (Here we use the default virtual host "Example" .) : Go to the WebAdmin Console > Configuration > Virtual Hosts > Example > General > Index Files.: Add "index.php".
== == Set up a MySQL database for Magento ==== : First, install MySQL:
<blockquote><code>yum install mysql mysql-server</code></blockquote>
: Then, even though it' s not official Magento material, a good example can be found on the WordPress site: http:// codex. wordpress. org/ Installing_WordPress # Using_the_MySQL_Client
Add the following rewrite rules in your virtual host settings to make Magento work ====: Go to the WebAdmin console > Virtual Hosts > Example > Rewrite.: Enable Rewrite > Yes. : Rewrite Rules > :: '''Note:''' These rewrite rules are taken directly from the official Magento site. Any questions about them would be best directed to Magento forums. These rules are also written for installation in the subdirectory " magento". If you are installing in the docroot, remove " magento" from the rules containing it (such as "RewriteBase / magento ==> RewriteBase / ", "RewriteRule .* /magento/ index.php [L] == > RewriteRule . * /index.php [L]").
restart ==== So the changes will take effect (Actions > Graceful Restart ) .
= Run the set up wizard ==== Point your browser to http:// server_ip: 8088/magento and follow the instructions