Get the App
SLTechnology News&Howtos  ›  Database  › 

Debian + apache2 + php4 + mysql + phpmyadmin + mt

Shulou Source: shulou.com Published: 2022-06-01 04:53:23 10月01日 Update

Debian + apache2 + php4 + mysql + phpmyadmin + mt (transfer) [@ more@] 1. Install debian, manual partition, var and home separately, did not choose to install any packages, the source chose http, the default first website b http://mirrors.kernel.org.

two. Start up smoothly, with ssh

Apt-get update

Apt-get dist-upgrade

Reboot

three. Apt-get install mysql

four. Apt-get install apache2

five. Apt-get install php4

Apt-get install libapache2-mod-php4

Apt-get install php4-gd

Apt-get install php4-mysql

It is possible to modify php.ini,/etc/php4/apache2/php.ini, modify the maximum allowed memory, look for memory_limit = 8m to change to memory_limit = 200m, modify the maximum allowed upload size, look for upload_max_filesize = 2m, change to upload_max_filesize = 10m, allow mysql and gd modules, and check whether the file contains the following code if it is not added. (the default is that something is added at the end of the configuration file, check it just in case.) extension= mysql.soextension=gd.so saves and closes the file.

six. Apt-get phpmyadmin, login to change the root password, there may be session preservation problems, always can not log in, the method is to modify the login method, using http login.

seven. Download mt, copy everything except in the static folder to the cgi directory / usr/lib/cgi-bin/, configuration mt-config.cgi, modify the mysql database connection, modify the static directory location, modify the cgi directory location. Everything in the static folder is placed under the root directory / var/www/, run http: / / blog.ouc.edu.cn/cgi-bin/mt.cgi to show the initial configuration, enter the initial password username: Melody, password: Nelson, and then create a new blog substation, configure the installation directory, upload the previously retained upload folder directory pic, import the original data, ok.

Tags: File directory login configuration password folder maximum location data method check select just in case code memory substation size manual copy database Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Microsoft Apple Shulou Tech Info Huawei