############################# web server ###################
appache is already preinstalled so this is just config
=> edit /etc/rc.conf.local,
#vi /etc/rc.conf.local
(add line)
httpd_flags=""
# apachectl start
For webserver to outside the firewall must be changed:
(under line)
pass in on $EXTIF inet proto tcp from any to any port 22 flags S/SA modulate state
(add this line)
pass in on $EXTIF inet proto tcp from any to any port 80 flags S/SA modulate state
If you also want MySQL PHP install the following
############################################################
# manual mysql/php/phpmyadmin #
############################################################
############################################################
# install mysql
cd /usr/ports/www/php4/core && make install clean
cd ../extensions && env FLAVOR="no_x11 no_pgsql no_sybase_ct" make install clean
pkg_add /usr/ports/packages/i386/www/php4-mysql-4.2.3.tgz
/usr/local/sbin/phpxs -a mysql
/usr/local/sbin/phpxs -s
cp /usr/local/share/doc/php4/php.ini-recommended /var/www/conf/php.ini
apachectl restart
// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
// You can disable a server config entry by setting host to '.
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = ';
$cfg['Servers'][$i]['socket'] = '/var/run/mysql/mysql.sock';
$cfg['Servers'][$i]['connect_type'] = 'socket';
$cfg['Servers'][$i]['compress'] = FALSE;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.