Deploy DEDECMS systems under Linux systems __linux

Source: Internet
Author: User

I just put this system on our server successfully deployed: So in a very exciting mood to write down this document. I hope you can easily use the DEDECMS system with a friend like me who is not very familiar with Linux.

To be honest, I'm not only unfamiliar with Linux systems, but I've never used this system before. Just got a little dizzy when it was time to deploy DEDECMS. Do not know where to start, cause dedecms himself is also ignorant. But no way, the head ordered that the implementation ah. Bite the bullet and get it.

First I first Google a bit dedecms, found that the official website, a new v5.0 a look at the forum seems to this evaluation can also

Simply paste a few of my knowledge of the system.

Baidu Google has learned that this is the original content management system is mainly used to build a website. Because our company wants to use it to make its own simple website. Specifically on the content of Dedecms, I have a collection in my blog, I do not know can look at that.

and start getting to the point.

The first step into my Linux system

Check it out. The cursor prompt is # after the Super administrator logs on

The normal user cursor shows $. I chose to log in to my Linux system with a super administrator because I wanted to deploy the project.

Because Dedecms needs Apache +mysql +php environment.

So the prerequisite is the need to install these dongdong. As for how to install Apache Mysql here do not want to say more because Google v Baidu will have more than n introduction. But remember to check your machine before installing these.

You can use the command find/-name Apache

RPM-QL Apache

To check if there's no Apache.

Then find/-name mysql discover/-name php These environments I found that I have so there is no reinstall listen to seniors say

These are all installed on the Linux system when the own. What I'm going to say here is that even with these environments, problems still occur when you install

I just want to share with you the problems and solutions that have arisen after these circumstances.

The second step is to find Apache's conf file full name is httpd.conf change inside the port number Character Set Program execution path

respectively for their own needs are as follows: Listen 8083 (my port is 8083)

DocumentRoot "/usr/dedecms" (My path is/usr/dedecms)

Adddefaultcharset GBK (My dedecms is this character set, general this default is Utf-8) if your dedecms character set and this does not work after the page will appear garbled.

After you change these three items: httpd-k Restart to restart Apache

Visit http://your website/setup

You will be asked to set up a database interface

Step three: Follow the information of the page and the information of your own company and click Next. The problem came up.

Fatal error:call to undefined Function:mysql_connect () in/usr/dedecms/setup/index.php in line, referer:http://www . wtkeji.com:8083/setup/index.php

Looked at the internet for a long time and then saw that because of the lack of php-mysql this bag

Run the command first rpm-qa| grep php to view its corresponding PHP version and then download the corresponding PHP-MYSQL.RPM package

RPM-IVH php-mysql.rpm Installation (--. That's it. I've been looking for a whole morning on the internet, and it's not easy to find. Especially found the corresponding version of the

php-odbc-4.3.9-3.22.4
php-4.3.9-3.22.4
php-pear-4.3.9-3.22.4
php-ldap-4.3.9-3.22.4
php-pgsql-4.3.9-3.22.4

This is my version, so I'm looking for a php-mysql-4.3.9-3.22.4.rpm two Web site that's useful to everyone.

It is estimated that all the versions of these sites should have a basic need for everyone to look as long as I do:

Rpmfind.net and http://202.165.105.226/babelfish/translate_url_content?lp=en_zh&trurl=http%3a%2f% 2frpm.pbone.net%2findex.php3

After installation, restart the Apache OK above the problem solved can be in the run of the page or wrong hint that the database link is not correct

What might be a username password error

First do not read the page prompts to find your apache/log to see what the error log says

The specific command to view the error log is tail-f-n 200/etc/httpd/logs/error_log

Error displayed as: PHP warning:mysql_connect (): Can ' t connect to local MySQL server through socket '/var/lib/mysql/mysql.sock ' (2) I n/usr/dedecms/setup/index.php on line, referer:http://www.wtkeji..com:8083/setup/index.php

Continue to search the internet for the wrong reasons how to say that there are specific I was successful by modifying the php.ini file.

The specific modification command follows Vi/etc/php.ini open php.int file

Input I into editable state

Locate the MySQL settings associated with the socket specify the path to your My.sock file

This is the specific =/temp/my.sock Note: This path must be the path of your own My.sock file.

Then enter: Wq Save and Exit VI

Restart Apache re-enter Dedecms home Ann Order execution set database OK successfully entered into the DEDECMS system and then

Enter user name: admin

Password: admin can be used slightly. : P

Supplemental Note: If directory permissions are detected on the first installation, there is a directory with read-only inability to write

Directory permissions can be modified on the Linux shell command line

                    Specific commands for   CHMOD-R 777/The directory you want to modify

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.