Home Forums Support How to install Invoice Ninja on Hostgator

This topic contains 28 replies, has 3 voices, and was last updated by  Hillel Coren 3 years, 3 months ago.

Viewing 29 posts - 1 through 29 (of 29 total)
  • Author
  • #2092


    Hi there,
    I have my own shared host but after I extracted the files from the invoice ninja onto my site, I get a list of files and no prompt to set up the app and database etc.

    Am I missing a step?




    Hillel Coren

    By default you can access the site using the /public folder.

    The best practice is to configure the site by mapping your webroot to the public folder but you may also be able to change it using the .htaccess file.




    Thanks for the reply.. I tried that with this in my .htaccess file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*)$ public/$1 [L]
    # RewriteRule “^.env” – [F,L]
    RewriteRule “^storage” – [F,L]

    # https://coderwall.com/p/erbaig/laravel-s-htaccess-to-remove-public-from-url
    # RewriteRule ^(.*)$ public/$1 [L]

    Here is the URL I’m using with this but I get 500 Internal Server error still…I’m surprised this isn’t straight forward with a simple hostgator server?



    Hillel Coren

    I didn’t notice that you’re using a subdomain. In that case you should map you server’s web root to the /public folder use the default .htaccess file.



    Ah ok. So I should go to the main domain and add. Htaccess code in there just like above?


    Hillel Coren

    You shouldn’t need to change the .htaccess file at all, you need to map the webroot to /public.



    How would I do that? Sorry, I’m a newbie to web configs


    Hillel Coren

    It varies, I’d suggest either searching for ‘hostgator laravel’ or contacting your webhost for help.



    So would I need to install Laravel on my shared hostgator account? Not sure why..


    Hillel Coren

    Our app is a Laravel app so the similar steps should apply, for example making sure you have PHP >= 5.4.



    Oh boy, yeah it looks like that Laravel.io documentation is good until it gets to this part

    “Anyway, open the ‘laravel/bootstrap/paths.php’ file and correct the bootstrap path like this:”

    There isn’t any ‘paths.php’ in the bootstrap directory…stumped…


    Hillel Coren


    Thanks Hillel,
    Was able to update my public_html/index.php it but still getting a 500 Internal Server error when trying to access the ninja invoices page. Any ideas?


    Hillel Coren

    Have you checked your web server error logs for details on the error.



    Here is the error I got..

    [Mon Jan 25 08:38:38 2016] [error] [client] SoftException in Application.cpp:313: File “/home3/papanic/public_html/invoices.com/public/index.php” is writeable by group
    [Mon Jan 25 08:35:09 2016] [error] [client] SoftException in Application.cpp:313: File “/home3/papanic/public_html/invoices.com/public/index.php” is writeable by group


    Hillel Coren


    Ok that helped…getting somewhere now..but got this error..

    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home3/papanic/public_html/invoices.com/public/index.php on line 52
    Parse error: syntax error, unexpected T_STRING in /home3/papanic/public_html/invoices.com/public/index.php on line 52

    I checked index.php line 52 and it shows this…

    51 $response = $kernel->handle(
    52 $request = Illuminate\Http\Request::capture()
    53 );


    Hillel Coren

    That looks like a PHP version issue, can you check which version you’re running.



    I’m on PHP 5.5


    Hillel Coren

    All post I’ve found for this error are related to the PHP version. Is it possible you’re running two separate versions of PHP. It can be helpful to add a phpinfo page to double check the server (vs CLI) version.





    Hi Hillel,
    Looks like it worked! I was able to go to Cpanel and go to php config and choose PHP 5.4. Went back to my invoices sub-domain and got access!

    Hi 5!


    Hillel Coren

    Awesome, thanks for sticking with it.

    Let me know if you run into any other problems.



    Thanks Hillel! Hope someone else will benefit from our thread!



    I’m having trouble setting up the email setting at the startup screen. I couldn’t get the emails to come through with my Gmail SMTP and TCL settings and I just went ahead with the set up. Now I’m getting errors when I try to ‘recover’ the forgotten password.

    “Whoops, looks like something went wrong.

    Swift_TransportException in AbstractSmtpTransport.php line 383:
    Expected response code 220 but got code “”, with message “”


    Hillel Coren

    I’d suggest checking your email credentials in the .env file in the root of the folder, if possible try with a different email account.

    There’s an outstanding issue where testing email on the setup screen always shows success.



    Ok, I see I got to the .env file and got the original credentials that I set. Yeah it seems that the email test shows a success when I first did the set up.



    Hi Anonymous and Hillel Coren,

    I can see Anonymous has successfully installed Invoice Ninja on his/her shared hosting. I am facing the same problem. My domain is billing.mydomain.com. I have uploaded all the files. I have also created the database.

    Now what should I do?





    I am able to see the setup page. I just have to change the permission of the folder “public” to 755 and now I can see the setup page.

    After providing all the information, now I see this error:

    ErrorException in /home/ogrlega1/public_html/billing/vendor/symfony/process/ProcessUtils.php line 74:
    escapeshellarg() has been disabled for security reasons

    Can you help me guys?



    Hillel Coren

    There’s more info here: https://github.com/invoiceninja/invoiceninja/issues/784

    I believe you’ll either need to temporarily enable escapeshellarg or setup the app from the command line

Viewing 29 posts - 1 through 29 (of 29 total)

You must be logged in to reply to this topic.

Posted in: