- Install apache
emerge www-servers/apache
rc-update add apache2 default
Or start by manually
sudo /etc/init.d/apache2 start
- Before install the package must check what condition need to follow.
emerge -pv php
- Start to install
USE="apache2 cgi curl gd pdo postgres sockets" emerge php
- Edit apache settings
Edit /etc/conf.d/apache2 add "-D PHP5"
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5"
Edit /etc/apache2/modules.d/70_mod_php5.conf
<IfModule !mod_php5.c> # LoadModule php5_module modules/libphp5.so LoadModule php5_module modules/mod_php.so </IfModule>
Reference:
Q & A:
[Gentoo][apache] Cannot load modules/libphp5.so into server
Note1:
[ebuild N ] app-dicts/aspell-en-6.0.0 179 kB
What is N meaning?
This mean new installation.
Note2:
Apache include php flow
install apache
install php (library)
Settings
–> /etc/conf.d/apache2
–> /etc/apache2/modules.d/00_default_settings.conf (Default settings)
–> /etc/apache2/httpd.conf (Load Module)
0 意見:
張貼留言