The verification code for DEDECMS logon to the background is incorrect.

Source: Internet
Author: User
Tags install php ini php and

Method 1:

7
You can cancel the verification code as follows:

The implementation method is divided into two steps: open login. php and find:

The code is as follows: Copy code

If ($ validate = "| $ validate! = $ Svali)

Replace:

If (false)

Then, remove the specific HTML code of the following verification code from the template dede/templets/login.htm:

The code is as follows: Copy code

<Li> <span> verification code: </span>

<Input name = "validate" type = "text" id = "vdcode" style = 'width: 50px; text-transform: uppercase; '/>

</Li>

 
Method 2:

Use ftp to enter your dedecms program space, delete all session files except index.htm in the data/sessiondirectory, and then clear the cache in the local IE browser.
Log on to the homepage at the dedecms background.

The solution to the GD Library is simple.

Enable GD library support for PHP in windows

So you only need to find "extension = php_gd2.dll" in php. ini"


Enable GD library support for PHP in Linux

The code is as follows: Copy code

# The following methods are supported to enable the GD Library:
# Check whether the GD Library has the Installation Command
Php5-m | grep-I gd
Or
Php-I | grep-I -- color gd
# If the GD library is not installed, install it on the server as follows:
### If the installation is source code, add the parameter
-- With-gd
### If it is a debian linux system, use apt-get to install it, as shown below:
Apt-get install php5-gd
### If it is a CentOS system, install it using yum, as shown below:
Yum install php-gd
### If the suse linux system is used, install it using yast, as shown below:
Yast-I php5_gd
### If this world is not enough, you can add
First, go to the zlib source code, libpng source code, and gd source code.

Decompress the package to the source code directory.

The code is as follows: Copy code
Zlib Directory
./Configure -- prefix =/usr/local/zlib
Make; make install
Make clean
Libpng Directory
Cp scripts/makefile. linux./makefile
./Configure -- prefix =/usr/local/libpng
Make; make install
Make clean
Gd Directory
./Configure -- prefix =/usr/local/libgd -- with-png =/usr/local/libpng
Make; make install
Make clean
Finally, find [gd] in php. ini and add a line below.
Extension =/usr/local/libgdgd. so

Restart the php service. If not, try reboot.

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.