jpmg

Member Since 2 Years Ago

Experience Points
1,210
Total
Experience

3,790 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 1
1,210 XP
May
14
4 weeks ago
Activity icon

Replied to Two Virtual Hosts Apache + DigitalOcean + Laravel

finally I solved the problem, first of all I have to make son change of my virtual host, because I don't have a domain I was working only in my virtual host so at las my virtual host look like this.

		<VirtualHost 134.209.XXX.XXX:80>
			ServerName hidrofrac
			ServerAlias hidrofrac
			ServerAdmin [email protected]
			DocumentRoot /var/www
			ErrorLog ${APACHE_LOG_DIR}/hidrofrac.log
			CustomLog ${APACHE_LOG_DIR}/hidrofrac-access.log combined
 			<Directory /var/www/hidrofrac/public>
  					Require all granted
  					AllowOverride All
			</Directory>
		</VirtualHost>
May
13
4 weeks ago
Activity icon

Replied to Two Virtual Hosts Apache + DigitalOcean + Laravel

Hello sr57 yes i know is important to give feedback I always do it, i have not resolve my problem, I reading a tutorial the DigitalOcean recommend to me

May
12
1 month ago
Activity icon

Replied to LARAVEL 404 PAGE NOT FOUND EXCEPT HOMEPAGE

my friend you are missing the name of your app between this line srv/www/htdocs/public it should be srv/www/htdocs/NAME_OFF _YOUR_APP/public

 DocumentRoot /srv/www/htdocs/NAME_OFF _YOUR_APP/public

Directory /srv/www/htdocs/NAME_OFF _YOUR_APP/public
Activity icon

Replied to Two Virtual Hosts Apache + DigitalOcean + Laravel

so in my /etc/hosts will be like this?

134.209.XXX.XXX fortinclient 134.209.XXX.XXX hidrofracliente

and do i have to make change in my VH .conf ?

Activity icon

Replied to Two Virtual Hosts Apache + DigitalOcean + Laravel

i run this command in my virtual machine to see my virtual host running in apache.

#apache2ctl -S

and i show me this.

VirtualHost configuration:

		*:80                   is a NameVirtualHost
    	default server fortinclient.com (/etc/apache2/sites-enabled/fortinclient.conf:1)
     	port 80 namevhost fortinclient.com (/etc/apache2/sites-enabled/fortinclient.conf:1)
        alias www.fortinclient.com
     	port 80 namevhost hidrofracliente.com (/etc/apache2/sites-enabled/hidrocliente.conf:1)
        alias www.hidrofracliente.com

I try all this

http://134.209.XXX.XXX/hidrofrac.com http://134.209.XXX.XXX/fortinclient.com

show me.

404 Sorry, the page you are looking for could not be found.

but.

http://134.209.XXX.XXX/login

it works but redirect to my first virtual host

Activity icon

Replied to Two Virtual Hosts Apache + DigitalOcean + Laravel

Not workin I change ServerAlias with www.forticlient but I don't have the Domain i have is a virtual machine in Digital Ocean with ip 134.209.XXX.XXX not matter what I do is not working. thank you for your time sr57

Activity icon

Replied to Two Virtual Hosts Apache + DigitalOcean + Laravel

Yes is working only for one Vhost..

  1. VHost hidrofliente.conf

     	<VirtualHost *:80>
     			ServerName hidrofcliente
     			ServerAlias 134.209.XXX.XXX
     			ServerAdmin [email protected]
     			DocumentRoot /var/www/hidrofcliente/public
     			ErrorLog ${APACHE_LOG_DIR}/hidrofcliente.log
     			CustomLog ${APACHE_LOG_DIR}/hidrofcliente-access.log combined
     			<Directory /var/www/hidrofcliente/public>
     				Require all granted
     				AllowOverride All
     			</Directory>
     </VirtualHost>
    
  2. VHost forticliente.conf

     <VirtualHost *:80>
     		ServerName forticliente
     		ServerAlias 134.209.XXX.XXX
     		ServerAdmin [email protected]
     		DocumentRoot /var/www/forticliente/public
     		ErrorLog ${APACHE_LOG_DIR}/forticliente.com.log
     		CustomLog ${APACHE_LOG_DIR}/forticliente-access.log combined
     			<Directory /var/www/forticliente/public>
     				Require all granted
     				AllowOverride All
     		</Directory>
     </VirtualHost>
    

those two files area in my virtual machine in Digital Ocean

yes I enable my two .conf files with

 a2ensite forticliente.conf
 a2ensite hidrofliente.conf

in my /etc/hosts I haven't made anything

ok now in my personal computer out off Digital Ocean in my navigation bar.

http://134.209.XXX.XXX/login it work for my first VHost but how can i make to work for both VHost?

Activity icon

Replied to Two Virtual Hosts Apache + DigitalOcean + Laravel

Hy sr57 I did this steps

  1. erase all .conf in my apache2/ sites-available and create another one only one in my /etc/hosts

    <VirtualHost *:80> ServerAdmin [email protected] ServerName hidroclient ServerAlias hidroclient DocumentRoot /var/www/hidroclient/public ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory /var/www/hidroclient/public> Require all granted AllowOverride All

  1. erase the two lines 134.209.XXX.XXX hidroclient 134.209.XXX.XXX forticlient

  2. restart all over again

and now when i go to my personal computer and write the ip the i have in DigitalOcean like this

134.209.XXX.XXX/login it works... but only for one virtual hosts the problem is that i need two VH for two diferents logins

Activity icon

Replied to Two Virtual Hosts Apache + DigitalOcean + Laravel

thank you sr%7 but is not working with those changes, I think that problem is my /etc/hosts because I wrote in the navegacion bar http://134.209.XX.XXX/fotinclient and have the same error 404 Sorry, the page you are looking for could not be found. I tried with this addres.

http://134.209.XX.XXX/fotinclient/public http://134.209.XX.XXX/fotinclient/public/login

Nothing works.

May
11
1 month ago
Activity icon

Started a new Conversation Two Virtual Hosts Laravel + Apache + DigitalOcean

hello everyone.

I have a problem to login in 2 app the I have in my Virtual Machine in DigitalOcean, say that my ip to login in DigitalOcean is 134.209.XXX.XXX and in my var/www I created two directory one is hidroclient and the other one is fotinclient those are my directory for my apps, I create in my apache sites-available 2 config.

hidroclient.conf

  	<VirtualHost *:80>
		ServerAdmin [email protected]
		ServerName  hidroclient
		ServerAlias hidroclient
		DocumentRoot /var/www/hidroclient/public
		ErrorLog ${APACHE_LOG_DIR}/error.log
		CustomLog ${APACHE_LOG_DIR}/access.log combined
		<Directory /var/www/hidroclient/public>
    		Require all granted
    		AllowOverride All
 		</Directory>
</VirtualHost>

fotinclient.conf

<VirtualHost *:80>
	ServerAdmin [email protected]
	ServerName  fotinclient
	ServerAlias fotinclient
	DocumentRoot /var/www/fotinclient/public
	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined
	<Directory /var/www/fotinclient/public>
    	Require all granted
    	AllowOverride All
 	</Directory>

after tha I did this two comand

	a2ensite hidroclient.conf
	a2ensite fotinclient.conf  

after tha I did this comand

nano /etc/hosts

   127.0.1.1 ubuntu-s-1vcpu-2gb-intel-nyc1-01 ubuntu-s-1vcpu-2gb-intel-nyc1-01
	127.0.0.1 localhost
	134.209.XXX.XXX hidroclient
	134.209.XXX.XXX fotinclient

then i reload and restar apache

when i go to navigation bar with the address http://134.209.XXX.XXX/hidroclient i got 404 Sorry, the page you are looking for could not be found.

I don't know what i doing wrong, can someone help me?? thank you very much

Activity icon

Started a new Conversation Two Virtual Hosts Apache + DigitalOcean + Laravel

hello everyone.

I have a problem to login in 2 app the I have in my Virtual Machine in DigitalOcean, say that my ip to login in DigitalOcean is 134.209.XXX.XXX and in my var/www I created two directory one is hidroclient and the other one is fotinclient those are my directory for my apps, I create in my apache sites-available 2 config.

hidroclient.conf

  	<VirtualHost *:80>
		ServerAdmin [email protected]
		ServerName  hidroclient
		ServerAlias hidroclient
		DocumentRoot /var/www/hidroclient/public
		ErrorLog ${APACHE_LOG_DIR}/error.log
		CustomLog ${APACHE_LOG_DIR}/access.log combined
		<Directory /var/www/hidroclient/public>
    		Require all granted
    		AllowOverride All
 		</Directory>
</VirtualHost>

fotinclient.conf

<VirtualHost *:80>
	ServerAdmin [email protected]
	ServerName  fotinclient
	ServerAlias fotinclient
	DocumentRoot /var/www/fotinclient/public
	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined
	<Directory /var/www/fotinclient/public>
    	Require all granted
    	AllowOverride All
 	</Directory>

after tha I did this two comand a2ensite hidroclient.conf a2ensite fotinclient.conf

after tha I did this comand

nano /etc/hosts 127.0.1.1 ubuntu-s-1vcpu-2gb-intel-nyc1-01 ubuntu-s-1vcpu-2gb-intel-nyc1-01 127.0.0.1 localhost 134.209.XXX.XXX hidroclient 134.209.XXX.XXX fotinclient

then i reload and restar apache

when i go to navigation bar with the address http://134.209.XXX.XXX/hidroclient i got 404 Sorry, the page you are looking for could not be found.

I don't know what i doing wrong, can someone help me?? thank you very much

Apr
28
1 month ago
Activity icon

Started a new Conversation Problem With Laravel, Apache And DigitalOcean (too_many_redirects)

Hello everyone.

I have a problem with my laravel project, I installed in DigitalOcean, all the instalacions work fine my Php, composer, postgresql all work fine.

I created my virtualhost in Apache like this.

<VirtualHost *:80>
	  ServerAdmin [email protected]
	  ServerName hidrofracweb.com
	  ServerAlias www.example.com
	  DocumentRoot /var/www/hidrofrac/public
	  ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined
	  <Directory /var/www/hidrofrac/public >
          Require all granted
          AllowOverride All
     </Directory>
</VirtualHost>

and in my project route are like this.

web.php

	Auth::routes();
	Route::get('/home', '[email protected]')->name('home');
	Route::get('/', 'Auth\[email protected]')->name('logout');
	Route::post('departamentos/departamento', '[email protected]')->name('departamento');
	Route::post('usuarios/usuario', '[email protected]')->name('usuario');
	Route::post('registroproducto', '[email protected]');
	Route::post('registroproubicaion', '[email protected]');
	Route::post('usuarios/usuario', '[email protected]')->name('usuario');
	Route::post('usuarios/gpproducto','[email protected]');
	Route::post('registrausuario','[email protected]');
	Route::post('usuarios/permiso', '[email protected]');
	Route::post('registrapermiso', '[email protected]');

when I work in my local computer and open navigator I run my project like this.

http://localhost/hidrofrac/public/login

Works fine...

But when I run my project in my virtual machine with my ip, get this error.

page not working too many redirects
ERR_TOO_MANY_REDIRECTS

can someone help me please?

Mar
30
2 months ago
Activity icon

Started a new Conversation Line Graph Problem, Morris Graph

Good afternoon a question, it is possible that using the Morris library, when a point ends and its last value is 0, the line goes down straight to the value of 0 since it currently makes me a curvature that I do not want.

var week_data = [

	{creadausuario: "2021-03-05", hora: "12:00:00", caudal: "70", periodo: "02:15:00"},
	{creadausuario: "2021-03-05", hora: "10:30:00", caudal: "70", periodo: "09:45:00"},
	{creadausuario: "2021-03-05", hora: "10:30:00", caudal: "0", periodo: "09:45:00"},
	
    ];
		Morris.Line({
		  element: 'time-graph',
		  data: week_data,
		  xkey: 'periodo',
		  xLabels : 'periodo',
		  parseTime: false,
		  smooth: true,
		  hideHover: 'auto',
		  pointSize: 0,
		  ykeys: ['caudal'],
		  labels: ['caudal'],
		  xLabelFormat: function (d) {
return ("0" + d.getHours()).slice(-2) + ':' + ("0" + d.getMinutes()).slice(-2) + '-' + ("0" + d.getDate()).slice(-2) + '-' + ("0" + (d.getMonth() + 1)).slice(-2) + '-' + d.getFullYear();

},

		});