1.etc/apache2/conf-available/phpmyadmin.conf 2. Order Deny,Allow Deny from all Allow from 192.168.1.0/24 3.service apache2 reload https://www.bauer-power.net/2012/10/hide-phpmyadmin-and-restrict-access-by.html#.Xm7fUagzZPY
Set Up Apache2 With mod_fcgid
OLD THING
apt-get install libapache2-mod-fcgid
a2enmod fcgid
https://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-debian-etch
install mysql server+client
apt install mysql-server mysql-client -y
Failed to restart mysql.service: Unit mysql.service is masked
systemctl unmask mysql.service service mysql start
show-create-grant-databases
Login 1. mysql -u myusername -p OR mysql (root user) 2. enter password 3. mysql> SHOW DATABASES; Create&Drop database 1. mysql> CREATE DATABASE database_name; 1.1. mysql> CREATE DATABASE db_name CHARACTER SET utf8 COLLATE utf8_general_ci; 2. mysql> DROP DATABASE database_name; Show grants 1. mysql> SHOW GRANTS; 1. mysql> SHOW GRANTS username; Grant database - from root user 1. mysql> GRANT ALL PRIVILEGES ON db_name.* TO 'username'@'localhost'; ALL PRIVILEGES: CREATE, DELETE DB etc mysql> GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost'; p.s. always write ; at the end https://linuxize.com/post/how-to-show-databases-in-mysql/ https://www.mysqltutorial.org/mysql-create-database/
install php7.4
isbandytas: https://www.cloudbooklet.com/upgrade-php-version-to-php-7-4-on-ubuntu/ nebandytas, turi papildomu moduliu ir mysql+phpmyadmin https://www.bennetrichter.de/en/tutorials/apache2-php7-mysql-phpmyadmin/
Migrate to other Database
php artisan migrate --database=db_connection_name php artisan migrate --database=db_connection_name --seed php artisan migrate:refresh --database=db_connection_name --seed
add domain to zoho
1. Domains: add domain to zoho
2. Verify Domain:
a) serveriai.lt -> domain -> redaguoti zona -> add: @ TXT zoho-verification=zb11111111.zmverify.zoho.com
b) Wait 15min
c) on zoho click button: Verity by TXT
3. enter username, example: info ( info@mail.com )
4. Configure Email Delivery:
a) serveriai.lt red zona:
@ MX 10 mx.zoho.com.
@ MX 20 mx2.zoho.com.
@ MX 50 mx3.zoho.com.
b) press button MX Lookup
5. SPF/DKIM
a)SPF: serveriai.lt red zona:
@ TXT v=spf1 include:zoho.com ~all
b)DKIM: Proceed to Configure DKIM, serveriai.lt red zona:
<selector>._domainkey.<yourdomainname.com> TXT TXTValue(long generated key by zoho)
Verify
p.s.
can verify all actions from Domains page
Steps to add new Aliases:
Login to the Zoho Mail Control Panel.
Go to the Mail Accounts section.
Click on the user for whom you want to add an alias.
Go to the Mailbox Alias section, and click Add New Alias
https://www.zoho.com/mail/help/adminconsole/email-administration.html#alink1
——————————————————
guzzlehttp – http client
1. composer require guzzlehttp/guzzle
2. $client = new \GuzzleHttp\Client();
3. $res = $client->request('GET', 'https://api.exchangeratesapi.io/latest');
echo $res->getStatusCode();
echo $res->getHeader('content-type')[0];
dd( json_decode($res->getBody()) );
http://docs.guzzlephp.org/en/stable/
@username
1. https://www.facebook.com/bookmarks/pages 2. Select your page 3. Left side of a page - select About 4. Edit @username