Talk:Apache HTTP Server

From ArchWiki
Revision as of 09:16, 14 September 2010 by Zenlord (Talk | contribs) (Added comment about restarting apache)

Jump to: navigation, search

Be advised to set "allow_url_fopen" to "On" in /etc/php/php.ini in order to upgrade/update Wordpress properly from the admin panel. (does this info belong here?) --Rataxes 14:13, 23 July 2009 (EDT)

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)

hmm.. doesnt mysql come in /usr/lib/mysql niot /var/lib/mysql as directed?? - ScriptDevil

Split this article

I hope this is what the page is for.

In my opinion setting up LAMP should not contain detailed information about how to set up parts of LAMP. It would be cleaner to only explain how to bring these parts to work together. Especially because of the explanation's integrity. Further more because then users will be able to find a standalone HOWTO for setting up these parts. For example you don't have to read through this page order to get MySQL working. Because of the mentioned integrity I think it would be best to create independent HOWTOs on how to setup MySQL, php and maybe even apache and refer to them from this page.

I've started with MySQL because I know how to setup it and because some parts in this HOWTO are not needed any more and because of that are just confusing.

harlekin 21:13, 13. Mai 2007 (GMT+1)

Restarting apache

AFAIK, the only way that we should encourage users to restart apache is with '# apachectl restart' - this is far cleaner than to abruptly shut down the server

--Zenlord 05:16, 14 September 2010 (EDT)

HOSTNAME in rc.conf

It is not necessary to modyfiy HOSTNAME in rc.conf. I have different names in hosts and rc.conf and it works perfectly :). I've never had to modyfiy them in order to make it work. Zyx 01:52, 23 May 2007 (EDT)

Testing mysql daemon


"Test by visiting http://localhost/phpMyAdmin in a web browser" Phpmyadmin is not a dependency of mysql and installing it is not specified anywhere in the article ... This advice for testing mysql is irrelevant.

Do we need the "http"-user section.

Afaik, the http user is automatically added when you install apache. Do we need to tell the user to add a "http"-user then?

Birger :)

Updated 18 March 2010

I just did a fresh install of Apache and PHP5 and I have updated this article to reflect the defaults in the current Arch packages. In particular I have clarified the section regarding PHP not being associated with .php extensions. dtw


Testing PHP

php-5.3.2-6: There is no test.php in /srv/http, nor indeed is it listed when I run '# pacman -Ql php'. The only file I found with 'test' in the name is /usr/lib/php/build/run-tests.php. As /srv/http is actually empty after php is installed, I wonder if I'm missing something from th package.--Ial 02:09, 10 June 2010 (EDT)