Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

(not a bug) Finally got this working wanted to share some gotchas for the noobs like me #96

Open
ghost opened this issue Aug 7, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 7, 2018

Requirements
PHP 7+
MySQL 4.1.13+
Composer

  • apache2
  • mysqli

Right out of the 'box' when you drop this repo into a directory you can run the php web server, but that gets sticky. It's best to drop it into your www of your apache server. The reason I say this is that the mysql bit got 'stuck' using the php webserver. Speaking of mysql, I could not get achecker to recognize the database i had setup until i installed that.

So that was the major gotchas i ran into attempting to install this version of achecker.

@VictorAlagwu
Copy link
Contributor

Thanks, @blackad1n , for taking out time to go through achecker, I would appreciate if you can either share a screenshot of the issues experience when installing achecker, or probably elaborate, more on the issue. This request is with respect to the statement Speaking of mysql, I could not get achecker to recognize the database i had setup until i installed that. , Thanks once again for reporting this issue.

Before, doing that do note that AChecker allows you to either create a database first (manually) and then use the ALTER DATABASE `(table_name)` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci to set the database table to utf8, before installing it or entering your database details, another available option in AChecker is the creation of database table automatically, for you, when using this option, there will be no need for you to run the mysql query any more, as it is done automatically, all that is needed for you are just the right informations.

Please do note that the above opinions are mine, and doesn't represent the opinions of the maintainers of this repository or the organisation.
Thanks

@ghost
Copy link
Author

ghost commented Aug 7, 2018

@VictorAlagwu I don't have images to share. But I can try to be a bit more verbose. The flavor of linux used for this was ubuntu. Using the instructions attached to this repo, I installed composer, php, mysql.

Initially, I tried to run the server using php's web server. This got me up and running but during the install process, the system wouldn't 'detect' mysql. Everything else was fine. This was strange to me because, using a different repo for an Achecker docker image, the database had no problem, presumably because it was in the container. So I knew the application could get to this point at least. So after searching for a couple hours i decided to just look at the code. In the install folder the index.php had this bit in it

                    php if (extension_loaded('mysqli')) {
                                            echo 'Enabled</td><td align="center">';
                                            echo $good;
                                    } else {
                                            echo 'Disabled</td><td align="center">';
                                            echo $bad;
                                            $no_good = TRUE;
                                    } ?></td>

"
This made me think oh, i need this extension. Once I installed mysqli - achecker was able to see the mysql database I had setup. The rest of the setup process went smoothly when I put this in apache. When I just used the php webserver, the install would get stuck at the creation of an admin. I am not quite sure why this occurred. (this is when i went with apache2)

As far as the tool doing the setup, it did, i just setup the initial database, AChecker did the rest.

-b

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant