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 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

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