Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use ports an Yan apache13_modssl+mysql+php+phpmyadmin

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces you how to use ports an inkstone apache13_modssl+mysql+php+phpmyadmin, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Use ports an Yan apache13_modssl+mysql+php+phpmyadmin (transfer) [@ more@]

# cd / usr/ports/databases/mysql41-server

# make

WITH_CHARSET=big5 / / supports tedious Chinese (? Grate Chinese is gbk) and to grate Chinese? Yun Yun? Exhaustion

WITH_XCHARSET=all / / support others? Exhaustion

WITH_OPENSSL=yes / / use secure connection

DB_DIR=/usr/local/mysql / / specify? The position of

WITH_LINUXTHREADS=yes / / using linux? Cheng

SKIP_DNS_CHECK=yes / / an Yan mysql? A little bit? Master Cha? First name? ip

BUILD_OPTIMIZED=yes / /? Improve performance and speed up

Install clean is faster? Want to add BUILD_STATIC=yes, but not the same? Use openssl, the same as? Out? The following information about dirty germanium

You can't use the BUILD_STATIC option when using OpenSSL.

? In each? Lin? Look at the Makefile of the usr/ports/databases/mysql41-server election

.

For more information, and contact details about the security

Status of this software, see the following webpage:

Http://www.mysql.com/

= > Cleaning for mysql-client-4.1.1

= = > Cleaning for p5-DBD-mysql41-2.9003

= = > Cleaning for p5-DBI-137-1.37

= > Cleaning for libtool-1.3.5_1

= > Cleaning for linuxthreads-2.2.3_13

= > Cleaning for openssl-0.9.7c

= > Cleaning for mysql-server-4.1.1

#

So far, mysql-server and mysql-client have? An Yan finished

1.2 Rhyme mysql

In / usr/local/share/mysql in, huh? Eye? There are four elections. CNF? For example? Case, (my-small.cnf, my-medium.cnf, my-large.cnf, my-huge.cnf), root? Department Ken? Grate (? Deposit)? Quantity and service? And rhyming my.cnf. In every? For example? There is truth in all cases and elections.

My-small.cnf / /?? The grate is less than or equal to 64m and only provides very little. Take? (

< =64M) my-medium.cnf //??篦在32M到64M之殓而且和其他服?一起使用如web my-large.cnf //??篦有512M主要是提供???服? my-huge.cnf //??篦有1G到2G主要是提供???服? 我们查看一下机器的内存: # dmesg | grep real real memory = 132825088 (129712K bytes) 本?只有128M ??篦及只是供web使用, 所是用my-medium.cnf 呃??例? # cp /usr/local/share/mysql/my-medium.cnf /etc/my.cnf # ls -l /usr/local ... drwx------ 4 mysql mysql 512 Feb 21 20:57 mysql ... mysql已?是?於mysql 的用?和群酵. 1.3 ??mysql 利用启动脚本去启动mysql #/usr/local/etc/rc.d/mysql-server.sh start # ps -aux | grep mysql mysql 53989 0.0 13.3 66404 16868 p0 IN 10:17PM 0:00.62 /usr/local/libexec/mysql mysql 53990 0.0 13.3 66404 16868 p0 SN 10:17PM 0:00.00 /usr/local/libexec/mysql mysql 53991 0.0 13.3 66404 16868 p0 IN 10:17PM 0:00.00 /usr/local/libexec/mysql 1.4 更改mysql 密瘁 #/usr/local/bin/mysqladmin -u root -p password 'mysql_password' Enter password: //按enter, mysql盍韵?有密瘁 二. 安砚及韵置apache13-modssl 2.1 安装Apache-modssl #cd /usr/ports/www/apache13-modssl/ # make . . . Creating Dummy Certificate for Server (SnakeOil) [use 'make certificate' to create a real one] #make install # make certificate //氧作CA帐酌 ===>

Creating Test Certificate for Server

SSL Certificate Generation Utility (mkcert.sh)

Copyright (c) 1998-2000 Ralf S. Engelschall, All Rights Reserved.

Generating test certificate signed by Snake Oil CA [TEST]

WARNING: Do not use this for real-life/production systems

_

STEP 0: Decide the signature algorithm used for certificate

The generated X.509 CA certificate can contain either

RSA or DSA based ingredients. Select the one you want to use.

Signature Algorithm ((R) SA or (D) SA) [R]: Registering installation for mod_php4-4.3.4

Undefined

Add the following in / usr/local/etc/apache/httpd.conf election? Sentence.

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source. Phps because of little brother? php? Not familiar with it, so no longer, er, what better rhyme does php.ini have? # cd / usr/local/etc

# cp php.ini-recommended php.ini undefined

# / usr/local/etc/rc.d/apache.sh stop

# / usr/local/etc/rc.d/apache.sh start3.3?? php.

Generate test.php and add the following 3 lines to the last page.

# vi / usr/local/www/data/test.php

Undefined

four。 An Yan and Yunding phpMyAdmin.

Install phpmyadmin with ports

# cd / usr/ports/databases/phpmyadmin

# make install clean

# cd / usr/local/www/data/phpMyAdmin

# cp config.inc.php.sample config.inc.php

# chmod 755 config.inc.php

# vi config.inc.phpundefined

$cfg ['PmaAbsoluteUri'] =''

Change to

$cfg ['PmaAbsoluteUri'] = http://yourweburl/phpMyAdmin/''

$cfg ['Servers'] [$I] [' auth_type'] = 'config'; / / Authentication method (config, http or cookie based)?

Change to

$cfg ['Servers'] [$I] [' auth_type'] = 'http'; / / Authentication method (config, http or cookie based)?

$cfg ['Servers'] [$I] [' password'] =''; / / MySQL password (only needed

Change to

$cfg ['Servers'] [$I] [' password'] = 'mysql passwd'; / / MySQL password (only needed)

Undefined

Https://yourweburl/phpMyAdmin/

After:

The following are some Ann Yan? Might have met? Ambrose.

In an Yan mod _ php4?? Out? The following information about germanium.

/ usr/libexec/ld-elf.so.1: Shared object "libintl.so.5" not found solution? Methods:

The reason is that the requirements of the mod_php4 an inkstone of gettext and gmake are not the same, generally speaking, the version of mod_php4 is newer, so it comes out? Something you don't support? Elephant.

Just update your gettext and gmake with cvsup. # cd / usr/ports/devel/gettext

# make deinstall clean & & make reinstall clean

# cd.. / gmake

# make deinstall clean & & make reinstall cleanundefined

On how to use ports an inkstone apache13_modssl+mysql+php+phpmyadmin to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report