wowrudy

Experience

4,795

1 Best Reply Awards

  • Member Since 2 Years Ago
  • 48 Lessons Completed
  • 1 Favorite

2nd March, 2016

wowrudy left a reply on Accidentally Deleted Everything In /home • 1 year ago

You can launch new server and set it up again, because linode only charge you per hour, so you will not billed double.. and after everything running well of course you can delete your old server

this is my mine folder of forge except my domain folder

drwxr-xr-x  22 forge forge  4096 Mar  2 16:19 .
drwxr-xr-x   3 root  root   4096 Feb 18 11:48 ..
-rw-------   1 forge forge 12216 Mar  2 20:14 .bash_history
-rwxr-xr-x   1 forge forge  3106 Feb 18 11:48 .bashrc
drwx------   3 forge forge  4096 Feb 18 13:05 .cache
drwxrwxr-x   3 forge forge  4096 Feb 18 13:05 .config
drwxr-xr-x   2 forge forge  4096 Mar  2 16:19 .forge
-rw-rw-r--   1 forge forge    55 Feb 18 11:53 .gitconfig
drwxrwxr-x   3 forge forge  4096 Feb 18 13:05 .local
drwxrwxr-x 832 forge forge 32768 Feb 18 17:05 .npm
-rwxr-xr-x   1 forge forge   140 Feb 18 11:48 .profile
drwxr-xr-x   2 forge forge  4096 Feb 18 11:48 .ssh
-rw-------   1 forge forge  5436 Mar  1 19:20 .viminfo

and if you use backup service you can restore your server from your backup.

1st March, 2016

wowrudy started a new conversation Remove Installed SSL From Forge • 1 year ago

Hi, i created letsencrypt ssl from forge, and now i want to remove them from forge site, i'm already delete all folder in /etc/nginx/ssl but it not removed in forge site.. how to remove installed ssl from forge site ?

wowrudy left a reply on Let's Encrypt • 1 year ago

@Rjs37 i want to ask the same question..

wowrudy left a reply on Remove SSL From Forge • 1 year ago

@divanoli Hi, i deleted folder in /etc/nginx/ssl but in forge admin it still said my ssl activated in that folder

wowrudy left a reply on Let's Encrypt Multiple Sites • 1 year ago

I found the right one, and now i had another problem, i used cert.pem and privkey.pem in my nginx ssl configuration, and mysite https working but i got 502 bad gateway error

29th February, 2016

wowrudy left a reply on Let's Encrypt Multiple Sites • 1 year ago

yes it works, but now i'm a bit confused because i have folder like this :

domain.com
domain.com-0001
domain.com-0002

which folder is the correct one ? and how to remove my old license generated by forge ?

wowrudy left a reply on Let's Encrypt Multiple Sites • 1 year ago

yes and thanks so far to guide me, but i got permission denied when i want to check these folder, and i dont have root user with forge instalation. i tried sudo cd /etc/letsencrypt/live/ but it said no sudo command for cd. what should i do ? i need to check these folder to make sure i have correct path

wowrudy left a reply on Let's Encrypt Multiple Sites • 1 year ago

Finally i succeed to create certificate but don't have any clue the next step, i only got this message

IMPORTANT NOTES:

  • Congratulations! Your certificate and chain have been saved at /etc/letsencrypt/live/domain.com/fullchain.pem. Your cert will expire on 2016-05-29. To obtain a new version of the certificate in the future, simply run Let's Encrypt again.

  • If you like Let's Encrypt, please consider supporting our work by:

    Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le

wowrudy left a reply on Let's Encrypt Multiple Sites • 1 year ago

I tried create manual from ssh and i got same error

Failed authorization procedure.a.mysite.com(http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Error parsing key authorization file: Invalid key authorization: 454 parts

  • The following errors were reported by the server:

    Domain: a.mysite.com Type: unauthorized Detail: Error parsing key authorization file: Invalid key authorization: 452 parts

26th February, 2016

wowrudy left a reply on Let's Encrypt Multiple Sites • 1 year ago

my case is same with you, i have separated laravel installation on multiple subdomain. but why i need one certificate instead of separating certificate each subdomain because i had a problem with node server

var https = require('https'),     
    fs =    require('fs');        

var options = {
    key:    fs.readFileSync('/etc/nginx/ssl/mysite.com/55325/server.key'),
    cert:   fs.readFileSync('/etc/nginx/ssl/mysite.com/55325/server.crt')
};

var server = https.createServer(options);
var io = require('socket.io')(server);
var Redis = require('ioredis');
var redis = new Redis();

redis.subscribe(['mysite-channel','a-mysite-channel']);

redis.on('message', function(channel, message) {
    message = JSON.parse(message);
    io.emit(channel + ':' + message.event, message.data);
});

server.listen(3000);

i got this error in a.mysite.com

WebSocket network error: OSStatus Error -9807: Invalid certificate chain

wowrudy left a reply on Forge - Multiple Subdomain Let's Encrypt Ssl With Only One Certificate • 1 year ago

i check this error and this is the error message

Failed authorization procedure.a.mysite.com(http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Error parsing key authorization file: Invalid key authorization: 454 parts

wowrudy left a reply on Let's Encrypt Multiple Sites • 1 year ago

@Rjs37 i had the same problem. did you solve that ?

wowrudy left a reply on Forge - Multiple Subdomain Let's Encrypt Ssl With Only One Certificate • 1 year ago

on forge i have multiple site :

mysite.com a.mysite.com b.mysite.com c.mysite.com

and create new certificate mysite.com,www.mysite.com,a.mysite.com i added a.mysite.com in domain column and i got this error We were unable to obtain a LetsEncrypt SSL certificate on your server

25th February, 2016

wowrudy started a new conversation Forge - Multiple Subdomain Let's Encrypt Ssl With Only One Certificate • 1 year ago

Hi, i used multiple subdomain for my site and activate let's encrypt ssl.

  1. my question is how to activate let's encrypt ssl for all my subdomain with only one certificate? i have sub1.mysite.com, sub2.mysite.com, sub3.mysite.com

  2. what is clone certificate in ssl menu ?

22nd February, 2016

wowrudy left a reply on Node Socket.js Not Working With Https • 1 year ago

update : it's because file is owned by root, and i use user 'forge' i tried sudo node socket.js and working. but how to run this server without sudo ? because i want to run this with daemon using forge.laravel.com

21st February, 2016

wowrudy left a reply on Node Socket.js Not Working With Https • 1 year ago

@StormShadow no, i still stuck at this

19th February, 2016

wowrudy left a reply on Node Socket.js Not Working With Https • 1 year ago

i update my server, and when i run node socket.js i got this error message

server

var https = require('https'),     
    fs =    require('fs');        

var options = {
    key:    fs.readFileSync('/etc/nginx/ssl/mydomain.com/12345/server.key'),
    cert:   fs.readFileSync('/etc/nginx/ssl/mydomain.com/12345/server.crt')
};

var server = https.createServer(options);
var io = require('socket.io')(server);
var Redis = require('ioredis');
var redis = new Redis();

redis.subscribe('app1-channel');

redis.on('message', function(channel, message) {
    message = JSON.parse(message);
    io.emit(channel + ':' + message.event, message.data);
    console.log(channel + ':' + message.event);
});

server.listen(3000);

error message

fs.js:584
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: EACCES: permission denied, open '/etc/nginx/ssl/mydomain.com/12345/server.key'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.readFileSync (fs.js:431:33)
    at Object.<anonymous> (/home/forge/mydomain.com/socket.js:6:16)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:140:18)

i check permission

lrwxrwxrwx 1 root root   53 Feb 18 16:21 server.crt -> /etc/letsencrypt/live/mydomain.com/fullchain.pem
lrwxrwxrwx 1 root root   51 Feb 18 16:21 server.key -> /etc/letsencrypt/live/mydomain.com/privkey.pem

18th February, 2016

wowrudy left a reply on Node Socket.js Not Working With Https • 1 year ago

server

var server = require('http').Server();
var io = require('socket.io')(server);
var Redis = require('ioredis');
var redis = new Redis();

redis.subscribe('app1-channel');

redis.on('message', function(channel, message) {
    message = JSON.parse(message);
    io.emit(channel + ':' + message.event, message.data);
});

server.listen(3000);

view

var socket = io.connect( '//'+window.location.hostname+':3000');

it's working if use http, but not working if i use https on my site

wowrudy started a new conversation Node Socket.js Not Working With Https • 1 year ago

Hi, i want to make realtime application. i follow this guide https://laracasts.com/discuss/channels/general-discussion/step-by-step-guide-to-installing-socketio-and-broadcasting-events-with-laravel-51?page=1 and everything works on my server, but after activate ssl for my domain this not work

i got this error in my console Failed to load resource: Could not connect to the server.

how to solve that ?

8th November, 2015

wowrudy left a reply on Redirect After Session Expired • 1 year ago

Thankyou @mstnorris for your answer, it can solve my problem right now..

i must set config/session.php

'lifetime' => 120,

and in javascript i must write exact value with my php configuration 120 minute * 60 second * 1000 milisecond = 7.200.000

$(function() {
    // Set idle time
    $( document ).idleTimer( 7200000 );
});

but any simple php solution like this ?

'lifetime' => 120,
'expired-session-redirect' => {{ url('auth/login') }} 

wowrudy left a reply on How To Put License To My Web Application ? • 1 year ago

@shez1983 No, actually i copy and paste my answer to my original question to make it clear what i asked.. :) (sorry if it make you confuse)

maybe VPN is the best approach right now.. i just searching posibility to solve this problem as my question.. i just hold my question cause i still research this..

5th November, 2015

wowrudy started a new conversation Redirect After Session Expired • 1 year ago

How to redirect user to login page automaticly if their session expired ? i mean i don't want waiting user click some button or refresh manually

wowrudy left a reply on Custom 404 Error Page • 1 year ago

@ciby remember always to tick the answer if your asked question answered

wowrudy left a reply on How To Put License To My Web Application ? • 1 year ago

@mstnorris this is example what i need : my client don't accept their employee can access company apps at home, but some of them allowed to access this apps from home. this is why i need restrict per device. maybe you have another idea ?

@robgeorgeuk yes like mstnorris said, they dont have static ip address anyway..

for geolocation i know i can using php to get ip address and find country/city but what i need is to restrict apps usage in some location, thats why i need latitude and longtitude. but popup browser to allow track their location is annoying, and all employee who using this apps must be agree to track their location to company security issue..

this is closed apps for internal company only

wowrudy started a new conversation How To Put License To My Web Application ? • 1 year ago

Hi, i create a web application for my client company, and they want user can access this apps only from registered pc, so others employee cannot access this apps from their phone or laptop.. how to achieve that ?

and my client want to track their employee login via geolocation (latitude and longtitude). i triend html 5 geo but it always notice user to allow/accept first, how to hide that ? so all user login automaticly accept to allow share their location ?

Need advice.. Thanks

3rd November, 2015

wowrudy left a reply on Which OS Are Most Laravel Developers Using? • 1 year ago

OS-X For Development Windows For Gaming Ubuntu For Production Server

wowrudy started a new conversation Socket.IO 2 Project On The Same Server • 1 year ago

Hi, i had some trouble with implement socket.io i used same project for 2 domain in one vps server..

The problem is when i emit data then it shared to all project in this server.

i don't want they share same connection because there are 2 differenct company using same application

sorry for my bad english..

19th October, 2015

wowrudy left a reply on Upload Laravel 5 In Server • 2 years ago

what are you asking about ? absolutely you can use forge to handle all server configuration for you.

16th June, 2015

wowrudy left a reply on Published My First Book • 2 years ago

@milon Good Luck.. keep your good work..

wowrudy left a reply on Which Package Is Best For Roles & Permissions • 2 years ago

i used romanbican roles package.. and it's awesome

3rd June, 2015

wowrudy left a reply on How The Best Way To Make This Relation ? • 2 years ago

@umefarooq but they are not user, maybe i can use related_user table for parent table for master customer and supplier. thanks, now i got the idea

1st June, 2015

wowrudy left a reply on How The Best Way To Make This Relation ? • 2 years ago

@umefarooq but i cannot make a relation between inventory and my form ?

so how to know who is the supplier or customer ?

$stock->purchasing->supplier->name

or

$stock->sales->customer->name

26th May, 2015

wowrudy left a reply on How The Best Way To Make This Relation ? • 2 years ago

@umefarooq but i still do not know which form who make my inventory change..

i had table :

  • purchasing

  • purchasing_detail

  • purchasing_retur

  • purchasing_retur_detail

  • sales

  • sales_detail

  • sales_retur

  • sales_retur_detail

  • stock

  • stock_inventory

  • inventory_type

with your table i know what type "purchasing or sales" who make my stock change, but i dont have relation to that table.. am i need to add column purchasing_detail_id, sales_detail_id, purchasing_retur_detail_id, sales_retur_detail_id on my stock_inventory_table ?

27th April, 2015

wowrudy started a new conversation How The Best Way To Make This Relation ? • 2 years ago

Hi what is the best way to make a relation on this case: Hi, i have table stock, what should i do to design this attribute ? ex : item_id : int foreign key Item -> id quantity : int ... ... ...

i want to trace who make stock plus or minus in stock table

i had 4 for who has relation with table stock

purchasing = + stock retur purchasing = - stock sales = - stock retur sales = + stock

25th April, 2015

wowrudy left a reply on There Is Any Full Tutorial About Laravel 5 Package ? • 2 years ago

@martinbean yes but i still confusing about workflow, what should i do at beginning until i can pull my project via composer

wowrudy left a reply on UML For Laravel Project • 2 years ago

@mstnorris yes i think you are alright, i tried to manage my team better but now i still search better way to do that.. can you give me example what should i do from start and what should i tell to my developer team to working on project

wowrudy started a new conversation Php Artisan Not Working After Composer Update • 2 years ago

Hi, i got same problem like this

https://laracasts.com/discuss/channels/general-discussion/runtimeexception-on-fresh-install/?page=1

i cannot run php artisan command, it show nothing

and if i do composer update i got this error

Script php artisan clear-compiled handling the post-update-cmd event returned with an error                      

i dont have any file on my project :

vendor/compiled.php
storage/framework/compiled.php

or

bootstrap/compiled.php

24th April, 2015

wowrudy left a reply on UML For Laravel Project • 2 years ago

@mstnorris i know how to build activity diagram, use case diagram and ERD, but i confuse to make Class diagram and Sequence diagram for Laravel Project.. i never used before.. i need best practice to learn making them on Laravel Project..

@Peach no, i dont need generator..

wowrudy started a new conversation UML For Laravel Project • 2 years ago

Hi, i want to create UML for my laravel project.. so i hope i can work with my friend as a team better..

any suggestion how to do that in best practice ?

wowrudy started a new conversation There Is Any Full Tutorial About Laravel 5 Package ? • 2 years ago

i need to build package for my apps for reuse in my other project.. i read laravel 5 docs about package but i still not understand..

i need full tutorial explain about package development by example like jeffrey do usually.. any link or recommendation what should i do ?

18th February, 2015

wowrudy left a reply on Log Database For Updated And Deleted File • 2 years ago

but i don't know how to make it running on L5. im still newbie anyway

wowrudy left a reply on Log Database For Updated And Deleted File • 2 years ago

Yes.. something like that..

but there is any package like this on L5 ? because i already started my project using L5..

wowrudy started a new conversation Log Database For Updated And Deleted File • 2 years ago

Hi, i need to log old data when updated and deleted from database, because sometimes we need to audit what user doing in my application..

Any suggestion how to achieve that ?

15th January, 2015

wowrudy left a reply on Is Laravel 5 Already Stable Enough To Start New Projects With Right Now? • 2 years ago

yes, i started using it, but some of my package not working.. just wait more few weeks

11th January, 2015

wowrudy left a reply on Is Laravel 5 Already Stable Enough To Start New Projects With Right Now? • 2 years ago

Hi, today is mid January but laravel not yet release.. i want to start my new project with Laravel 5. is it okay to start my project with Laravel 5 ?

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.