Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I install the script by the easiest way. #26

Closed
iAbdullah1995 opened this issue Sep 5, 2022 · 18 comments
Closed

How can I install the script by the easiest way. #26

iAbdullah1995 opened this issue Sep 5, 2022 · 18 comments
Labels
question Further information is requested

Comments

@iAbdullah1995
Copy link

iAbdullah1995 commented Sep 5, 2022

Hello,
Actually i don't know if this place is a right one for questions,
How can I install the script by cPanel?

I want easiest way to make that please, I'm not programmer, just i had a little experience in install scripts.
and if you can record your screen and upload it on YouTube, it will be great and help me with others.

@giandonatoinverso
Copy link
Owner

Hello follow the following steps:

From github click on the green "code" button and then download zip.
From cpanel upload the zip file with the file manager somewhere and extract the files.

Also from cpanel creates a new mysql user and a database to dedicate to the script.
In the folder you extracted, open qrcode>config>environment.php

Here you have to enter the credentials for the database created in the else braces.

From the browser connect to the associated domain and to the folder where you put the files, on the page.
For example: https://example.com/PHP-Dynamic-Qr-code/qrcode/install/setup.php

@giandonatoinverso giandonatoinverso added the question Further information is requested label Sep 5, 2022
@iAbdullah1995
Copy link
Author

iAbdullah1995 commented Sep 5, 2022 via email

@giandonatoinverso
Copy link
Owner

In cpanel go to the errors section or in the domain folder open the error_log file and see what is written. In my opinion it will be a syntax error. Let me know thanks

@iAbdullah1995
Copy link
Author

[05-Sep-2022 14:25:32 America/New_York] PHP Fatal error: Uncaught mysqli_sql_exception: Access denied for user 'admin_qrcode'@'localhost' to database 'admin_qrcode' in /home/admin/public_html/qr/qrcode/lib/MysqliDb/MysqliDb.php:323
Stack trace:
#0 [internal function]: mysqli->__construct()
#1 /home/admin/public_html/qr/qrcode/lib/MysqliDb/MysqliDb.php(323): ReflectionClass->newInstanceArgs()
#2 /home/admin/public_html/qr/qrcode/lib/MysqliDb/MysqliDb.php(415): MysqliDb->connect()
#3 /home/admin/public_html/qr/qrcode/lib/MysqliDb/MysqliDb.php(1988): MysqliDb->mysqli()
#4 /home/admin/public_html/qr/qrcode/lib/MysqliDb/MysqliDb.php(1594): MysqliDb->_prepareQuery()
#5 /home/admin/public_html/qr/qrcode/lib/MysqliDb/MysqliDb.php(738): MysqliDb->_buildQuery()
#6 /home/admin/public_html/qr/qrcode/lib/MysqliDb/MysqliDb.php(764): MysqliDb->get()
#7 /home/admin/public_html/qr/qrcode/authenticate.php(25): MysqliDb->getOne()
#8 {main}
thrown in /home/admin/public_html/qr/qrcode/lib/MysqliDb/MysqliDb.php on line 323

@giandonatoinverso
Copy link
Owner

giandonatoinverso commented Sep 5, 2022 via email

@iAbdullah1995
Copy link
Author

Many thanks, it works! BTW i didn't need to download a new version of "MysqliDb.php" file.

@giandonatoinverso
Copy link
Owner

giandonatoinverso commented Sep 5, 2022 via email

@iAbdullah1995
Copy link
Author

hhhhhh that's right, I do it and it's work, but i faced other issue:
"Oops! You cannot create a new qr code with an existing name on the server!"

why? actually the link is on my website.

second question: How Can I add logo inside dynamic QR code?

@giandonatoinverso
Copy link
Owner

giandonatoinverso commented Sep 5, 2022 via email

@iAbdullah1995
Copy link
Author

iAbdullah1995 commented Sep 6, 2022

Thank you :) it's work now.
But unfortunately when I scan the QR via my phone I faced 404 page!

@iAbdullah1995
Copy link
Author

iAbdullah1995 commented Sep 6, 2022

Thank you :) it's work now. But unfortunately when I scan the QR via my phone I faced 404 page!

Ok i know why, because when I scan QR, the script take me to main directory of my website! It should add folder name of script.

Current situation:
Website.com/read.php?=

Should be:
Website.com/FOLDERPATH/read.php?=

hope to fix it :)

@iAbdullah1995
Copy link
Author

Sorry how can i fix that? I know the reason but I don’t know how to fix it :/

@giandonatoinverso
Copy link
Owner

giandonatoinverso commented Sep 6, 2022 via email

@iAbdullah1995
Copy link
Author

from the file manager, move the read.php file to the root folder of the domain.

nothing happen, just white page

@giandonatoinverso
Copy link
Owner

Hi I'm sorry that you are having problems in the execution of my script but I cannot provide you with complete assistance for the installation ... I have already guided you for the installation on cPanel but help regarding other execution phases are not my responsibility. I am not even responsible for help with ad-hoc installations (eg logos in qr-codes).

In the documentation it is explicitly indicated that it is a partially developed functionality and that to activate it it is necessary to intervene at the source code level.

At this point I remind everyone that this is a script developed to be used by other programmers, however with the new docker support it is possible to obtain a new instance of this script in a few steps.

@iAbdullah1995
Copy link
Author

Ok friend, sorry for bothering you, I'm just need to fix "read.php" file problem to run the script correctly.

Thank you anyway and sorry again.

@giandonatoinverso
Copy link
Owner

No problem. In any case, I recommend that you use a debugger that can help you in troubleshooting errors at runtime

@iAbdullah1995
Copy link
Author

iAbdullah1995 commented Sep 7, 2022

No problem. In any case, I recommend that you use a debugger that can help you in troubleshooting errors at runtime

the problem is i'm not programmer and i don't have any idea how to do that * _ *
Thanks giandonato

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants