Linux PHP Environment setup and Magento installation tutorials

Source: Internet
Author: User
Tags apache log file mcrypt apache log

listening to friends with Magento in building e-commerce system, I am curious. Then he downloaded a package and deployed a set. the host uses Linux center os6.5, the installation program is very smooth, the deployment of a set of about one hours or so. #################Linux Environment Construction ################## install Apache2, and then start:Yum Install httpd/etc/init.d/httpd Startat this point, Apache can provide HTTP services, but cannot parse PHP, or even database. Apache Master Config file:/etc/httpd/conf/httpd.conf
The Apache master configuration directory allows you to categorize different types of configurations into this directory:/etc/httpd/conf.d/
Apache Web site root directory:/var/www/html/
Apache log file directory:/VAR/LOG/HTTPD If you want to change the port , vi/etc/httpd/conf/httpd.conf, if modifying the port binding port is unsuccessful, see the link below http://stackoverflow.com/questions/17079670/ Httpd-server-not-started-13permission-denied-make-sock-could-not-bind-to-adIf the service starts up, the extranet link is not: Can shut down firewall (temporary scheme)/etc/init.d/iptables stop  install MySQLyum install MySQL mysql-server/etc/init.d/mysqld Startthen go to MySQL table to modify the root user's password to abc123Use MySQL;Update user Set Password=password (' abc123 ') where user= ' root ';MY.CNF configuration file for MySQL:/etc/my.cnf
MySQL database file location:/usr/lib/mysql  Installing PHP5Yum Install phpafter installation, create a info.php file in/var/www/html/:echo "<?php phpinfo ()?>" >/var/www/html/info.php access: ip:80/info.php, if you print info, PHP environment is built successfully! ############ #下面正式开始magento安装 ############ download files to local(You can also download the package directly wget to Linux) http://www.magentocommerce.com/download using RZ to read files from localIf you cannot use this command, yum install lrzsz-y Unzip the fileUnzip **.zip/var/www/html/magentovisit: Ip:80/magentofollow the prompts to go.   Issue 1:* * * path must be writable This problem only needs to beAll files under the/var/www/html/magento path are set to writable. Chmod-r 777/var/www/html/magento/* (Of course, after this modification has a very large security risk, here mainly for the initial construction) Question 2:Module * * Not downloadedYum Install php-dom php-mcrypt PHP-GD installation mcrypt error: http://blog.hostonnet.com/installing-php-mcrypt-in-centos-6    

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.