Burak Çalışkan

FreeBSD Paketler

  • 8 sene önce, Burak Çalışkan tarafından yazılmıştır.
  • FreeBSD Paketler için yorumlar kapalı
  • FreeBSD

pkg install nano

pkg install nginx

pkg install mysql56-server

pkg search php

pkg install php56

pkg install php56-mysql

pkg install php56-mysqli

pkg install php56-zip php56-xml php56-json php56-mcrypt php56-mbstring php56-iconv php56-ctype php56-curl php56-session php56-pdo_sqlite php56-sqlite3

pkg install phpmyadmin
nano /etc/rc.conf
nginx_enable=”YES”
mysql_enable=”YES”
php_fpm_enable=”YES”
service nginx start
service mysql-server start
mysql_secure_installation // root şifresi belirlemek için

service php-fpm start
sockstat -4 -l

nano -w /usr/local/etc/nginx/nginx.conf
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}

fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}

/usr/local/etc/nginx/nginx.conf
//////******////

location ~ \.php{
fastcgi_split_path_info ^(.+\.php)(/.+)$;
set $php_root /usr/home/burak/www
include fastcgi_params;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
}

//////******/////

/usr/home/burak/www
service nginx restart

/usr/share/nginx/www
phpMyAdmin için
fetch https://files.phpmyadmin.net/phpMyAdmin/4.6.0/phpMyAdmin-4.6.0-all-languages.tar.gz

tar -xzvf phpMyAdmin-4.6.0-all-languages.tar.gz

Dışarıdan Erişim vermek için.
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY PASSWORD ‘*BE8EA1A642FBAA61B19B790C3ACC7752633C0C5D’ WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON burak\_%.* TO ‘burak’@’%’;