Difference between revisions of "Talk:Apache HTTP Server"

From ArchWiki
Jump to navigation Jump to search
(→‎LAMP Guide?: new section)
Line 39: Line 39:
 
:You can also get PHP to work by using the {{ic|mod_mpm_prefork}} as described in the first note in the PHP configuration section. You are right that you can also create an thread-safe PHP, but this is not recommended by PHP devs.[http://www.php.net/manual/en/install.unix.apache2.php] I think way currently described is the "right" way, but I'm not sure about that. --[[User:Lonaowna|Lonaowna]] ([[User talk:Lonaowna|talk]]) 09:25, 10 March 2014 (UTC)
 
:You can also get PHP to work by using the {{ic|mod_mpm_prefork}} as described in the first note in the PHP configuration section. You are right that you can also create an thread-safe PHP, but this is not recommended by PHP devs.[http://www.php.net/manual/en/install.unix.apache2.php] I think way currently described is the "right" way, but I'm not sure about that. --[[User:Lonaowna|Lonaowna]] ([[User talk:Lonaowna|talk]]) 09:25, 10 March 2014 (UTC)
 
:: Note about apache 2.4 upgrade is already added. Close. --[[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 11:47, 31 August 2014 (UTC)
 
:: Note about apache 2.4 upgrade is already added. Close. --[[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 11:47, 31 August 2014 (UTC)
 +
 +
There used to be a really good LAMP guide here, is there any way I can save it?  The LAMP page history is just a history of redirects now. :(
 +
 +
== LAMP Guide? ==
  
 
There used to be a really good LAMP guide here, is there any way I can save it?  The LAMP page history is just a history of redirects now. :(
 
There used to be a really good LAMP guide here, is there any way I can save it?  The LAMP page history is just a history of redirects now. :(

Revision as of 00:14, 1 September 2014

PID-errors

Keep getting PID-errors: systemd[1]: PID file /run/httpd/httpd.pid not readable (yet?) after start. (even when modules/mod_unique_id.so is disabled)

About the PHP Installation, mod_mpm_prefork seems not the best choice: https://serverfault.com/questions/383526/how-do-i-select-which-apache-mpm-to-use/383634#383634 I would vote for mod_proxy_handler

Beta990 (talk) 15:14, 16 March 2014 (UTC)

unique_id_module

If the service httpd don't start, take a look at /var/log/httpd/error_log. If appears this line: -[alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "myhost" you must uncomment the line: LoadModule unique_id_module. Restart httpd and now it should work. --Nak 17:22, 22 April 2007 (GMT+1)

Using SSL

Could the SSL section be expanded to include how to use .htaccess and mod_rewrite to redirect traffic for certain sections or the whole site? I found apache2-forcing-all-inbound-traffic-to-ssl to be a useful resource in this respect. Corburn 13:58, 23 March 2012 (EDT)

userdir disable

I think that section need add:

#LoadModule userdir_module modules/mod_userdir.so

to fully disable userdir.

Jabalv (talk) 18:48, 25 December 2013 (UTC)

According to [1]:
"User directory substitution is not active by default in versions 2.1.4 and later. In earlier versions, UserDir public_html was assumed if no UserDir directive was present."
So I think it is safe to just not include the conf. --Lonaowna (talk) 18:20, 23 August 2014 (UTC)

apache 2.4 upgrade

PHP breaks with apache2.4 install due to the PHP not being "threadsafe" by default, and MPM in apache being turned on by default, and is now core apache. PHP_ZTS[2] in AUR fixes this. this is simply php recompiled.

You can also get PHP to work by using the mod_mpm_prefork as described in the first note in the PHP configuration section. You are right that you can also create an thread-safe PHP, but this is not recommended by PHP devs.[3] I think way currently described is the "right" way, but I'm not sure about that. --Lonaowna (talk) 09:25, 10 March 2014 (UTC)
Note about apache 2.4 upgrade is already added. Close. --Fengchao (talk) 11:47, 31 August 2014 (UTC)

There used to be a really good LAMP guide here, is there any way I can save it? The LAMP page history is just a history of redirects now. :(

LAMP Guide?

There used to be a really good LAMP guide here, is there any way I can save it? The LAMP page history is just a history of redirects now. :(