• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

First Log In Screen

Scheduled Pinned Locked Moved Unsolved
Q&A
2
27
57.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Mike123
    last edited by 15 Dec 2023, 22:02

    I am working on my first test for Fusion Auth.
    I have started up the Fusion Dashboard. I have Docker active.
    I am using PHP.
    I have been given this link for setting up my first Log In screen
    https://fusionauth.io/docs/sdks/php#example-apps

    I have gone to the first two URLs and activated them.

    I have then created a PHP file following the instructions as below:

    58892dec-d0dd-4ed6-8188-d4f9adae5847-image.png

    The result when running is:
    9b27ba08-ce51-4019-bcc2-54db163914ae-image.png

    What am I doing wrong?

    Mike

    M 1 Reply Last reply 18 Dec 2023, 18:38 Reply Quote 0
    • M
      mark.robustelli @Mike123
      last edited by mark.robustelli 18 Dec 2023, 18:38

      @support-2 Have you been through the FusionAuth PHP Quickstart? Should only take about 5-10 minutes and give you a good idea and more importantly a working example.

      M 1 Reply Last reply 18 Dec 2023, 19:30 Reply Quote 0
      • M
        Mike123 @mark.robustelli
        last edited by 18 Dec 2023, 19:30

        @mark-robustelli I have built my application with MySQL and a screen tool that works with MySQL. I simply need to get the user to Log In then proceed to the URL if validated.

        I think I will use the FusionAuth app to build the Log In screen.

        So I have worked with that and have submitted a question about that and I will see if this is a better path to follow.

        Thanks.

        Mike

        M 1 Reply Last reply 20 Dec 2023, 14:59 Reply Quote 0
        • M mark.robustelli referenced this topic on 20 Dec 2023, 14:58
        • M
          mark.robustelli @Mike123
          last edited by 20 Dec 2023, 14:59

          @mike123 I am not familiar with a screen tool for MySQL. What are you using and I can take a look to see if I can figure it out.

          M 1 Reply Last reply 20 Dec 2023, 18:58 Reply Quote 0
          • M
            Mike123 @mark.robustelli
            last edited by 20 Dec 2023, 18:58

            @mark-robustelli
            The application is at
            https://doncaster.retool.com/apps/3ed71762-bb66-11ed-b120-6f3a719f0b69/invoice02b.

            I simply need a log in screen that takes the user to this URL once they have been validated.

            Mike

            M 1 Reply Last reply 21 Dec 2023, 22:08 Reply Quote 0
            • M
              mark.robustelli @Mike123
              last edited by 21 Dec 2023, 22:08

              @mike123 Have you been able to get through the quickstart?

              M 1 Reply Last reply 22 Dec 2023, 12:07 Reply Quote 0
              • M
                Mike123 @mark.robustelli
                last edited by 22 Dec 2023, 12:07

                @mark-robustelli I have been unable to get through quick start.

                I have asked for the PHP version and have come to the screen below.

                I have tried running this from the command prompt with windows backslashes and it says it doesn't recognize "git".

                I have tried running it in PHP and it says it doesn't recognize "clone".

                Exactly what am I supposed to do here?

                Mike

                1db0a4be-fed5-4034-b1db-23b0be6689c3-PICT4.jpg

                M 1 Reply Last reply 26 Dec 2023, 15:23 Reply Quote 0
                • M
                  mark.robustelli @Mike123
                  last edited by 26 Dec 2023, 15:23

                  @mike123 It looks like you do not have Git installed on your machine. Here is a guide from Github on how to do that. Git is a common distributed version control system.

                  1 Reply Last reply Reply Quote 0
                  • M
                    Mike123
                    last edited by 28 Dec 2023, 00:54

                    @mark-robustelli
                    OK I have installed Git Hub and it is working fine.
                    Next I have come to the screen below and the first line doesn't work,
                    I believe I already have Composer installed but I am not sure.

                    I don't know if I am allowed to skip this step.

                    Mike

                    6ce6c75f-30a8-4316-a631-e11a7907599d-image.png

                    M 1 Reply Last reply 28 Dec 2023, 15:18 Reply Quote 0
                    • M
                      mark.robustelli @Mike123
                      last edited by 28 Dec 2023, 15:18

                      @mike123 , it's great that you are making progress. You don't have to run the step in the not that you displayed. That is only if you want to run the application without understanding how it works. To get a better feel of how FusionAuth relates to the login screen, I would recommend following the rest of the quickstart. You will still need to be sure Composer is installed correctly. To test if that is the case, try the following command.

                      composer --version
                      

                      You should get the version that is installed or an error. If you get an error, you can click on the Composer link in the Prerequisites section of the quickstart to get it installed.

                      1 Reply Last reply Reply Quote 0
                      • M
                        Mike123
                        last edited by 28 Dec 2023, 20:02

                        OK, I got through the next few screens.

                        I am now at the one below and the first row is giving me an error. Any thoughts?

                        Mike
                        92d3e2bf-c077-4b19-9d76-d252f6104401-pict10.jpg

                        M 1 Reply Last reply 28 Dec 2023, 22:14 Reply Quote 0
                        • M
                          mark.robustelli @Mike123
                          last edited by 28 Dec 2023, 22:14

                          @mike123 not sure I know what you mean by "at the one below and the first row..." Are you talking about the next step in the quickstart? What exactly are you trying to do and what error are you seeing? The lines you are showing are being referenced in the quickstart are meant to be put in a file name .env within the application directory.

                          M 1 Reply Last reply 29 Dec 2023, 15:19 Reply Quote 0
                          • M
                            Mike123 @mark.robustelli
                            last edited by 29 Dec 2023, 15:19

                            @mark-robustelli
                            Here is the error message I am getting.

                            I have the Fusion Auth screen open.

                            Mike
                            9a77af40-bf86-4bce-89ad-076e9796abfc-image.png

                            M 1 Reply Last reply 29 Dec 2023, 17:03 Reply Quote 0
                            • M
                              mark.robustelli @Mike123
                              last edited by 29 Dec 2023, 17:03

                              @mike123 Ah, OK. It looks like you are trying to enter the lines into the command prompt. If you look at the instructions directly above the lines in the quickstart, it say you need to create a file with a name of .env and then put those lines of text in that file. Then that file should be put in the your-application directory.

                              M 1 Reply Last reply 29 Dec 2023, 18:19 Reply Quote 0
                              • M
                                Mike123 @mark.robustelli
                                last edited by 29 Dec 2023, 18:19

                                @mark-robustelli
                                What is a good tool for creating a file ending in .env

                                I have node installed but it looks like about 3 days of reading to create a .env file with it because it needs to ignore github.

                                None of my text editors permit saving with the suffix .env .

                                Mike

                                M 1 Reply Last reply 29 Dec 2023, 20:51 Reply Quote 0
                                • M
                                  mark.robustelli @Mike123
                                  last edited by 29 Dec 2023, 20:51

                                  @mike123 You can use anything your environment supports. It looks like you are using windows, so notepad would work. There are others to such as Visual Studio Code and that sort of thing.

                                  M 1 Reply Last reply 30 Dec 2023, 19:28 Reply Quote 0
                                  • M
                                    Mike123 @mark.robustelli
                                    last edited by 30 Dec 2023, 19:28

                                    @mark-robustelli
                                    OK I am showing a few screens to show my progress.

                                    1. This shows the fusion screen which is in the file test01.env in the operating web directory https://doncasteroffice.com/BillingMaster2.html

                                    481cd20e-99c0-4df7-9771-b6bcb389af8a-PICT3.jpg

                                    1. This shows the login.php file which is in the directory (https://doncasteroffice.com/BillingMaster2/public/login.php

                                    94420794-58bb-48bd-b3e9-2d8053b044fd-PICT4.jpg

                                    1. This shows the cPanel directory tree for the login.php file.
                                      ce8ff03b-4a53-4872-96e2-3e3b683b1216-PICT5.jpg

                                    2. This shows the error message when I try to launch the login.php file.

                                    c8e70213-0f4b-4b1b-b55a-d3e53c8783b3-PICT6.jpg

                                    Mike

                                    M 1 Reply Last reply 2 Jan 2024, 20:39 Reply Quote 0
                                    • M
                                      mark.robustelli @Mike123
                                      last edited by 2 Jan 2024, 20:39

                                      @mike123 OK, a few things. Glad you got the file with the variables created, however you will want to name it ".env" vs "test01.env". Also, are you trying to run the application or just pointing to the PHP page in a public directory? Did you get to the point were you have all the files created in the "your-application" folder and able to run the application using the following command?

                                      php -S localhost:9012 -t public
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        Mike123
                                        last edited by 8 Jan 2024, 19:33

                                        @mark-robustelli
                                        Mark:

                                        I have been a long time getting back to you because of social activities and travel over Christmas and New Years.

                                        I have renamed the test01.env file as .env .
                                        I have created the changebank.css file in the application/public/static folder.
                                        I have created the account.php, change.php, index.php, login.php and logout.php files in the application/public folder.

                                        I have been unable to copy the money.jpg and changebank.svg files to my application folder. If you could tell me where they are I can copy them myself without using the command line.

                                        I have built all these files on my web site and have tried to launch this with the URL:
                                        doncasteroffice.com/BillingMaster2/public/login.php

                                        This generates an error message "This page isn't working".

                                        I have also tried
                                        doncasteroffice.com/BillingMaster2/public/index.php

                                        This generates nothing.

                                        The web site works fine at https://doncasteroffice.com/BillingMaster2/BillingMaster01.html

                                        I am showing the directory tree from cPanel to show the general layout.

                                        795337ba-9d53-4256-8f4b-ac492b97a34c-PICT3.jpg

                                        Could you give me the web address I should use to test this application without using the command prompt.

                                        Thanks.

                                        Mike

                                        M 1 Reply Last reply 9 Jan 2024, 14:43 Reply Quote 0
                                        • M
                                          mark.robustelli @Mike123
                                          last edited by 9 Jan 2024, 14:43

                                          @mike123 Hope you had a great Christmas and New Years.

                                          1. The images should be located in the "complete-application" of the folder of the code you cloned earlier in the tutorial using the following commands:
                                          git clone https://github.com/FusionAuth/fusionauth-quickstart-php-web.git
                                          cd fusionauth-quickstart-php-web
                                          
                                          1. Simply, putting the files in a directory on a web server will not work. You will want to continue to follow the tutorial till the end and run the command under the "Run The Application" section. All your completed files should be in a folder named "your-application" and then you would run the command
                                          php -S localhost:9012 -t public
                                          

                                          Then the website should be available at http://localhost:9012.

                                          M 2 Replies Last reply 10 Jan 2024, 00:27 Reply Quote 0
                                          5 out of 27
                                          • First post
                                            5/27
                                            Last post