<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Install FAMP Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/install-famp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sun, 11 Nov 2018 19:14:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Install Apache MariaDB and PHP 7 on FreeBSD 11</title>
		<link>https://www.osradar.com/install-apache-mariadb-and-php7-on-freebsd-11/</link>
					<comments>https://www.osradar.com/install-apache-mariadb-and-php7-on-freebsd-11/#comments</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Thu, 17 May 2018 08:48:17 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[install apache FreeBSD]]></category>
		<category><![CDATA[Install FAMP]]></category>
		<category><![CDATA[install ohomyadmin on FreeBSD]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=3094</guid>

					<description><![CDATA[<p>I know this wonderful system for a very long time. I like it and it&#8217;s giving me the feeling of security and transparency, the system was hacked some years ago but now, it looks strong and more open. One of the most powerful things on FreeBSD is the stability and the Solid File system.  let me [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-mariadb-and-php7-on-freebsd-11/">Install Apache MariaDB and PHP 7 on FreeBSD 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I know this wonderful system for a very long time. I like it and it&#8217;s giving me the feeling of security and transparency, the system was hacked some years ago but now, it looks strong and more open. One of the most powerful things on FreeBSD is the stability and the Solid File system.  let me tell you how I have installed FAMP  (FreeBSD Apache MariaDB PHP)  on my VirtualBox.</p>
<p>My Test Server is FreeBSD based on VirtualBox tool and its running fine</p>
<pre>root@osradarBSD:~ # uname -a
 FreeBSD osradarBSD 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
 root@osradarBSD:~ #</pre>
<h4><strong>Install Apache 2.4 in FreeBSD<br />
</strong></h4>
<p>To install Apache, please use the tool pkg to avoid any dependencies issues:</p>
<pre>root@osradarFreeBSD:~ # pkg install apache24
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 4 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
 apache24: 2.4.33
 libnghttp2: 1.31.1
 apr: 1.6.3.1.6.1_1
 db5: 5.3.28_6

Number of packages to be installed: 4

The process will require 77 MiB more space.
18 MiB to be downloaded.

Proceed with this action? [y/N]:</pre>
<p><strong>Start Apache at boot</strong></p>
<p>To run apache www server from startup, add</p>
<pre>apache24_enable="yes"</pre>
<p><strong>Start Apache</strong></p>
<pre>root@osradarFreeBSD:~ # service apache24 start
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@osradarFreeBSD:~ #</pre>
<p>Apache conf file in FreeBSD is  &#8220;/usr/local/etc/apache24/httpd.conf&#8221;</p>
<p>Apache DocumentRoot in FreeBSD is under  &#8220;/usr/local/www/apache24/data&#8221;</p>
<p><strong>Check if  Apache web server is running</strong></p>
<p>Go to http://IP</p>
<p><img loading="lazy" class="alignnone size-full wp-image-3113" src="https://www.osradar.com/wp-content/uploads/2018/05/FreeBSD-apache.png" alt="" width="954" height="488" srcset="https://www.osradar.com/wp-content/uploads/2018/05/FreeBSD-apache.png 954w, https://www.osradar.com/wp-content/uploads/2018/05/FreeBSD-apache-300x153.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/FreeBSD-apache-768x393.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/FreeBSD-apache-696x356.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/FreeBSD-apache-821x420.png 821w" sizes="(max-width: 954px) 100vw, 954px" /></p>
<p>It works!!</p>
<h4><strong>How to install  MariaDB On FreeBSD 11.x</strong></h4>
<p>Show the available release:</p>
<pre>root@osradarFreeBSD:/usr/ports/databases # pkg search mariadb
mariadb-connector-c-3.0.3_1 MariaDB database connector for C
mariadb-connector-odbc-3.0.3 MariaDB database connector for odbc
mariadb100-client-10.0.34 Multithreaded SQL database (client)
mariadb100-server-10.0.34 Multithreaded SQL database (server)
mariadb101-client-10.1.33 Multithreaded SQL database (client)
mariadb102-client-10.2.14 Multithreaded SQL database (client)
mariadb102-server-10.2.14 Multithreaded SQL database (server)
mariadb55-client-5.5.60 Multithreaded SQL database (client)
mariadb55-server-5.5.60 Multithreaded SQL database (server)
root@osradarFreeBSD:/usr/ports/databases #</pre>
<p>Now, install the latest Server and Client release<strong> </strong></p>
<pre>root@osradarFreeBSD:/usr/ports/databases # pkg install mariadb102-server-10.2.14 mariadb102-client-10.2.14
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
 mariadb102-server: 10.2.14
 mariadb102-client: 10.2.14
 unixODBC: 2.3.5

Number of packages to be installed: 3

The process will require 239 MiB more space.
32 MiB to be downloaded.

Proceed with this action? [y/N]:</pre>
<p>Now set mysql_enable to YES in /etc/rc.conf  to automate starting MySQL server on next reboot</p>
<p>I’m setting up a medium sized server, so I’m going to copy <kbd>/usr/local/share/mysql/my-medium.cnf</kbd> to <kbd>/usr/local/etc/</kbd> directory using cp command: <code># cp /usr/local/share/mysql/my-medium.cnf /usr/local/etc/my.cnf</code></p>
<p><strong>Set MySQL root password</strong></p>
<pre>'/usr/local/bin/mysqladmin' -u root password 'new-password'</pre>
<p>Alternatively, you can run:</p>
<pre>'/usr/local/bin/mysql_secure_installation'</pre>
<p>If facing any problem, don&#8217;t hesitate to remove all files inside /var/db/mysql :</p>
<p>root@osradarFreeBSD:~ # rm -rf /var/db/mysql/*</p>
<p><strong>Restart MySQL and check</strong></p>
<pre>root@osradarFreeBSD:~ # mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 10.2.14-MariaDB-log FreeBSD Ports

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]&gt; show databases
 -&gt; ;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
4 rows in set (0.00 sec)

MariaDB [(none)]&gt;create database osradar1;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]&gt; CREATE USER 'osradaruser'@'localhost' IDENTIFIED BY '222';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]&gt; GRANT ALL ON osradar1.* TO 'osradaruser'@'localhost';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]&gt; FLUSH privileges;
Query OK, 0 rows affected (0.00 sec)</pre>
<h4><strong>Install   PHP 7 on FreeBSD 11<br />
</strong></h4>
<p>You need 2 packages  mod_php71 php71-mysqli<code class="plain plain"></code></p>
<pre>root@osradarFreeBSD:~ # pkg install mod_php71 php71-mysqli
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
 mod_php71: 7.1.17
 php71-mysqli: 7.1.17
 php71: 7.1.17
Number of packages to be installed: 3
The process will require 27 MiB more space.
4 MiB to be downloaded.
Proceed with this action? [y/N]:</pre>
<p>Copy your php.ini from the template:</p>
<pre>root@osradarFreeBSD:~ # ls /usr/local/etc/php.*
php.conf php.ini-development php.ini-production
root@osradarFreeBSD:~ # cp /usr/local/etc/php.ini-development /usr/local/etc/php.ini </pre>
<p>In order to configure PHP, you needed to edit the <em>httpd.conf</em> file.</p>
<p>Make sure that the line to load the <em>php7_module</em> did exist, and add the  AddType below:</p>
<pre>
LoadModule php7_module libexec/apache24/libphp7.so
AddType application/x-httpd-php .php</pre>
<div> In the <em>dir_module</em> entry, added <em>index.php</em> to the existing <em>index.html</em> in the <em>DirectoryIndex</em>:</div>
<pre>
&lt;IfModule dir_module&gt;   DirectoryIndex index.php index.html&lt;/IfModule&gt;</pre>
<p>Also, add the following lines at the end of the file:</p>
<pre>&lt;FilesMatch "\.php$"&gt;
    SetHandler application/x-httpd-php
&lt;/FilesMatch&gt;
&lt;FilesMatch "\.phps$"&gt;
    SetHandler application/x-httpd-php-source
&lt;/FilesMatch&gt;
</pre>
<p>Exit.</p>
<p>Check if the syntaxes are ok.</p>
<pre>root@osradarFreeBSD:~ # httpd -t
Syntax OK</pre>
<p>Now, create the PHP info test  page</p>
<pre>vi /usr/local/www/apache24/data/test.php</pre>
<p>Add</p>
<p><code class="plain plain">&lt;?php phpinfo(); ?&gt;</code></p>
<p>Restart  apache and  check http://ip/test.php</p>
<p><img loading="lazy" class="alignnone size-full wp-image-3125" src="https://www.osradar.com/wp-content/uploads/2018/05/phpinfo.png" alt="" width="1157" height="553" srcset="https://www.osradar.com/wp-content/uploads/2018/05/phpinfo.png 1157w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo-300x143.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo-768x367.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo-1024x489.png 1024w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo-696x333.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo-1068x510.png 1068w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo-879x420.png 879w" sizes="(max-width: 1157px) 100vw, 1157px" /></p>
<p><img loading="lazy" class="alignnone size-full wp-image-3126" src="https://www.osradar.com/wp-content/uploads/2018/05/phpinfo2.png" alt="" width="1253" height="954" srcset="https://www.osradar.com/wp-content/uploads/2018/05/phpinfo2.png 1253w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo2-300x228.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo2-768x585.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo2-1024x780.png 1024w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo2-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo2-696x530.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo2-1068x813.png 1068w, https://www.osradar.com/wp-content/uploads/2018/05/phpinfo2-552x420.png 552w" sizes="(max-width: 1253px) 100vw, 1253px" /></p>
<h4 id="install-phpmyadmin"><strong>Install phpMyAdmin on FreeBSD 11</strong></h4>
<p>phpMyAdmin is also available in default repository of FreeBSD. You can install phpMyAdmin directly by running the following command.</p>
<p>Please find the release of phpMyAdmin:</p>
<pre>root@osradarFreeBSD:/usr/local/www/apache24/data # pkg search phpmyadmin
phpMyAdmin-php56-4.8.0.1 Set of PHP-scripts to manage MySQL over the web
phpMyAdmin-php70-4.8.0.1 Set of PHP-scripts to manage MySQL over the web
phpMyAdmin-php71-4.8.0.1 Set of PHP-scripts to manage MySQL over the web
phpMyAdmin-php72-4.8.0.1 Set of PHP-scripts to manage MySQL over the web
root@osradarFreeBSD:/usr/local/www/apache24/data #</pre>
<p>Install now the release compatible with your PHP:</p>
<pre class="command">pkg install phpMyAdmin-php71-4.8.0.1


New packages to be INSTALLED:
 phpMyAdmin-php71: 4.8.0.1
 php71-session: 7.1.17
 php71-xml: 7.1.17
 php71-ctype: 7.1.17
 php71-openssl: 7.1.17
 php71-filter: 7.1.17
 php71-gd: 7.1.17
 php71-json: 7.1.17
 php71-mbstring: 7.1.17
 oniguruma: 6.8.1
 php71-zlib: 7.1.17
 php71-zip: 7.1.17
 libzip: 1.3.2
 php71-bz2: 7.1.17</pre>
<p>The above command will download and install phpMyAdmin. The application will be installed in <span class="system">/usr/local/www/phpMyAdmin/</span> directory.</p>
<p>Copy the sample phpMyAdmin configuration  from the templates:</p>
<pre class="command">cp /usr/local/www/phpMyAdmin/config.sample.inc.php /usr/local/www/phpMyAdmin/config.inc.php</pre>
<p>Make an symbolik of phpmyadmin in Root apache  folder .</p>
<pre>ln -s /usr/local/www/phpMyAdmin/ /usr/local/www/apache24/data/phpmyadmin</pre>
<p>Restart the Apache web server by running:</p>
<pre class="command">service apache24 restart</pre>
<p>Access phpMyAdmin</p>
<p>you can access from http://ip/phpmyadmin</p>
<p><img loading="lazy" class="alignnone size-full wp-image-3130" src="https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin1.png" alt="" width="1206" height="673" srcset="https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin1.png 1206w, https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin1-300x167.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin1-768x429.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin1-1024x571.png 1024w, https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin1-696x388.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin1-1068x596.png 1068w, https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin1-753x420.png 753w" sizes="(max-width: 1206px) 100vw, 1206px" /></p>
<p><img loading="lazy" class="alignnone size-full wp-image-3131" src="https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin2.png" alt="" width="1070" height="714" srcset="https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin2.png 1070w, https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin2-300x200.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin2-768x512.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin2-1024x683.png 1024w, https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin2-696x464.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin2-1068x713.png 1068w, https://www.osradar.com/wp-content/uploads/2018/05/phpmyadmin2-629x420.png 629w" sizes="(max-width: 1070px) 100vw, 1070px" /></p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-apache-mariadb-and-php7-on-freebsd-11/">Install Apache MariaDB and PHP 7 on FreeBSD 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-apache-mariadb-and-php7-on-freebsd-11/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
