Install Apache/PHP/MySQL on FreeBSD

FreeBSD

To install Apache, run pkg install apache24 Enable Apache with vi /etc/rc.conf Add apache24_enable=”yes” Start Apache with service apache24 start Install php with pkg install php74 mod_php74 Edit apache config and enable PHP vi /usr/local/etc/apache24/httpd.conf Add DirectoryIndex index.php index.html SetHandler application/x-httpd-php SetHandler application/x-httpd-php-source Restart Apache service apache24 restart At this point, PHP scripts will work … Read more

Install MySQL 8 on FreeBSD

MySQL MariaDB

To install MySQL 8 on FreeBSD 13, run pkg install mysql80-server-8.0.25_2 Enable start on boot echo ‘mysql_enable=”YES”‘ >> /etc/rc.conf Start MySQL server service mysql-server start By default MySQL root user have no password set. You can login with the command mysql See FreeBSD

Install rsync in freebsd from source

On the server, i want to install rsync have no ports as it was older version FreeBSD 5.4 and is not supported, so install rsync from source. http://www.samba.org/ftp/rsync/ mkdir /usr/local/src cd /usr/local/src wget http://www.samba.org/ftp/rsync/rsync-3.0.5.tar.gz tar -zxvf rsync-3.0.5.tar.gz cd rsync-3.0.5 ./configure make make install After install, you need to run rehash command newinst# rsync rsync: Command … Read more

FreeBSD ports Sucks

During 2004, i used to use FreeBSD 4 and 5 servers. During this time Cpanel Control panel supported FreeBSD. After cpanel stopped supporting FreeBSD, all the servers slowly got converted to Linux. I was FreeBSD free for several years. Today i decided to try FreeBSD again. I tried to install node.js from ports to see … Read more

Installing Software with FreeBSD ports

FreeBSD ports allows installing software from source. Update the tree. This will create /usr/ports if missing. portsnap fetch update portsnap extract Updating Index Before you can use ports, you need to fetch index. To do this, run cd /usr/ports make fetchindex Find Software To find software, use cd /usr/ports make search name=php Install a Software … Read more

FreeBSD

Installing Software in FreeBSD with pkg Installing Software with FreeBSD ports Install MySQL 8 on FreeBSD Install Apache/PHP/MySQL on FreeBSD FreeBSD /usr/ports: No such file or directory.

Installing Software in FreeBSD with pkg

pkg command is used to install software in FreeBSD. To update package repo, run pkg update -f Example root@ok-vm:~ # pkg update -f Updating FreeBSD repository catalogue… pkg: Repository FreeBSD has a wrong packagesite, need to re-create database Fetching meta.txz: 100% 940 B 0.9kB/s 00:01 Fetching packagesite.txz: 100% 6 MiB 878.0kB/s 00:07 Processing entries: 100% … Read more