Home > CMS Tutorial > DEDECMS > Solve problems caused when installing dedecms

Solve problems caused when installing dedecms

王林
Release: 2021-02-19 09:41:41
forward
2356 people have browsed it

Solve problems caused when installing dedecms

Problems arising when installing dedecms:

MySQL supports On [×]Off (this system cannot be used if it is not supported)

The solution is as follows, Hope it can help everyone:

The php version of this article: php-5.1.1-Win32

Configure the environment according to the user manual in the downloaded discuz!4.0.

Changes:

1. For the php.ini file
Enter C:\PHP, copy php.ini-dist and put it in C:\WINNT (Windows XP/ 2003), rename it to php.ini, then open it with Notepad, use Notepad's search function to search for extension_dir = "./", and point its path to the extensions directory in your PHP directory. , for example: extension_dir = "C:\PHP\ext"; then search register_globals = Off, change Off to On;
Search for;extension=php_mysql.dll, and remove the preceding quotation marks ";".
2. For instructions on configuring IIS in the manual, change "PHP\sapi\php4isapi.dll" to "php5isapi.dll" in the php directory
3. Important: Copy libmysql in the php directory. dll file to system32.

Restart IIS (or restart Apache as well):
Execute the commands one by one in the command prompt:

net stop w3svc
net stop iisadmin
net start w3svc
Copy after login

The information I found on the Internet, everyone It can be solved according to this!

Re:GD supports On [×]Off (not supporting will cause most functions related to pictures to be unavailable or trigger warnings)

If you use PHP configured with IIS
Rename the php.ini-dist file in the installation directory to php.ini and copy it to the Windows directory of the system disk c drive
Open the c:\windows\php.ini file
Find:
extension_dir = "./"
Change to:
extension_dir = "d:\php\ext" (which is the path to your PHP installation directory)
Find:
;extension=php_mbstring.dll
Change to:
extension=php_mbstring.dll
Found:
;extension=php_gd2.dll
Change to:
extension=php_gd2.dll
Found:
;extension=php_mysql.dll
Changed to:
extension=php_mysql.dll
Found:
;extension=php_mcrypt.dll
Changed to:
extension=php_mcrypt.dll
In fact, just remove the semicolon in front of them and save it. If it is under the VISTA system, you have to save it to another place and then cut it over.

Then put php5ts.dll in the php (installation directory) directory , libmysql.dll is copied to the directory C:\Windows\System32.
Copy the php_gd2.dll, php_mysql.dll, php_mbstring.dll files in the php\ext directory to C:\Windows\System32. (If php_gd2.dll is not loaded, php will not be able to process images. If php_mysql.dll is not loaded, php will not support the mysql function library. php_mbstring.dll supports wide characters when using phpmyadmin later)

Then restart IIS and refresh the website , that’s it, of course you have to install mysql

DedeCMS did not select the uploaded file or the size of the selected file exceeded the size

When uploading with DEDECMS, the message "You did not select the uploaded file or selected "The file size exceeds the limit", I obviously uploaded it, so I wondered where the size of the uploaded file was restricted. I searched around in the basic parameters of the dedecms system and only found a setting for the member attachment size. I also changed it, but I thought it wouldn't be useful because I didn't have the membership function enabled! Clearly not this place. So I searched online, O(∩_∩)O haha~, I found the answer! ! ! (Search is the best teacher):

Looking for the php configuration file, I found these lines in php.ini:

; Maximum allowed size for uploaded files.

upload_max_filesize = 2M (PHP default upload file size is 2M)

I changed it to 10M

After restarting the server, you can upload files within 10M, (*^__^* ) Hehe...

In the process, I also discovered the following stuff:

;Maximum size of POST data that PHP will accept.

post_max_size = 2M

It turns out that PHP can also configure the maximum size of POST data.

If you encounter problems with uploading in the future, please change this place!

In fact, on the home page after logging in to dedecms, the PHP environment summary in the basic system information already shows the item "Maximum file supported for uploading".

Related recommendations: 梦Weavercms

The above is the detailed content of Solve problems caused when installing dedecms. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template