วันอังคารที่ 2 มิถุนายน พ.ศ. 2563

raspberry pi phpmixbill


#Apche
sudo apt-get update
sudo apt-get install apache2 -y

ติดตั้งเสร็จแล้วลองเปิด Browser ดู http://localhost หรือ http://your_ip_address จะขึ้นแบบนี้



apache2 -v

#PHP
sudo apt-get install php

php -v


#mysql


sudo apt-get update


sudo apt-get install mariadb-server mariadb-client -y



#phpmyadmin

sudo apt-get install phpmyadmin -y



#phpMyAdmin Login Error

vim /etc/phpmyadmin/config.inc.php

// $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;




First, you copy the /etc/mysql/mysql.conf.d/mysqld.cnf file and past in to /etc/mysql/my.cnf.
You can do it by command:
sudo cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf
Now let's Rest the password:
Use the following commands in your terminal:
sudo service mysql stop 
sudo service mysql start
sudo mysql -u root
Now you are inside the mysql console.
Then let's write some queries to reset our root password
USE mysql
update mysql.user set authentication_string=password('newpass') where user='root' and Host ='localhost';
update user set plugin="mysql_native_password"; 
flush privileges;
quit
Now we can clean /etc/mysql/my.cng
Open the above file in your editor and remove the whole lines inside the file.
After that let's restart mysql:
sudo mysql service restart 
Now let's use mysql with newly created password:
sudo mysql -u root -p
Finally enter your newly created password.



phpmix chmod 777

/system
/ui/compiled





You can try to update php pear2 netrouterOS https://github.com/pear2/Net_RouterOS to folder system/PEAR2   


on google dirve

If you want to do this FROM the RouterOS, then you can use fetch to send a simple GET request to the specified web page:
/tool fetch url="www.domain.com/url.php?id=2" keep-result=no



/tool fetch url="https://hotspot.mk.com/system/cron.php" keep-result=no


#cornJob MK




ไม่มีความคิดเห็น:

แสดงความคิดเห็น