| | | | | | | S | M | T | W | T | F | S |
|
|
|
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
|
| | | | | Basic Instructions Before Leaving Earth | | And God said, Let there be a firmament in the midst of the waters, and let it divide the waters from the waters. |
|
|
| # install apache from port
cd /usr/ports/www/apache22
make install
# vi /etc/rc.conf
apache22_enable="YES"
# cd /boot ; vi loader.conf
accf_http_load="YES"
# edit httpd configuration file
vi /usr/local/etc/apache22/httpd.conf
ServerName 192.168.0.1:80
DirectoryIndex index.php index.html index.htm
AddType application/x-httpd-php .php
# Apache 2.x
LoadModule php5_module libexec/apache/libphp5.so
# install mysql
cd /usr/ports/database/mysql51-server
make install
# vi /etc/rc.conf
mysql_enable="YES"
# mysql -u root
# SET PASSWORD FOR ''@'localhost' = PASSWORD('password');
# SET PASSWORD FOR ''@'host.example.com' = PASSWORD('password');
# mysql -u root
# SET PASSWORD FOR 'root'@'localhost' = PASSWORD('password');
# SET PASSWORD FOR 'root'@'host.example.com' = PASSWORD('password');
# install php
pkg_add -r libxml2
-----------------------------------------------------------------
cd ../php-NN
./configure --with-apxs2=/usr/local/sbin/apxs --with-mysql --with-imap=/usr/local/libexec/imapd --with-imap-ssl --enable-ftp
make
make install
cp php.ini-dist /usr/local/lib/php.ini
vi /usr/local/lib/php.ini^M
register_globals=On^M
; Whether to use cookies.
session.use_cookies = 0
LoadModule php5_module modules/libphp5.so
-----------------------------------------------------------------
# Password protecting a directory
vi /usr/local/etc/apache22/httpd.conf
Options Indexes FollowSymLinks
AllowOverride AuthConfig
Order deny,allow
# Create an .htaccess file
AuthName "My Secret Directory"
AuthType Basic
AuthUserFile /usr/local/www/htaccess/.mypassfile
Require valid-user
# Generating a password
# htpasswd -c /usr/local/www/htaccess/.mypassfile username
# Wireless Markup Language
#WML/WAP types
AddType text/vnd.wap.wml .wml
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlscriptc .wmlsc
AddType image/vnd.wap.wbmp .wbmp
# public_html
edit httpd.conf uncomment httpd-userdir.conf
# sudo
cd /usr/ports/security/sudo
make install
Create Thread |
Subject / Message | Started by | View | Last Post | Option |
|
|
|