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

Tutorial for installing httpd+php+mysql+ openssl on arch linux

2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

This article mainly introduces "the tutorial of installing httpd+php+mysql+ openssl on arch linux". In the daily operation, I believe that many people have doubts about installing httpd+php+mysql+ openssl on arch linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "the tutorial of installing httpd+php+mysql+ openssl on arch linux". Next, please follow the editor to study!

It is very easy to install on arch linux, as long as you execute:

# pacman-Sy apache php mysql openssl

Select Y according to the prompt to install!

1. Modify apache configuration file

By default, apache does not support PHP, please modify the configuration file:

Vi / etc/httpd/conf/httpd.conf

Put

# LoadModule php5_module lib/apache/libphp5.so

Of # to remove:

LoadModule php5_module lib/apache/libphp5.so

Because apache does not start ssl by default, you should:

1) modify / etc/conf.d/httpd

HTTPD_USE_SSL= "no"

Change it to: HTTPD_USE_SSL= "yes"

2) generate key of CA

# cd / etc/httpd/conf

# openssl req-new-x509-newkey rsa:1024-days 3650-keyout server.key-out server.crt

# openssl rsa-in server.key-out server.key

3) modify / etc/httpd/conf/ssl.conf

SSLCertificateFile / etc/httpd/conf/server.crt

SSLCertificateKeyFile / etc/httpd/conf/server.key

Finally start apache

/ etc/rc.d/httpd start

two。 Start mysql

/ etc/rc.d/mysqld start

Finally, you can open WEB to test:

Easy, isn't it?

Here is my ssl file:

Listen 443

AddType application/x-x509-ca-cert .crt

AddType application/x-pkcs7-crl .crl

SSLPassPhraseDialog builtin

SSLSessionCache dbm:/var/log/httpd/ssl_scache

SSLSessionCacheTimeout 300

SSLMutex file:/var/log/httpd/ssl_mutex

SSLRandomSeed startup builtin

SSLRandomSeed connect builtin

# here I write the direct IP address

DocumentRoot "/ data/blog"

ServerName blog.ourlinux.net:443

ServerAdmin bixuan@ourlinux.net

ErrorLog / var/log/httpd/blog.ourlinux.net_443_error_log

TransferLog / var/log/httpd/blog.ourlinux.net_443_access_log

SSLEngine on

SSLCipherSuite all, "ADH", "ADH", "export 56", "RC4,"RSAV,"HIGH,"MEDIUM,"LOW,"SSLv2,"EXP,"null."

SSLCertificateFile / etc/httpd/conf/server.crt

SSLCertificateKeyFile / etc/httpd/conf/server.key

SSLCACertificatePath / etc/httpd/conf/ssl_blog.ourlinux.net

SSLCACertificateFile / etc/httpd/conf/server.crt

SSLVerifyClient require

SSLVerifyDepth 1

SSLOptions + StdEnvVars

SSLOptions + StdEnvVars

SetEnvIf User-Agent ". * MSIE.*"

Nokeepalive ssl-unclean-shutdown

Downgrade-1.0 force-response-1.0

CustomLog / var/log/httpd/ssl_request_log

"t h {SSL_PROTOCOL} x {SSL_CIPHER} x" r "b"

Add: because I have a virtual host in my ssl, be sure to add: httpd.conf:

NameVirtualHost ip:443

This sentence!

Every time you modify the configuration file, please remember: reload

# / etc/rc.d/httpd reload

At this point, the study of "the tutorial on installing httpd+php+mysql+ openssl on arch linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

Wechat

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

12
Report