Search found 172 matches

by hybris
Thu Nov 23, 2017 9:36 am
Forum: PHP - Frameworks
Topic: Laravel socialite facebook login does not work.. (ed:Solved)
Replies: 1
Views: 10596

Re: Laravel socialite facebook login does not work..

Never mind.. I got it to work :)
by hybris
Thu Nov 23, 2017 5:04 am
Forum: PHP - Frameworks
Topic: Laravel socialite facebook login does not work.. (ed:Solved)
Replies: 1
Views: 10596

Laravel socialite facebook login does not work.. (ed:Solved)

Hi, I followed this tutorial: https://appdividend.com/2017/07/12/laravel-facebook-login/ to add a facebook login but I get this error: ErrorException (E_NOTICE) Undefined variable: service it is in the callback function: $user = $service->createOrGetUser(Socialite::driver('facebook')->user()); publi...
by hybris
Sun Oct 15, 2017 2:36 pm
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

Ok so I finally fixed it! there was some error in .htaccess in the public folder.. I tried to remove the .htaccess file and then it didnt give me error when i was messing with <Directory /var/www/html/Test/public> in the 000-Default-le-ssl.conf file so I copied another .htaccess file to Test/public ...
by hybris
Sun Oct 15, 2017 1:09 pm
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

Maybe start by undoing that change that forces things to HTTPS just so you can see where things are breaking? Well I spent last 1-2 weeks trying to set it up following different tutorials (Im totally new to DO, Laravel, Unix, GIT ...) So this will be my last option, I dont know what I did when I en...
by hybris
Sun Oct 15, 2017 10:02 am
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

I followed some guide that makes all connection https and its failing on the https.. I havent been able to test http since it always switches to https (I suspect it would work on http but fail on https since 000-default.conf is config for http right? Here I could add the <Directory /var/www/html/Tes...
by hybris
Sun Oct 15, 2017 8:31 am
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

Ok so my folderstructure is: var/www/html/Test/public/index.php where Test is the Laravel project folder. the .htaccess is located in /public/ My apache2: sites-enabled/000-default.conf <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to...
by hybris
Sun Oct 15, 2017 4:53 am
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

Ok so i found the missing pages...

i have to add index.php to find them like:

www.mysite.com/index.php/login <- I see the login page

when i go to my site and try login it shows:
www.mysite.com/login <- 404 error

So how do i fix it so i dont have to type in index.php to find the pages ?
by hybris
Sun Oct 15, 2017 3:31 am
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

error.log (apache2)

Code: Select all

[Sun Oct 15 06:25:03.456179 2017] [mpm_prefork:notice] [pid 1580] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Sun Oct 15 06:25:03.456232 2017] [core:notice] [pid 1580] AH00094: Command line: '/usr/sbin/apache2'

by hybris
Sat Oct 14, 2017 5:11 pm
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

Celauran wrote:Have you checked your Apache logs?
Nope only the laravel log but it didn't say anything.
Celauran wrote:I'm assuming that your document root is pointing to /public and that everything else lives above that, is that correct?
Yeah when i type in the browser www.mypage.com its pointing to lavarel/public/index.php
by hybris
Sat Oct 14, 2017 3:48 pm
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

Nope, i used the php artisan create:auth command on my local and it works fine there.. in git there was some files/folders created that i pused to production server and thats all. I thought it could be some routes problem but when i checked routes on my local it doesn't contain routes to login / reg...
by hybris
Sat Oct 14, 2017 2:33 pm
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

Ok so I almost got it working now.. I made a local homepage that i pushed to production server through git (smashes my head against the wall for not using git before..its really cool :)). So I can see my homepage online. then I made some text change to welcome.blade on my local server and pushed it ...
by hybris
Sat Oct 14, 2017 5:11 am
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

Ok so I think I set up a gti hook on the server (according to tutorial). So now Im back on my local computer. Which files shall I include / exclude from GIT? I cant seem to fins a tutorial for this? Anyone got a good link to tutorial for which files to include in git version handling? (Ofc I underst...
by hybris
Mon Oct 09, 2017 11:42 am
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

what’s the use case for having the Laravel installer on your DO box? Just for sports... didn't I tell you love torturing myself..?? :) . .. Rofl, I thought I had to install laravel on the droplet too to get it to work. I thought I had to set up an identical laravel project on the droplet and then i...
by hybris
Mon Oct 09, 2017 7:00 am
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

Another question: Im following this guide to install laravel on DO server: https://laracasts.com/series/laravel-from-scratch-2017/episodes/1 I created a dir in usr/local/bin named composer in usr/local/bin/composer I have the following files: composer.phar and composer-setup.php And I can run compos...
by hybris
Sun Oct 08, 2017 5:00 pm
Forum: PHP - Frameworks
Topic: Laravel: Newbie questions + Shared hosting (one.com)
Replies: 30
Views: 47370

Re: Laravel: Newbie questions + Shared hosting (one.com)

Woha, some tutorials that actually worked without having to search the net for tons of workarounds :) Ok so I set up apache, php and mysql (was actually easier to set those things up in DO than to install homestead on my local computer heh). Ok so another newb question.. shall I install git on the s...