You are on page 1of 5

[BASIC]

https://www.linux.com/learn/intro-to-linux/2017/5/how-kill-process-command-
line
https://dev.mysql.com/doc/mysql-windows-excerpt/8.0/en/resetting-permissions-
windows.html
https://ruswandar.wordpress.com/2012/08/03/cara-reset-password-root-mysql-
freebsd/
php in conf =>
https://developerslogblog.wordpress.com/2017/07/01/freebsd-11-apache-mysql-and-php-
famp/
Apache htdocs => /usr/local/www/apache24/data/
Apache httpd.conf => /usr/local/etc/apache24/httpd.conf
Php ini => /usr/local/etc/
nextcloud => https://www.rosehosting.com/blog/how-to-install-
nextcloud-11-on-centos-7/
=> https://forums.freenas.org/index.php?
threads/how-to-install-nextcloud-13-in-freenas-with-all-checks-passed-updated-to-
use-iocage.61934/

[/BASIC]

[rc.conf]
The file rc.conf contains descriptive information about the local host
name, configuration details for any potential network interfaces and
which services should be started up at system initial boot time. In new
installations, the rc.conf file is generally initialized by the system
installation utility, sysinstall(8).

path : /etc/rc.conf
[/rc.conf]

# portsnap fetch
(tunggu hingga selesai)
# portsnap extract
(tunggu hingga selesai)
# portsnap update
(untuk memastikan ports adalah paket yang terbaru)

[install apache]
Install Apache24 dengan menggunakan perintah ini

# cd /usr/ports/www/apache24/
(untuk masuk ke directori ports apache24)
# make install clean
(untuk mengistall paket apache)
pengistalan ini akan membutuhkan waktu yang cukup lama, jadi anda harus
bersabar...
setelah selesai, edit file rc.conf
# ee /etc/rc.conf
jika belum ada kata apache24_enable="YES"
[/install apache]

[Install MySQL]
1. Go to the port for the MySQL server:
cd /usr/ports/databases/mysql56-server
make install clean

2. Add the following line to /etc/rc.conf:


echo 'mysql_enable="YES"' >> /etc/rc.conf
3. And start the mysql server:
/usr/local/etc/rc.d/mysql-server start

4. Then set a password for the MySQL root user:


/usr/local/bin/mysqladmin -u root password 'your-password'

[ERROR!]
Check your /var/db/mysql folder, if it contains files, make a backup
and delete dir content:
rm -rf /var/db/mysql/*
Then do a data directory initialization:
/usr/local/libexec/mysqld --initialize --user=mysql

You should get a new temporary password, write it down, then start
mysql-server

service mysql-server start


After mysql starts, secure the installation via:
/usr/local/bin/mysql_secure_installation
[/ERROR]
[/Install MySQL]

[Install PHP]
mengistall PHP55 dengan perintah berikut

# cd /usr/ports/lang/php55
(untuk masuk ke directori ports php55)
# make install clean
(untuk mengistall paket php55)
tunggu hingga selesai

sekarang kita akan menginstall juga modul php untuk mysql, dengan perintah
berikut
# cd /usr/ports/lang/php55-extensions
(untuk masuk ke directori ports extensi php)
# make config
(untuk memilih paket yang akan di install)
pilih paket “MySQL databases support“
# make install clean
(untuk menginstall paket ekstensi php55)

<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>

[/Install PHP]

[redis]
To setup "redis" you need to edit the configuration file:
/usr/local/etc/redis.conf

To run redis from startup, add redis_enable="YES"


in your /etc/rc.conf.
[/redis]

[phpmyadmin]
2.2
Alias /phpmyadmin "/usr/local/www/phpMyAdmin/"

<Directory "/usr/local/www/phpMyAdmin/">
Options none
AllowOverride Limit
Order Deny,Allow
Require all granted
</Directory>
2.4
<Directory /usr/local/www/phpMyAdmin>
Require all granted
DirectoryIndex index.php
</Directory>
[/phpmyadmin]

[add+]
********************************* WARNING *********************************

FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the


system administrator.

*********************************** NOTE **********************************

This package installs symlinks to support root certificates discovery by


default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual


intervention.

If you prefer to do this manually, replace the following symlinks with


either an empty file or your site-local certificate bundle.

* /etc/ssl/cert.pem
* /usr/local/etc/ssl/cert.pem
* /usr/local/openssl/cert.pem

***************************************************************************
Message from freetype2-2.9.1:

The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as
the default, emulating a modern version of ClearType. This change inevitably
leads to different rendering results, and you might change port's options to
adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment
variable).

The environment variable "FREETYPE_PROPERTIES" can be used to control the


driver properties. Example:

FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
cff:no-stem-darkening=1 \
autofitter:warping=1
This allows to select, say, the subpixel hinting mode at runtime for a given
application.

The controllable properties are listed in the section "Controlling FreeType


Modules" in the reference's table of contents
(/usr/local/share/doc/freetype2/reference/ft2-toc.html, if documentation was ins
talled).
Message from openldap-client-2.4.46:

************************************************************

The OpenLDAP client package has been successfully installed.

Edit
/usr/local/etc/openldap/ldap.conf
to change the system-wide client defaults.

Try `man ldap.conf' and visit the OpenLDAP FAQ-O-Matic at


http://www.OpenLDAP.org/faq/index.cgi?file=3
for more information.

************************************************************
Message from cclient-2007f_3,1:

================================================================================
Warning: You have chosen to include SSL support. Applications/ports that use
the cclient library but do not support SSL may stop working or have problems
linking. Linking them explicitly with ssl (-lssl -lcrypto) may or may not help.
================================================================================

===> NOTICE:

The cclient port currently does not have a maintainer. As a result, it is


more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-
contributing.html#maintain-port
Message from redis-4.0.10:

===> CONFIGURATION NOTE:

To setup "redis" you need to edit the configuration file:


/usr/local/etc/redis.conf

To run redis from startup, add redis_enable="YES"


in your /etc/rc.conf.
Message from mod_php72-7.2.8:

***************************************************************

Make sure index.php is part of your DirectoryIndex.

You should add the following to your Apache configuration file:


<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>

*********************************************************************

[/add+]

You might also like