If this is your first visit, check our documentation. To post, register or login.

localhost

Started by ckosloff on 8 Aug 2022, 10:35 PM · Views: 6,619

Results 1 to 12 of 12
8 Aug 2022, 10:35 PM
#1
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Post #1 by ckosloff

I am trying to install ZC in a local LAMP server.
I am using the Debian distro latest version (11, name bullseye), Debian attempts to make things easy with metapackages I installed one called task-web-server.
If I type localhost in my browser I get the Debian document, so it works.
I have reading the Zen Cart Manual by Richard Underwood which relies heavily on Windows and Cpanel, so not very useful.
Problem is: I need to create database and user first to install ZC, I am trying to do so with php my admin, but it fails because it asks for password for administrative user, which I have not created yet, so how to proceed?
PS: I am an old user, but have been away for a long time, I am old and sick so I got a brain fart, please be kind.

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

8 Aug 2022, 11:47 PM
#2
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #2 by carlwhat

ckosloff:

I am trying to install ZC in a local LAMP server.
I am using the Debian distro latest version (11, name bullseye), Debian attempts to make things easy with metapackages I installed one called task-web-server.
If I type localhost in my browser I get the Debian document, so it works.
I have reading the Zen Cart Manual by Richard Underwood which relies heavily on Windows and Cpanel, so not very useful.
Problem is: I need to create database and user first to install ZC, I am trying to do so with php my admin, but it fails because it asks for password for administrative user, which I have not created yet, so how to proceed?
PS: I am an old user, but have been away for a long time, I am old and sick so I got a brain fart, please be kind.

if you have installed phpmyadmin on a bullseye LAMP server already, bravo!

the foregoing statement means you have already successfully installed mysql. so now it is a question of resetting your root password (else do a google search for default mysql root password, actually the default is none!)

if the default password does not work, you will need to stop the mysql service, and do a bunch of stuff. all of which looks to be contained in this link.

once you can login with root, you can then add users, create databases, and the like.

i would think for this base sort of stuff operating on the command line might be better, but my opinion is biased.

i hope that was kind enough for you... it's about as kind as i get! :smile:

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

9 Aug 2022, 12:25 AM
#3
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Post #3 by ckosloff

No, phpmyadmin did not install correctly because apparently I need to create a DB and user first, set passwords, etc. Got tons of errors. Cannot install in my localhost, please help.

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

9 Aug 2022, 9:26 AM
#4
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Post #4 by brittainmark

.this link might help on setting up a lamp stack on Debian 11.

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

9 Aug 2022, 1:46 PM
#5
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Post #5 by ckosloff

Problem here is that there is no mysql-server in Debian repo, apparently it has been replaced by MariaDB, should I install that?

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

9 Aug 2022, 2:03 PM
#6
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Post #6 by ckosloff

The links and commands don't work on Debian 11, mysql commands take me to MariaDB, so I suppose that was installed by metapackage task-web-server

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

10 Aug 2022, 5:21 PM
#8
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #8 by carlwhat

if you have problems with phpMyadmin, i would recommend adminer.

very easy to install. it is just 1 file.

if you choose to go that route, i can provide code where you do not need your credentials to login. it is tied to your zc admin credentials.

i find it much easier for doing local development as installing phpMyadmin can be challenging.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

10 Aug 2022, 7:51 PM
#9
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Post #9 by ckosloff

carlwhat:

if you have problems with phpMyadmin, i would recommend adminer.

very easy to install. it is just 1 file.

if you choose to go that route, i can provide code where you do not need your credentials to login. it is tied to your zc admin credentials.

i find it much easier for doing local development as installing phpMyadmin can be challenging.

I would be glad to use adminer, I solved the problem with phpmyadmin so I think that I could log into adminer with same credentials.
In fact I prefer it since I am planning to buy a droplet from Digital Ocean and install same Debian 11 that I use at home for development, it is much easier to backup databases with it.
I have the latest file, now I have to copy it to html directory, which at the moment is not writable, I am now figuring out how to make it writable without compromising security.
I used adminer in the past, but a long time has passed and I have a brain fart.

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

10 Aug 2022, 7:56 PM
#10
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Post #10 by ckosloff

I hope this thread will work as guidance for Linux users who like the command line. Real men don't use Windows and Cpanel, regretfully most of the installation tutorials are written for these users, including the implementation guide in Zen Cart docs, just pandering to the crowd.

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

11 Aug 2022, 11:04 PM
#11
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Post #11 by ckosloff

I got everything SOLVED, after fixing perms in my localhost with these instructions, I could copy over the adminer file into my /var/www/html and now invoke it with localhost/adminer.php in my browser (Firefox).
Thanks anyway for your kind advice, I can login with user root and password, same as phpmy admin.
Back in the day, I used to backup database with adminer and save it in my computer and backup files with tar command.
BTW, database backed up with adminer are not the same than with phpmyadmin, maybe compatibility problems have been addressed now.
I don't use Filezilla or any other FTP program, my KDE desktop can connect remotely over fish protocol, so I transfer backups into my computer seamlessly. I did write a tutorial in the KDE forums, I have lost that URL but can retrieve it if there is interest.

[argentiniansupermarket.com

](http://argentiniansupermarket.com)

12 Aug 2022, 3:35 PM
#12
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Post #12 by ckosloff

I got correct perms from here.
Moved file to my localhost and now it works perfectly with same credentials as php myadmin.
Thank you.

[argentiniansupermarket.com

](http://argentiniansupermarket.com)