Common server and software faults, solutions, and solutions

Source: Internet
Author: User

Common server and software faults, solutions, and solutions

I. Solution: do not display the backend Verification Code of zhimeng Dede

The dedede backend Verification Code does not display the solution. In many cases, the dedecms website background verification code is not displayed, and the verification code is not displayed on the website background, so you cannot log on to the dedecms website. There are three common background verification codes that are not displayed:

Dede background verification code is not shown in Case 1:

Dede background verification code is not displayed. Case 2:

Dede background Verification Code not displayed case 3

How can we solve the above three methods?Zhimeng DedeWhy is the background Verification Code not displayed?

General Solution-cancel the background Verification Code Function

The source code of the PHP file cannot be modified in the background because no verification code is provided:

Method 1:

Open dede/login. php and find the following code:

If ($ validate = ''| $ validate! = $ Svali) & preg_match ("/6/", $ safe_gdopen) {ResetVdValue (); ShowMsg ('incorrect verification code! ', 'Login. php',); exit;} Replace the first line with if (false ){

If the problem is solved, do not enter the verification code. Go directly to the backend !!!

Method 2:

Open data/safe/inc. safe. config. php

Delete 6 from code $ safe_gdopen = '1, 2, 3, 4, 5, 6, 7 ';.

Dede background Verification Code does not show situation 1 analysis:

The Verification Code requires the GD library. Check whether your environment has enabled the GD library.

Dede background Verification Code not displayed 2 analysis:

The verification code only shows the background and does not show letters

Open the verification code generation File Include/vdimgck. php

Find

 for($i=0;$i<$rndcodelen;$i++)   {       $bc = mt_rand(0, 1);       $rndstring[$i] = strtoupper($rndstring[$i]);       $c_fontColor = $fontColor[mt_rand(0,4)];       $y_pos = $i==0  4 : $i*($font_size+2);       $c = mt_rand(0, 15);       @imagettftext($im, $font_size, $c, $y_pos, 19, $c_fontColor, $font_file,$rndstring[$i]);       $lastc = $rndstring[$i];}

The Imagettftext () function is not successfully executed. As a result, the Verification Code only displays the background and no letters.

The specific cause is the incorrect font file path. Solution

1. Check whether the font file in include/data/fonts/is ggbi by default. ttf2 adds the following code to the line for ($ I = 0; $ I <$ rndcodelen; $ I ++): $ font_file = str_replace ("\\","/", $ font_file );

That is, replace the backslash in the path of the font file with the slash, because we know that the backslash has the conversion character function,

$ Font_file: \ appserv \ www System error. The backslash is used as an escape character. As a result, $ font_file is not a path. Therefore, the Imagettftext () function always returns an error.

Add $ font_file = str_replace ("\", "/", $ font_file );

Dede background Verification Code not displayed 3 analysis:

The Include/data/words/words.txt file does not exist.

Solution 1 copy one to solution 2 find the code 'word _ type' => (int) $ safe_codetype, // 1: Number 2: English 3: replace the word with 'word _ type' => 1 (or 2). The verification code is a number or an English

The Dede background verification code is not displayed in all cases. If the verification code can be displayed after it is canceled, it cannot be displayed after it is set. You can try overwriting the data and include directories !!!


II,Compiling mysql with CMakeError atcmake/readline. cmake: 83 (MESSAGE)

-- Could NOT find Curses  (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH)CMake Error at cmake/readline.cmake:83 (MESSAGE):  Curses library not found.  Please install appropriate package, remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.Call Stack (most recent call first):  cmake/readline.cmake:127 (FIND_CURSES)  cmake/readline.cmake:217 (MYSQL_USE_BUNDLED_LIBEDIT)  CMakeLists.txt:257 (MYSQL_CHECK_READLINE)  -- Configuring incomplete, errors occurred!

The error message is that ncurses-devel is not installed. Run the following command:

Step 1: install # yum-y install ncurses-devel Step 2: delete cmakecache.txtand use the findcommand to locate all CMakeCache.txt documents # find/-name CMakeCache.txt and delete all files: # rm-rf/usr/local/src/cmake-2.8.6/Tests/Complex/Cache/CMakeCache.txt # rm-rf/usr/local/src/cmake-2.8.6/Tests/ComplexOneConfig/Cache/CMakeCache.txt # rm-rf/usr/local/src/cmake-2.8.6/Tests/ComplexRelativePaths/Cache/CMakeCache.txt # rm-rf/usr/local/src/mysql-5.5.18/CMakeCache.txt. ...... Delete all the files and then re-run cmake.

Iii. Nginx service configuration error

./configure: error: SSL modules require the OpenSSL library.You can either do not enable the modules, or install the OpenSSL libraryinto the system, or build the OpenSSL library statically from the sourcewith nginx by using --with-openssl=
 
   option.
 

The solution is as follows:

Yum-yinstallopensslopenssl-devel

Run./configure.

Iv. Virtual Memory Error c ++: internal compilererror: Killed

(Program cc1plus)

 

 

c++: internal compiler error: Killed (program cc1plus)Please submit a full bug report,with preprocessed source if appropriate.See 
 
   for instructions.make[2]: *** [sql/CMakeFiles/sql.dir/item_geofunc.cc.o] Error 4make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2make: *** [all] Error 2
 

Solution:


Increase memory; Increase virtual memory
V. bash :__ vte_prompt_command: command not found Solution

I don't know what to do today. As long as I run the command, the prompt "bash: _ vte_prompt_command: command not found" appears. Based on the information on the Internet, I found the source of _ vte_prompt_command, that is,/etc/profile. d. The content is as follows:

# Copyright  2006 Shaun McCance 
 
  # Copyright  2013 Peter De Wachter 
  
   ## This program is free software: you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation, either version 3 of the License, or# (at your option) any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program.  If not, see 
   
    .# Not bash or zsh[ -n "$BASH_VERSION" -o -n "$ZSH_VERSION" ] || return 0# Not an interactive shell[[ $- == *i* ]] || return 0# Not running under vte[ "${VTE_VERSION:-0}" -ge 3405 ] || return 0__vte_urlencode() (  # This is important to make sure string manipulation is handled  # byte-by-byte.  LC_ALL=C  str="$1"  while [ -n "$str" ]; do    safe="${str%%[!a-zA-Z0-9/:_\.\-\!\'\(\)~]*}"    printf "%s" "$safe"    str="${str#"$safe"}"    if [ -n "$str" ]; then      printf "%%%02X" "'$str"      str="${str#}"    fi  done)# Print a warning so that anyone who's added this manually to his PS1 can adapt.# The function will be removed in a later version.__vte_ps1() {  echo -n "(__vte_ps1 is obsolete)"}__vte_osc7 () {  printf "\033]7;file://%s%s\a" "${HOSTNAME:-}" "$(__vte_urlencode "${PWD}")"}__vte_prompt_command() {  local pwd='~'  [ "$PWD" != "$HOME" ] && pwd=${PWD/#$HOME\//\~\/}  printf "\033]0;%s@%s:%s\007%s" "${USER}" "${HOSTNAME%%.*}" "${pwd}" "$(__vte_osc7)"}case "$TERM" in  xterm*|vte*)    [ -n "$BASH_VERSION" ] && PROMPT_COMMAND="__vte_prompt_command"     [ -n "$ZSH_VERSION"  ] && precmd_functions+=(__vte_osc7)    ;;esactrue
   
  
 

I remember not modifying this file. It seems that I only modified it ~ /. Bashrc, and then the prompt vte. sh _ vte_prompt_command appears. Run source/etc/profile. d/vte. sh to solve the problem. You can also add source/etc/profile. d/vte. sh ~ /. In bashrc, execute source ~ /. Bashrc.


<

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.