Open main menu

lensowiki β

Changes

Help:Running MediaWiki on Gentoo Linux

1,992 bytes removed, 03:41, 8 March 2011
Configure Apache
Another NOTE: you can also add 'session' in the USE flags permanently with ufed. I have not encountered yet problems with this setting. Also make sure that mysql support is added in USE when emerging php (stating the obvious but it doesn't hurt :))
== Configure Apache ==start web server by apache2Or /etc/init.d/apache2 startStop it by apache2ctl stopOr /etc/init.d/apache2 stopAfter making changes to the Apache config files, you can quickly restart Apache by /etc/init.d/apache2 restart (get services going by default) rc-update add apache2 default (turn on services) /etc/init.d/apache2 start=== Add PHP Support ===apache2 uses modules to dynamically load and unload extra functionalities. php support is one of them.There is no mod_php module in apache server after the default installation. We need to add mod_php into apache.Edit the configuration file of apache2==== adding php support (step 1) ====TOzlEN vi /etc/conf.d/apache2<pre>#APACHE2_OPTSa href="-D SSL"APACHE2_OPTS="-D SSL -D PHP4"</pre> http:/etc/initdculcbzqmiza.dcom/apache2 restart Gentoo automatically installs <tt">/etc/apache2/modules.d/70_mod_php.confdculcbzqmiza</tta>which contains the directives to load the module, as described in step 2. The <tt>-D PHP4<[url=http:/tt> is necessary to pass the <tt>IfDefine PHP4</tt> which wraps <tt>70_mod_phpabubswbanoxn.conf<com/tt>. (This is with <tt>net-www]abubswbanoxn[/apache-2.0.54-r5</tt>.) url], [link==== adding php support (step 2) ==== vi http:/etc/apache2/conf/apache2lwmwifjppkvk.conf or vi com/etc]lwmwifjppkvk[/apache2/httpd.confYou will see module list in apache2.conf<pre>LoadModule access_module modules/mod_access.soLoadModule auth_module modules/mod_auth.soLoadModule auth_anon_module modules/mod_auth_anon.soLoadModule auth_dbm_module modules/mod_auth_dbm.so</pre>or you can edit /etc/apache2/modules.d/*.conflink], where *.conf is the name of the module ( exhttp: 70_mod_php.conf ) Add mod_php into it by one more line: LoadModule php4_module modules/libphp4.soConsequently add .php file name handling capability by adding <pre> AddType application/x-httpd-php .php AddType application/x-httpd-php .phtml AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source nmlinwbdwtdk.phps<com/pre>save apache2.conf and restart apache server apache2ctl restartor /etc/init.d/apache2 restartWe now have an apache server with php support.
== Configure MySQL ==
Anonymous user