kodekloudhub / learning-app-ecommerce Goto Github PK
View Code? Open in Web Editor NEWA sample e-commerce learning app
A sample e-commerce learning app
When I'm trying to open in browser "http://myserverip", I get:
Error: Can't connect to MySQL server on '1.1.1.1' (13)
but when I'm starting this script from command line on the server 1.1.1.1, I have another result:
mysql -h 111.111.111.111 -u user -p -P 3306
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 25236357
Server version: 5.5.14-enterprise-commercial-advanced-log MySQL Enterprise Server - Advanced Edition (Commercial)
Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Any help?
I spent a boatload of time trying to figure out why my web page couldn't connect to the DB.
First I realized that I needed to use an IP address in both the Mysql user permissions and the mysqli_connect
call.
But it was still giving me this error on the web page.
2003:Can't connect to MySQL server on '192.168.86.54' (13)
I tried installing MySQL on the web server and was able to connect using the mysql
client.
Finally I found this Stackoverflow article which said to set
setsebool -P httpd_can_network_connect_db=1
That worked. I ended up using this in my playbook.
- selinux:
state: disabled
Not a big deal but I run into the issue of passing my own validation test to confirm that the app is running.
Can you please add or delete this file from your the /scss/_footer.scss file?
Instead of
yum install php-mysql
it should be
yum install php-mysqlnd
https://stackoverflow.com/questions/63363030/how-do-i-install-the-mysql-extension-for-php-7-on-centos-8
You just need to update the README.md
Instead of
sudo service mariadb start
it should be
sudo systemctl start mariadb
You just need to update the README.md
Hi @mmumshad
Below command won't work as /var/www/html/ directory is owned by root, so it won't be able to download code in that location.
git clone https://github.com/kodekloudhub/learning-app-ecommerce.git /var/www/html/
So you should use below command
sudo git clone https://github.com/kodekloudhub/learning-app-ecommerce.git /var/www/html/
All the service should be started using sudo systemctl start <servicename>
instead of sudo service <servicename> start
Correct
eg: sudo systemctl start mariadb
Wrong
eg: sudo service mariadb start
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.