Saturday, February 29, 2020
𝐇𝐨𝐰 𝐓𝐨 𝐢𝐧𝐬𝐭𝐚𝐥𝐥 𝐂𝐨𝐝𝐞𝐈𝐠𝐧𝐢𝐭𝐞𝐫 𝐰𝐢𝐭𝐡 𝐚𝐩𝐚𝐜𝐡𝐞𝟐 𝐎𝐧 𝐔𝐛𝐮𝐧𝐭𝐮 𝟏𝟖.𝟎𝟒 𝐋𝐓𝐒
CodeIgniter is a free, open source and powerful PHP framework with a very small footprint, created by Rick Ellis in 2006. It is specially built for developers who need a simple and elegant toolkit to create full-featured web applications. It comes with lot's of features including, Light Weight, Active Record Database Support, Image Manipulation Library, Help supports, URI Routing, Model-View-Controller Based System and much more.
Saturday, February 22, 2020
How To Install Gitea Git Service With Apache2 on Ubuntu 18.04
Video Tutorial -https://youtu.be/zcSguHqH0Iw
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Gitea is an alternative open source, self-hosted version control system powered by git. Gitea is written in Golang and is a lightweight solution to be hosted on any platform.
𝐎𝐟𝐟𝐜𝐢𝐚𝐥 𝐖𝐞𝐛𝐬𝐢𝐭𝐞:https://gitea.io/en-us/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧- 𝐎𝐬:𝐔𝐛𝐮𝐧𝐭𝐮 𝟏𝟖.𝟎𝟒 𝐋𝐓𝐒 𝐁𝐢𝐨𝐧𝐢𝐜 𝐁𝐞𝐚𝐯𝐞𝐫 𝟔𝟒𝐁𝐢𝐭 | 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞 :𝐰𝐰𝐰.𝐲𝐨𝐮𝐫𝐝𝐨𝐦𝐚𝐢𝐧.𝐜𝐨𝐦 |𝐈𝐏 𝐚𝐝𝐝𝐫𝐞𝐬𝐬- 𝟏𝟗𝟐.𝟏𝟔𝟖.𝟏.𝟓𝟎
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common net-tools git make wget curl lsb-release
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main'
apt-get update ; apt install -y apache2 mariadb-server mariadb-client
systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation
a2enmod proxy proxy_http
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit
wget https://github.com/go-gitea/gitea/releases/download/v1.5.1/gitea-1.5.1-linux-amd64
cp gitea-1.5.1-linux-amd64 /usr/local/bin/gitea ; chmod 755 /usr/local/bin/gitea
adduser --system --shell /bin/bash --group --disabled-password --home /home/gitea gitea
mkdir -p /etc/gitea /var/lib/gitea/{custom,data,indexers,public,log} ; chown gitea:gitea /etc/gitea /var/lib/gitea/{custom,data,indexers,public,log} ; chmod 750 /var/lib/gitea/{data,indexers,log} ; chmod 770 /etc/gitea
nano /etc/systemd/system/gitea.service
[Unit]
Description=Gitea
After=syslog.target
After=network.target
After=mysql.service
[Service]
RestartSec=2s
Type=simple
User=root
Group=root
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
Restart=always
Environment=USER=root HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target
systemctl start gitea ; systemctl status gitea ; systemctl enable gitea
leafpad /etc/apache2/sites-available/yourdomain.conf
<VirtualHost *:80>
ServerName yourdomain.com
ServerAdmin admin@yourdomain.com
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
TransferLog /var/log/apache2/yourdomain_access.log
ErrorLog /var/log/apache2/yourdomain_error.log
</VirtualHost>
a2ensite yourdomain ; a2dissite 000-default.conf ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com/install. Y
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
𝐇𝐨𝐰 𝐓𝐨 𝐢𝐧𝐬𝐭𝐚𝐥𝐥 𝐂𝐨𝐝𝐞𝐈𝐠𝐧𝐢𝐭𝐞𝐫 𝐰𝐢𝐭𝐡 Nginx 𝐎𝐧 𝐔𝐛𝐮𝐧𝐭𝐮 𝟏𝟖.𝟎𝟒 𝐋𝐓𝐒
Video Tutorial -https://youtu.be/QBkLJB3Mvy0
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
𝐂𝐨𝐝𝐞𝐈𝐠𝐧𝐢𝐭𝐞𝐫 𝐢𝐬 𝐚 𝐟𝐫𝐞𝐞, 𝐨𝐩𝐞𝐧 𝐬𝐨𝐮𝐫𝐜𝐞 𝐚𝐧𝐝 𝐩𝐨𝐰𝐞𝐫𝐟𝐮𝐥 𝐏𝐇𝐏 𝐟𝐫𝐚𝐦𝐞𝐰𝐨𝐫𝐤 𝐰𝐢𝐭𝐡 𝐚 𝐯𝐞𝐫𝐲 𝐬𝐦𝐚𝐥𝐥 𝐟𝐨𝐨𝐭𝐩𝐫𝐢𝐧𝐭, 𝐜𝐫𝐞𝐚𝐭𝐞𝐝 𝐛𝐲 𝐑𝐢𝐜𝐤 𝐄𝐥𝐥𝐢𝐬 𝐢𝐧 𝟐𝟎𝟎𝟔. 𝐈𝐭 𝐢𝐬 𝐬𝐩𝐞𝐜𝐢𝐚𝐥𝐥𝐲 𝐛𝐮𝐢𝐥𝐭 𝐟𝐨𝐫 𝐝𝐞𝐯𝐞𝐥𝐨𝐩𝐞𝐫𝐬 𝐰𝐡𝐨 𝐧𝐞𝐞𝐝 𝐚 𝐬𝐢𝐦𝐩𝐥𝐞 𝐚𝐧𝐝 𝐞𝐥𝐞𝐠𝐚𝐧𝐭 𝐭𝐨𝐨𝐥𝐤𝐢𝐭 𝐭𝐨 𝐜𝐫𝐞𝐚𝐭𝐞 𝐟𝐮𝐥𝐥-𝐟𝐞𝐚𝐭𝐮𝐫𝐞𝐝 𝐰𝐞𝐛 𝐚𝐩𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬. 𝐈𝐭 𝐜𝐨𝐦𝐞𝐬 𝐰𝐢𝐭𝐡 𝐥𝐨𝐭'𝐬 𝐨𝐟 𝐟𝐞𝐚𝐭𝐮𝐫𝐞𝐬 𝐢𝐧𝐜𝐥𝐮𝐝𝐢𝐧𝐠, 𝐋𝐢𝐠𝐡𝐭 𝐖𝐞𝐢𝐠𝐡𝐭, 𝐀𝐜𝐭𝐢𝐯𝐞 𝐑𝐞𝐜𝐨𝐫𝐝 𝐃𝐚𝐭𝐚𝐛𝐚𝐬𝐞 𝐒𝐮𝐩𝐩𝐨𝐫𝐭, 𝐈𝐦𝐚𝐠𝐞 𝐌𝐚𝐧𝐢𝐩𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐋𝐢𝐛𝐫𝐚𝐫𝐲, 𝐇𝐞𝐥𝐩 𝐬𝐮𝐩𝐩𝐨𝐫𝐭𝐬, 𝐔𝐑𝐈 𝐑𝐨𝐮𝐭𝐢𝐧𝐠, 𝐌𝐨𝐝𝐞𝐥-𝐕𝐢𝐞𝐰-𝐂𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫 𝐁𝐚𝐬𝐞𝐝 𝐒𝐲𝐬𝐭𝐞𝐦 𝐚𝐧𝐝 𝐦𝐮𝐜𝐡 𝐦𝐨𝐫𝐞.
𝐎𝐟𝐟𝐜𝐢𝐚𝐥 𝐖𝐞𝐛𝐬𝐢𝐭𝐞:𝐡𝐭𝐭𝐩𝐬://𝐜𝐨𝐝𝐞𝐢𝐠𝐧𝐢𝐭𝐞𝐫.𝐜𝐨𝐦/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧- 𝐎𝐬:𝐔𝐛𝐮𝐧𝐭𝐮 𝟏𝟖.𝟎𝟒 𝐋𝐓𝐒 𝐁𝐢𝐨𝐧𝐢𝐜 𝐁𝐞𝐚𝐯𝐞𝐫 𝟔𝟒𝐁𝐢𝐭 | 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞 :𝐰𝐰𝐰.𝐲𝐨𝐮𝐫𝐝𝐨𝐦𝐚𝐢𝐧.𝐜𝐨𝐦 |𝐈𝐏 𝐚𝐝𝐝𝐫𝐞𝐬𝐬- 𝟏𝟗𝟐.𝟏𝟔𝟖.𝟏.𝟓𝟎
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common net-tools git make wget curl lsb-release
MariaDB Repositories:
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main' ; add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y nginx mariadb-server mariadb-client php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php7.2-soap php7.2-xsl php7.2-recode php7.2-redis php7.2-xmlrpc php7.2-zip php-imagick php-pear php-memcache php-apcu
systemctl start nginx mariadb ; systemctl enable nginx mariadb ; mysql_secure_installation
Create Mariadb Database :
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit
sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/7.2/fpm/php.ini ; sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/7.2/fpm/php.ini ; leafpad /etc/php/7.2/fpm/pool.d/www.conf &>/dev/null
[ env[HOSTNAME] = $HOSTNAME ]
wget https://github.com/bcit-ci/CodeIgniter/archive/3.1.5.zip
unzip 3.1.5.zip
cp -r CodeIgniter-3.1.5/ /var/www/html/codeigniter
leafpad /var/www/html/codeigniter/application/config/database.php &>/dev/null
$db['default'] = array(
leafpad /var/www/html/codeigniter/application/config/config.php &>/dev/null
$config['base_url'] = 'http://www.yourdomain.com/';
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
Setting up Nginx Server Blocks (Virtual Hosts):-
leafpad /etc/nginx/sites-available/default &>/dev/null
server {
listen 80;
listen [::]:80 ipv6only=on;
# Log files for Debugging
access_log /var/log/nginx/yourdomain-access.log;
error_log /var/log/nginx/yourdomain-error.log;
# Webroot Directory
root /var/www/html/codeigniter/;
index index.php index.html index.htm;
# Your Domain Name
server_name www.yourdomain.com;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# PHP-FPM Configuration Nginx
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
nginx -t ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx
http://www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Tuesday, February 18, 2020
How To Deploy Symfony with Nginx on Ubuntu 18.04
Video Tutorial - https://youtu.be/9Q6r0CG4p58
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
𝐒𝐲𝐦𝐩𝐡𝐨𝐧𝐲 𝐂𝐌𝐒 𝐢𝐬 𝐚 𝐗𝐒𝐋𝐓-𝐩𝐨𝐰𝐞𝐫𝐞𝐝 𝐨𝐩𝐞𝐧 𝐬𝐨𝐮𝐫𝐜𝐞 𝐜𝐨𝐧𝐭𝐞𝐧𝐭 𝐦𝐚𝐧𝐚𝐠𝐞𝐦𝐞𝐧𝐭 𝐬𝐲𝐬𝐭𝐞𝐦 𝐰𝐡𝐢𝐜𝐡 𝐞𝐧𝐚𝐛𝐥𝐞𝐬 𝐮𝐬𝐞𝐫𝐬 𝐭𝐨 𝐜𝐫𝐞𝐚𝐭𝐞 𝐚𝐧𝐝 𝐦𝐚𝐧𝐚𝐠𝐞 𝐰𝐞𝐛𝐬𝐢𝐭𝐞𝐬 𝐚𝐧𝐝 𝐰𝐞𝐛 𝐚𝐩𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬.
𝐎𝐟𝐟𝐜𝐢𝐚𝐥 𝐖𝐞𝐛𝐬𝐢𝐭𝐞:𝐡𝐭𝐭𝐩𝐬://𝐬𝐲𝐦𝐟𝐨𝐧𝐲.𝐜𝐨𝐦/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧- 𝐎𝐬:𝐔𝐛𝐮𝐧𝐭𝐮 𝟏𝟖.𝟎𝟒 𝐋𝐓𝐒 𝐁𝐢𝐨𝐧𝐢𝐜 𝐁𝐞𝐚𝐯𝐞𝐫 𝟔𝟒𝐁𝐢𝐭 | 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞 :𝐰𝐰𝐰.𝐲𝐨𝐮𝐫𝐝𝐨𝐦𝐚𝐢𝐧.𝐜𝐨𝐦 |𝐈𝐏 𝐚𝐝𝐝𝐫𝐞𝐬𝐬- 𝟏𝟗𝟐.𝟏𝟔𝟖.𝟏.𝟓𝟎
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common net-tools git make wget curl lsb-release
add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y nginx php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php7.2-soap php7.2-xsl php7.2-recode php7.2-redis php7.2-xmlrpc php7.2-zip php-imagick php-pear php-memcache php-apcu
systemctl start nginx ; systemctl enable nginx
sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/7.2/fpm/php.ini ; sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/7.2/fpm/php.ini ; leafpad /etc/php/7.2/fpm/pool.d/www.conf &>/dev/null
[ env[HOSTNAME] = $HOSTNAME ]
curl -sS https://getcomposer.org/installer | php ; mv composer.phar /usr/local/bin/composer ; chmod +x /usr/local/bin/composer
cd /var/www/html ; composer create-project symfony/skeleton symfony5
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
Setting up Nginx Server Blocks (Virtual Hosts):-
leafpad /etc/nginx/sites-available/default &>/dev/null
server {
listen 80;
listen [::]:80 ipv6only=on;
# Log files for Debugging
access_log /var/log/nginx/yourdomain-access.log;
error_log /var/log/nginx/yourdomain-error.log;
# Webroot Directory
root /var/www/html/symfony5/public/;
index index.php index.html index.htm;
# Your Domain Name
server_name www.yourdomain.com;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# PHP-FPM Configuration Nginx
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
nginx -t ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx
http://www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Saturday, February 15, 2020
How To Install Gitea Git Service With Nginx on Ubuntu 18.04
Video Tutorial - https://youtu.be/HiHDa2gCFTA
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Gitea is an alternative open source, self-hosted version control system powered by git. Gitea is written in Golang and is a lightweight solution to be hosted on any platform.
𝐎𝐟𝐟𝐜𝐢𝐚𝐥 𝐖𝐞𝐛𝐬𝐢𝐭𝐞:https://gitea.io/en-us/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧- 𝐎𝐬:𝐔𝐛𝐮𝐧𝐭𝐮 𝟏𝟖.𝟎𝟒 𝐋𝐓𝐒 𝐁𝐢𝐨𝐧𝐢𝐜 𝐁𝐞𝐚𝐯𝐞𝐫 𝟔𝟒𝐁𝐢𝐭 | 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞 :𝐰𝐰𝐰.𝐲𝐨𝐮𝐫𝐝𝐨𝐦𝐚𝐢𝐧.𝐜𝐨𝐦 |𝐈𝐏 𝐚𝐝𝐝𝐫𝐞𝐬𝐬- 𝟏𝟗𝟐.𝟏𝟔𝟖.𝟏.𝟓𝟎
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common net-tools git make wget curl lsb-release
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main'
apt-get update ; apt install -y nginx mariadb-server mariadb-client
systemctl start nginx mariadb ; systemctl enable nginx mariadb ; mysql_secure_installation
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit
wget https://github.com/go-gitea/gitea/releases/download/v1.5.1/gitea-1.5.1-linux-amd64
cp gitea-1.5.1-linux-amd64 /usr/local/bin/gitea
chmod 755 /usr/local/bin/gitea
adduser --system --shell /bin/bash --group --disabled-password --home /home/gitea gitea
mkdir -p /etc/gitea /var/lib/gitea/{custom,data,indexers,public,log}
chown gitea:gitea /etc/gitea /var/lib/gitea/{custom,data,indexers,public,log}
chmod 750 /var/lib/gitea/{data,indexers,log}
chmod 770 /etc/gitea
nano /etc/systemd/system/gitea.service
[Unit]
Description=Gitea
After=syslog.target
After=network.target
After=mysql.service
[Service]
RestartSec=2s
Type=simple
User=root
Group=root
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
Restart=always
Environment=USER=root HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target
systemctl start gitea ; systemctl status gitea ; systemctl enable gitea
rm /etc/nginx/sites-enabled/default
nano /etc/nginx/sites-available/gitea
upstream gitea {
server 127.0.0.1:3000;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name www.yourdomain.com;
root /var/lib/gitea/public;
access_log off;
error_log off;
location / {
try_files maintain.html $uri $uri/index.html @node;
}
location @node {
client_max_body_size 0;
proxy_pass http://localhost:3000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_max_temp_file_size 0;
proxy_redirect off;
proxy_read_timeout 120;
}
}
ln -s /etc/nginx/sites-available/gitea /etc/nginx/sites-enabled/
nginx -t ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx
http://www.yourdomain.com/install. Y
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Wednesday, February 12, 2020
𝐇𝐨𝐰 𝐓𝐨 𝐢𝐧𝐬𝐭𝐚𝐥𝐥 𝐂𝐚𝐤𝐞𝐏𝐇𝐏 𝐰𝐢𝐭𝐡 𝐀𝐩𝐚𝐜𝐡𝐞𝟐 𝐨𝐧 𝐔𝐛𝐮𝐧𝐭𝐮 𝟏𝟖.𝟎𝟒
Video Tutorial - https://youtu.be/hVM48osfSZQ
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
𝐂𝐚𝐤𝐞𝐏𝐇𝐏 𝐢𝐬 𝐚 𝐏𝐇𝐏 𝐟𝐫𝐚𝐦𝐞𝐰𝐨𝐫𝐤 𝐟𝐨𝐫 𝐫𝐚𝐩𝐢𝐝 𝐝𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭 𝐨𝐟 𝐰𝐞𝐛 𝐚𝐩𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧.
𝐂𝐚𝐤𝐞𝐏𝐇𝐏 𝐢𝐬 𝐚𝐧 𝐨𝐩𝐞𝐧-𝐬𝐨𝐮𝐫𝐜𝐞 𝐰𝐞𝐛 𝐟𝐫𝐚𝐦𝐞𝐰𝐨𝐫𝐤. 𝐈𝐭 𝐟𝐨𝐥𝐥𝐨𝐰𝐬 𝐭𝐡𝐞 𝐦𝐨𝐝𝐞𝐥–𝐯𝐢𝐞𝐰–𝐜𝐨𝐧𝐭𝐫𝐨𝐥𝐥𝐞𝐫 𝐚𝐩𝐩𝐫𝐨𝐚𝐜𝐡 𝐚𝐧𝐝 𝐢𝐬 𝐰𝐫𝐢𝐭𝐭𝐞𝐧 𝐢𝐧 𝐏𝐇𝐏, 𝐦𝐨𝐝𝐞𝐥𝐞𝐝 𝐚𝐟𝐭𝐞𝐫 𝐭𝐡𝐞 𝐜𝐨𝐧𝐜𝐞𝐩𝐭𝐬 𝐨𝐟 𝐑𝐮𝐛𝐲 𝐨𝐧 𝐑𝐚𝐢𝐥𝐬, 𝐚𝐧𝐝 𝐝𝐢𝐬𝐭𝐫𝐢𝐛𝐮𝐭𝐞𝐝 𝐮𝐧𝐝𝐞𝐫 𝐭𝐡𝐞 𝐌𝐈𝐓 𝐋𝐢𝐜𝐞𝐧𝐬𝐞.
𝐎𝐟𝐟𝐜𝐢𝐚𝐥 𝐖𝐞𝐛𝐬𝐢𝐭𝐞:𝐡𝐭𝐭𝐩𝐬://𝐜𝐚𝐤𝐞𝐩𝐡𝐩.𝐨𝐫𝐠/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
𝐎𝐮𝐫 𝐒𝐞𝐫𝐯𝐞𝐫 𝐒𝐩𝐞𝐜𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧- 𝐎𝐬:𝐔𝐛𝐮𝐧𝐭𝐮 𝟏𝟖.𝟎𝟒 𝐋𝐓𝐒 𝐁𝐢𝐨𝐧𝐢𝐜 𝐁𝐞𝐚𝐯𝐞𝐫 𝟔𝟒𝐁𝐢𝐭 | 𝐇𝐨𝐬𝐭𝐧𝐚𝐦𝐞 :𝐰𝐰𝐰.𝐲𝐨𝐮𝐫𝐝𝐨𝐦𝐚𝐢𝐧.𝐜𝐨𝐦 |𝐈𝐏 𝐚𝐝𝐝𝐫𝐞𝐬𝐬- 𝟏𝟗𝟐.𝟏𝟔𝟖.𝟏.𝟓𝟎
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common net-tools git make wget curl lsb-release
MariaDB Repositories & Php PPA:
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main' && add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y apache2 mariadb-server mariadb-client php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php7.2-soap php7.2-xsl php7.2-recode php7.2-redis php7.2-xmlrpc php7.2-snmp php7.2-xml php7.2-zip php-imagick php-pear php-memcache php-apcu
a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf ; systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation
Create Mariadb Database :
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit
curl -sS https://getcomposer.org/installer | php ; mv composer.phar /usr/local/bin/composer ; chmod +x /usr/local/bin/composer
cd /var/www/html/ ; composer create-project --prefer-dist cakephp/app MyApp
leafpad /var/www/html/MyApp/config/app_local.php &>/dev/null
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
Apache VirtualHost :
nano /etc/apache2/sites-available/yourdomain.conf
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/MyApp/webroot/
ServerName www.yourdomain.com
<Directory /var/www/html/MyApp/webroot/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined
</VirtualHost>
a2ensite yourdomain ; a2dissite 000-default.conf ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Saturday, February 8, 2020
How To Setup BookStack on Ubuntu 18.04 WITH Nginx
Video Tutorial -https://youtu.be/Nfce0epjszY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------BookStack is a simple, self-hosted platform for organising and storing information. BookStack is entirely free, open-source, and MIT licensed.
Offcial Website: https://www.bookstackapp.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification-
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit | IP address- 192.168.1.50 | Hostname :www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; getconf LONG_BIT ; whoami ; hostname -f ; hostname -I ; apt install -y build-essential software-properties-common curl gdebi wget aptitude nano git net-tools lsb-release apt-transport-https dirmngr
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main'
add-apt-repository ppa:ondrej/php -y
apt-get update ; apt-get install -y nginx mariadb-server mariadb-client php7.3 php7.3-cli php7.3-fpm php7.3-cgi php7.3-bcmath php7.3-curl php7.3-gd php7.3-intl php7.3-json php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-sqlite3 php7.3-xml php7.3-zip php7.3-snmp php7.3-json php7.3-imap php7.3-common php7.3-tidy
systemctl start nginx mariadb ; systemctl enable nginx mariadb
mysql_secure_installation
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
quit
gedit /etc/php/7.3/fpm/php.ini &>/dev/null [ date.timezone ="Asia/Kolkata" cgi.fix_pathinfo=0 ]
gedit /etc/php/7.3/fpm/pool.d/www.conf &>/dev/null [ env[HOSTNAME] = $HOSTNAME ]
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/bin --filename=composer
cd /var/www/html/ ; git clone https://github.com/BookStackApp/BookStack.git --branch release --single-branch
cd BookStack ; composer install
mv .env.example .env ; gedit .env &>/dev/null
php artisan key:generate
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
php artisan migrate
gedit /etc/nginx/sites-available/default &>/dev/null
server {
server_name www.yourdomain.com;
access_log /var/log/nginx/yourdomain-access.log;
error_log /var/log/nginx/yourdomain-error.log;
root /var/www/html/BookStack/public/;
location / {
index index.php;
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
nginx -t ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx mariadb
http://www.yourdomain.com
DB Details:
Database Host: localhost | Database name: db | Database username: dbuser | Database password: dbpass
Default User&Pass | admin@admin.com | password
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thursday, February 6, 2020
How To install XMB forum On Ubuntu 18.04 LTS with Nginx
Video Tutorial -https://youtu.be/6sysjN2FpN0
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
XMB forum also known as eXtreme Message Board is a free and open source forum software written in PHP and uses MySQL database backend. XMB is a simple, lightweight, easy to use, Powerful and highly customizable.
Offcial Website: https://www.xmbforum2.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit | IP address- 192.168.1.50 | Hostname :www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget sqlite3 dirmngr nano lsb-release apt-transport-https git
MariaDB Repositories:
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main'
Nginx Mariadb Php PHP Modules :
add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y nginx mariadb-server mariadb-client php7.0 php7.0-cli php7.0-fpm php7.0-cgi php7.0-bcmath php7.0-curl php7.0-gd php7.0-intl php7.0-json php7.0-mbstring php7.0-mysql php7.0-opcache php7.0-sqlite3 php7.0-xml php7.0-zip php7.0-snmp php7.0-json php7.0-imap php7.0-common php7.0-tidy php7.0-mcrypt php7.0-pgsql php-pear
systemctl start nginx mariadb ; systemctl enable nginx mariadb ; mysql_secure_installation
Create Mariadb Database :
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
quit
gedit /etc/php/7.0/fpm/php.ini &>/dev/null date.timezone="Asia/Kolkata"cgi.fix_pathinfo=0
gedit /etc/php/7.0/fpm/pool.d/www.conf &>/dev/null env[HOSTNAME] = $HOSTNAME ]
wget https://www.xmbforum2.com/download/XMB-1.9.11.15.zip
unzip XMB-1.9.11.15.zip
cp -r XMB-1.9.11.15 /var/www/html/xmb
Setting up Nginx Server Blocks (Virtual Hosts):-
nano /etc/nginx/sites-available/default
server {
server_name www.yourdomain.com;
access_log /var/log/nginx/yourdomain-access.log;
error_log /var/log/nginx/yourdomain-error.log;
root /var/www/html/xmb/;
location / {
index index.php;
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
nginx -t ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl restart nginx mariadb
gedit /var/www/html/xmb/files/config.php &>/dev/null
http://www.yourdomain.com/files/install/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Saturday, February 1, 2020
How To install XMB forum On Ubuntu 18.04 LTS with Apache2
Video Tutorial -https://youtu.be/QoJwzzPx1rM
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
XMB forum also known as eXtreme Message Board is a free and open source forum software written in PHP and uses MySQL database backend. XMB is a simple, lightweight, easy to use, Powerful and highly customizable.
Offcial Website: https://www.xmbforum2.com/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Our Server Specification-
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit |IP address- 192.168.1.50 | Hostname :www.yourdomain.com
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https
MariaDB Repositories:
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main'
Apache2 Mariadb Php PHP Modules :
add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y apache2 mariadb-server mariadb-client php7.0 php7.0-cli php7.0-fpm php7.0-cgi php7.0-bcmath php7.0-curl php7.0-gd php7.0-intl php7.0-json php7.0-mbstring php7.0-mysql php7.0-opcache php7.0-sqlite3 php7.0-xml php7.0-zip php7.0-snmp php7.0-json php7.0-imap php7.0-common php7.0-tidy php7.0-mcrypt php7.0-pgsql php-pear
a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = UTC/" /etc/php/7.0/cli/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf
systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation
Create Mariadb Database :
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
quit
wget https://www.xmbforum2.com/download/XMB-1.9.11.15.zip
unzip XMB-1.9.11.15.zip
cp -r XMB-1.9.11.15 /var/www/html/xmb
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/
Setting up Apache VirtualHost :
nano /etc/apache2/sites-available/yourdomain.conf
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/xmb
ServerName www.yourdomain.com
<Directory /var/www/html/xmb/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined
</VirtualHost>
a2ensite yourdomain ; a2dissite 000-default.conf ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
nano /var/www/html/xmb/files/config.php
http://www.yourdomain.com/files/install/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Subscribe to:
Posts (Atom)