arrow_upward

Posted by: debjit - 04-03-2021, 06:04 AM - Forum: Web Development - Replies (1)
I am working on a project on a Blood Donation Diary app. After completing the project I needed to deploy my project to see its behaviour in the live environment. I have limited free option. Here I am sharing how I managed to deploy to vercel with MySQL database support. Vercel is a pass provider. You can deploy non-commercial projects for free here with up to 100GB bandwidth and no storage.

To start you need the following things-

1 . Git account 
 1.a. How to add the remote repo to a local dev environment
2. Vercel Account
3. Remote enabled MySQL database access.

Here I am demonstrating how to make work with the laravel app.

Create a laravel app using composer

Code:
composer create-project laravel/laravel laravelapp

Make Updates to or customise to it.

create these files in your root directory

Create this file
Code:
api/index.php
.vercelignore
vercel.json

Please note there is a dot file.

Now add these codes to their files

api/index.php

PHP Code:
<?php

// Forward Vercel requests to normal index.php
require __DIR__ '/../public/index.php'

.vercelignore

PHP Code:
/vendor 

[font=Monaco, Consolas, Courier, monospace]vercel.json[/font]
PHP Code:
{
 
   "version"2,
 
   "functions": {
 
       "api/index.php": { "runtime""[email protected]}
 
   },
 
   "routes": [{
 
       "src""/(.*)",
 
       "dest""/api/index.php"
 
   }],
 
   "env": {
 
       "APP_ENV""production",
 
       "APP_DEBUG""true",
 
       "APP_URL""https://yourproductionurl.com",

 
       "APP_CONFIG_CACHE""/tmp/config.php",
 
       "APP_EVENTS_CACHE""/tmp/events.php",
 
       "APP_PACKAGES_CACHE""/tmp/packages.php",
 
       "APP_ROUTES_CACHE""/tmp/routes.php",
 
       "APP_SERVICES_CACHE""/tmp/services.php",
 
       "VIEW_COMPILED_PATH""/tmp",

 
       "CACHE_DRIVER""array",
 
       "LOG_CHANNEL""stderr",
 
       "SESSION_DRIVER""cookie"
 
   }


Note: you can get all kind of info on the supported framework using this vercel PHP here

https://github.com/juicyfx/vercel-php

Now create and push to your git. (I am assuming you know how to do that. Google if you can't.)

Now you need to create a project into vercel and add a GitHub account with vercel.

Now add GitHub repository to your project here

Code:
project > settings > git > Connected Git Repository



Now with every push, your site will auto-deploy.

Now you need to add apps environment variables


Code:
project > settings > git > Environment Variables


From your command line inside the local dev app run
Code:
php artisan key:generate --show

This will create a key,(and display) for your app and add these lines as env in vercel

Code:
APP_KEY = *****



You can add your MySQL details here or just hardcoded to the app, I have found env not so reliable. So I have to hard code it. Please note hard coding to GitHub repo is not recommended and it is exposed. you can do that inside your config/database.php file.

Code:
DB_CONNECTION=mysql
DB_HOST=**
DB_PORT=3306
DB_DATABASE=****
DB_USERNAME=**
DB_PASSWORD=**

Replace ** with their values.

You have to migrate your MySQL database ahead of time because vercel does not provide a terminal. 

So here is how I did use vercel to check on my development in a production environment.

I am using vercel for 2 days now. I will update as I learn more.

Have you used this tutorial to get a free hosted website for yourself? please share. I will update with another free PostgreSQL service.
Posted by: deanhills - 03-31-2021, 08:20 PM - Forum: VPS Giveaways - Replies (10)
 17 VPSs are Available
We're aiming at a date of 7th April for announcing the winners.  

PLEASE study the Terms of Service of the VPS/s you request very carefully BEFORE you apply.

For comparing the VPS Specifications, users can check https://post4vps.com/compare/#1,2,3,7,9,10,12

PLEASE READ AND UNDERSTAND THE TERMS AND CONDITIONS OF THE SPONSOR BEFORE YOU APPLY - REFER BELOW:
  • Users must read and agree to all terms of the SPONSOR (of the VPS which they want) when they apply.  These can be found on our Plans Page.  
  • When you apply, please let us know your preferred OS and the Domain you will be using with the VPS.
Please Read before Applying
  1. Read Our Forum Rules before applying.
  2. You should have met our minimum requirements to get VPS.
  3. Read Application Format before applying. (If the application format is wrong then your Request will be rejected)
  4. You must post your VPS application in VPS Request Forum.
  5. Read TOS of VPS providers before applying.

Posted by: TrK - 03-31-2021, 05:36 AM - Forum: VPS General Discussion - Replies (16)
Hello fellow members, I have been in the industry since 2014 testing out stuff that doesn't even make sense like several control panels I have tested just for the fun, and honestly speaking I had an urge to test out their functionality and user experience. I have tested several Free ones open source ones and some commercial ones too. So let's just share them all here. I will be covering the Panels which are Free as in $0 for any fees. So let's just get started with the list of free panels.

1. Keyhelp
You might be wondering what is this thing, well keyhelp is been a really helpful panel from the last year(i.e. 2019) it supports everything I needed to run a shared hosting server for several of guys(they said they wanted to isolate users and all) keyhelp is actively developed for Debian based Linux distros with several new features popping out every new update. The features and capabilities of this one are really good it has a special function where it will automatically update all packages swiftly but it will also let you know if few packages require your attention, amazing isn't it? it has all the features one can ask for including but not limited to An advance file manager, DNS manager, mail system with queue management, and of course white-labeling(you already know what this is :wink: ) so what makes it stand out? the only thing I can think of its capabilities to automate things and preserve your settings for automatic updates without any errors(at least I didn't encounter any).

More information and setup instructions: https://www.keyhelp.de/en/

2. TinyCP
You guys might have heard about this thing another Debian based panel with some awesome features(typically the same as every other panel there is like file manager, DNS, mail, etc etc) but the thing is not only with all the features running intact the memory footprint for this specific beast is low means it won't be hogging your resources at all and with the beautifully crafted code with the modular approach is just simply amazing. Sometimes I wonder why isn't this thing famous? well maybe because it's limited to Debian-based distros? who knows at least not me(i am not a god so meh).

More information and setup instructions: https://tinycp.com/home/index

3. VestaCP
Wait I know before you say something I already know the development for the "official" branch is all but active there are several high-risk security issues in the code but there are still some forks that are actively in development trying their hardest to fix things that are just ignored on the official development branch. A fork from the MadeITBelgium is such an example where they are actively developing this fixing bugs and security vulnerabilities but this branch is limited and only meant for the RedHat-based Linux distros, perhaps you can find some other branch with the same active development for your favorite Linux who knows. Talking about features vestacp is really good when I consider the apache + Nginx(reverse proxy) setup it optimizes the website to its maximum performance but there are things I don't understand why did they do that. One such thing is the file manager and sFTP plugin which are paid, I know it's not a bad thing for something good to be paid but the reason stated before releasing something was "We will have paid plugins to support our development" which technically just died without any notice or announcement it was like now you can see me, poof, now you can't.

More information and setup instructions: https://vestacp.com

4. HestiaCP
Remember the vestaCP from the above point? I know you do well Hestia is a fork of VestaCP too but for Debian-based distros(IDK why did they renamed it though) well technically speaking they are of course a fork but with a different approach and what is that? their free file manager that comes out of the box to be used yay! a file manager for those who are lazy or just doing some small modifications on the go! ahem, brahmasmi! just kidding it's been an overall good experience using the hestiacp, of course, their UI is something I didn't really like but it depends on person to person. So any other features? aside from active development and file manager I can't think of any(but isn't it all you need?).

More information and setup instructions: https://www.hestiacp.com/

5. aaPanel
Yep it's this one alright, aaPanel the internationalized version of Pagoda(Baota in Chinese) panel(bt.cn panel) yeah it's a Chinese product but I assure you not all Chinese products are bad like corona, ahem, I think I shouldn't have said that well speaking of aaPanel this thing is really amazing for single users(like me woohoo! yeah boi!) the features are good as well the modular approach like tinyCP making it better and better and on top of that it supports many things like docker, ruby apps, etc just name it and you will the module inside its AppStore, simply breathtaking me and some of my friends started using this panel like a year ago, of course, there were some issues and concerns(there are still some though) but overall satisfaction this one provided was simply over the top, then why didn't I put it at the top? because it still lacks some features like multi-users(i know it's a deciding factor for some) also this one is buggy if you want it to be you're all in one web server serving mails + websites + DNS + some random app it might break your patience when configuring it to your liking but once you get yourself familiar with this one it's quite easy(not technically you can still face some issues like lsphp installing itself even after removing OLS).

More information and setup instructions: https://aapanel.com

6. ISPconfig
I don't think I need to say much about it one of the oldest and still growing with active development and great community support. It has most of the features one can think of from basic administration multi-user shared hosting ones just name it(well not like aaPanel that support docker, ruby, etc) the only thing I don't like about this one is the installation process if you are a beginner you will be facing something you never encountered and it will really cause a headache at some point. This one is especially for advanced users as they know what do to if an error occurred during the installation. But to be honest I really like its permission engine or whatever it is called it's by far the best I have ever seen in free panels.

More information and setup instructions: https://ispconfig.com

7. CyberPanel
Some of you might already be using this one it natively works with OLS(OpenLiteSpeed) and has a really good UI. It also supports containerizations and git subversion control able to deploy apps directly from the git repository. I used to be a big fan of this project just because of OLS but as time pass and I started noticing OLS is not as fast as they claimed it to be but instead, sometimes it was awful they say it supports apache rewrites but you have to restart the OLS if you made any changes and wait until it auto-restart itself after saving your .htccess file. I was testing a bunch of stuff and finally made a decision to shift from OLS to Nginx thus I made a move towards other panels. If you are into fancy things and modern UI you might prefer CyberPanel as your daily driver.

More information and setup instructions: https://cyberpanel.net

8. Virtualmin
I don't think there is any veteran here who hasn't used the Virtualmin as an extension of the webmin server management panel, while webmin is meant for server management Virtualmin is meant for website management allowing you to have a fully functional multi user shared hosting server. The features are by far the same as any other panel out there but the complete code visibility just makes it WOW! if I remember correctly I was successful in imitating the Cpanel server which sent the same headers and same pages rendered by Cpanel the only thing left was the UI and I dropped it after I lost the instance(it was from a provider who went in hiding in the early stage of post4vps).

more information and setup instructions: https://virtualmin.com


My verdict
I know I didn't include many other panels like fastpanel, ajenti, etc but the point on this thread was to give a general idea about Server panels you can try and dig out their potentials I migrated my keyhelp VM to aaPanel as I no longer have multi-user requirements and/or hosting specific needs I am mostly deploying JS, python and PHP apps and aaPanel do the job for me without any issues if you feel like I should edit and include other panels in the list do feel free to PM/DM me and I'll make sure to discuss the usage and efficiency for the said panel.

Thank you for your time.


Last updated: 31st Masrch 2021
Posted by: deanhills - 03-30-2021, 08:34 AM - Forum: Announcements - Replies (1)
Following VPS Holders still have to complete their posts for March 2021.  

VPS Holders with missing posts:
@Honey   -   5
@YOuNeS_Dz   -   13
@sAmI   -   0

I'm confident @xdude will complete his posts as he usually does right up to the last day of the month.  Hopefully VPS 9 worked out for @Honey not sure what is happening.  @sAmIas been in touch.

@YOuNeS_Dz please note @Dynamo's "Missing Posts" rules are strictly applied. Failing to complete the 20 posts by end of tomorrow, 31 March will lead to the VPS powered off.  Once the VPS has been powered off, if you want to keep the VPS, you will need to reapply for it during the April Giveaway.  Please note that 100$ will then be deducted from your credit points as penalty.  If your credit points are low, you need to keep a close watch on them as you need to always have 100$ in your account in order to apply for a VPS.
Posted by: debjit - 03-29-2021, 11:11 AM - Forum: Software - No Replies
I was using valet for macOS, but I have to switch windows as my Hackintosh laptop is getting pretty warm.
I found laragon page is pretty compelling and offer similar features like valet. I installed and it's been 2 years that I never tried another dev stack.
Here I am sharing some of the features that I like, you can get the full feature set from their website Laragon .

1. Pretty Url and sharing

I need to change all the host file manually for every app that I create, now laragon do that for me automagically. It creates app.test or anything you like as an extension. And when I have to share from my computer sometimes it does not register my localhost, but laragon makes sharing with ngrok just one click. 

2. Comes with some goodies 

It comes with notepad++,git and ConEmu which is better than dos in my opinion. HeidiSql portable software also a good alternative for phpmyadmin.

There are a lot of features to see, I advise you to go and give it a try.
Posted by: LightDestory - 03-28-2021, 02:10 PM - Forum: VPS Protection - Replies (2)
I open this thread to let you know that you must always update your software!

Recently a new CVE has been filled that explain how to exploit a "Ignition" bug that allows the arbitraty execution of code. IT is really dangerous.
One of my friend VPS has been infected buy a cryptominer, the aricle I am going to post here talks about Docker APIs but the same "malicious command" has been used on Laravel's exploting. He requested my help to eradicate that maleware... well it was a nightmare, killing the process was useless because a new one will start soon after. What you need to do is find a a cron job that let the malware in.

Another CVE regards databse queries... but it is less dangerous that a miner inside your server! As the CVE article says, most of attempt of this exploit will result on "no result" from the query...


Stay safe, stay updated!
Posted by: hamed - 03-27-2021, 12:25 PM - Forum: Scripting & Programming - Replies (8)
hello guys . i got this error today from my friend website . what is this i dont edit anythink in host.
[Image: Untitled.png]

Attached Files Thumbnail(s)
   

Posted by: LightDestory - 03-25-2021, 02:31 PM - Forum: Hardware & Technology - Replies (14)
Every year a lot of smartphones are released, most of them get a international edition but sometimes there are very good edition limited to a specific market. Why they do that?

For example recently OnePlus announces its OnePlus series 9 phones:
  • One Plus 9, international availability
  • One Plus 9Pro, international availability
  • One Plus 9R, india exclusive
9R is a cheaper phone with almost the same feature, except for the enthusiast ones such as advanced cameras and top gamma CPU... why non-india people can't get it?

Another example are the Samsung esotic colors, on China and Korea has been reported the availability of RED and PINK variants of their phones over the times, they just get released a bit later than their international variants.

What differences between a international phone and a region-specific region are:
  • CSC partition, they can be adjusted buy flashing the international ROM
  • Modem LTE frequencies, nowadays we almost uses all of the available, except for some China frequences
What they do this unfair market strategy? 
If I like RED color why I should be unable to get it? Only because I am not chinese/korean? It is crazy.
Posted by: LightDestory - 03-24-2021, 07:45 PM - Forum: VPS Reviews - Replies (7)
======================================
Short introduction
======================================


Here we go again, reviewing the VPS 14 sponsored by BladeNode (@phoenixwolf). Why a second review? Well, VPS 14 has changed it's node, you can read the official announcement here. There isn't much to talk about, I am doing the same usage as ever. I just switched my OS from a debian-based (Debian 10 Buster) to a rhel-based (Fedora 33).


======================================
Review
======================================


=========================
Let's start again with the Specifications
=========================
Disk Space: 200 GB SSD
RAM: 8 GB + (6GB of Swap)
vCores: [i]4 cores (3.60GHz)[/i]
IP Addresses: 1x IPv4
Virtualization: KVM
Monthly Traffic: 1 TB
Location: Chicago (US)
Control Panel: No CP for the Holder
Connection: 1Gbps
=========================


=========================
Do you like benchmark? I do
=========================
To give the possibility to compare the VPS based on the node I used the same benchmark script that I used for the first review:"Yet-Another-Bench-Script" available on github.
===============
System Info
Code:
Processor  : Intel(R) Xeon(R) CPU E3-1271 v3 @ 3.60GHz
CPU cores  : 4 @ 3599.998 MHz
AES-NI     : Enabled
VM-x/AMD-V : Disabled
RAM        : 7.8 GiB
Swap       : 5.9 GiB
Disk       : 197.9 GiB
OS         : Fedora Server 33
===============
Network speed (IPv4 only)
Code:
Provider        | Location (Link)           | Send Speed      | Recv Speed
                |                           |                 |
Clouvider       | London, UK (10G)          | 895 Mbits/sec   | 385 Mbits/sec
Online.net      | Paris, FR (10G)           | (not available) | [size=small][font=Monaco, Consolas, Courier, monospace](not available)[/font][/size]
WorldStream     | The Netherlands (10G)     | 876 Mbits/sec   | 56.4 Mbits/sec
Biznet          | Jakarta, Indonesia (1G)   | 687 Mbits/sec   | 114 Mbits/sec
Clouvider       | NYC, NY, US (10G)         | 37.9 Mbits/sec  | 933 Mbits/sec
Velocity Online | Tallahassee, FL, US (10G) | 930 Mbits/sec   | 825 Mbits/sec
Clouvider       | Los Angeles, CA, US (10G) | 924 Mbits/sec   | 40.0 Mbits/sec
Iveloz Telecom  | Sao Paulo, BR (2G)        | 859 Mbits/sec   | 318 Mbits/sec
===============
Disk Speed (I/O operations)
Code:
fio Disk Speed Tests (Mixed R/W 50/50):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ----
Read       | 266.49 MB/s  (66.6k) | 2.33 GB/s    (36.5k)
Write      | 267.19 MB/s  (66.7k) | 2.35 GB/s    (36.7k)
Total      | 533.69 MB/s (133.4k) | 4.69 GB/s    (73.3k)
           |                      |
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ----
Read       | 3.62 GB/s     (7.0k) | 3.63 GB/s     (3.5k)
Write      | 3.82 GB/s     (7.4k) | 3.87 GB/s     (3.7k)
Total      | 7.44 GB/s    (14.5k) | 7.50 GB/s     (7.3k)
===============
GeekBenchmark
Code:
Test            | Value
               |
Single Core     | 1026
Multi Core      | 3229
Full Test       | https://browser.geekbench.com/v5/cpu/7102117
=========================
My experience
=========================
The migration added a lot of new stuff speaking of performance:
  • A slightly powerful CPU, on real world tasks the change is unnoticeable to be fair but the CPU physically changed so I must report it!
  • 5GB more of SWAP, the VPS jumped from 1GB to 6GB of swap memory ssd-based... with the already equipped 8GB of ram and you get powerful combination of 14GB!
  • Storage technology changed from HDD to SSD, it should do a huge improvements but as you can see from the I/O operations the speed is likely the same, previous location was running  a RAID configuration to get the best performance out of standard HDD. I think that running heavy process that works with file the SSD will do the difference.
  • The networks speeds according to me are the same, on the benchmark there are some slow connection but I think it is related to that specific moment, maybe it was busy? The VPS is still amazing fast with its 1GBit connection.
I also changed my environment by switching from Debian 10 Buster to Fedora 33. I have always liked RHEL-based distros, on VPS 9 I used for a lot of time CentOS. This time, unfortunately, I had to switch to Fedora 33 because CentOS Stream is just a joke--- we are all waiting for Rocky Linux Tongue

I am doing very well with Fedora, some feature pre-installed are a bit a blotware but they are easily removable, such as cockpit... I have never used it because I am a CLI guy and I don't give any trust to "static" control panel that just run blindly commands.

Another change I have made is switching from nginx to caddy2, an amazing web server that auto-manage the SSL certificate with a very easy to understand configuration.

Regarding my usage... it is still unchanged, you can read it on my first review.
=========================
Conclusion
=========================
Before the migrations, VPS 14 was an amazing VPS. After the migration and the my issue ticket I can clearly say that my experience with @phoenixwolf's BladeNode is superior to my previous sponsor Virmach. They are both amazing company that offer a super service but with Bladenode I received a better "care". I remember the old days when I got a DDoS attack and virmarch's ticket response was a bit vague or slow. Nothing like this happen with bladenode Smile

I still think very high about Virmach... they took from me a very huge DDoS load and they didn't complain, their network just kept up my VPS. I hope that I will never give the same experience to Bladenode, I am working very hard with Cloudflare firewall and protection on it!

Like always, I want to end this review thanking:
  • @Dynamo, as always, for creating Post4VPS community that allowed me to use this VPS;
  • @deanhills, this time I opened a support ticket and he replied very fast!;
  • @Mashiro for his tutorials, I used some of them to set-up my environment;
  • Bladenode (@phoenixwolf) for sponsoring this amazing VPS and his amazing support, he "closed" my issue ticket in less that 1 day doing also some "extra" work is not pre-configured;
=========================
Posted by: LightDestory - 03-24-2021, 02:55 PM - Forum: Suggestions and Feedback - Replies (1)
Following @phoenixwolf announce about VPS 14 migration, the VPS Plans page has not been updated yet!

The migrations introduced the following news:
  • Location: Chicago US
  • Storage: 200GB SSD
  • CPU: Intel Xenon CPU E3-1271 3,60GHz

Pages (306): Jump to page 
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 2,271
» Latest member: orzpainter
» Forum threads: 3,099
» Forum posts: 34,782

Full Statistics

Online Users
There are currently 676 online users.
» 0 Member(s) | 673 Guest(s)
Bing, Google, Applebot

Latest Threads
Get LLHOST Netherlands Fe...
Forum: Others
Last Post: LLHOST
09-29-2025, 03:02 AM
» Replies: 0
» Views: 517
Super Fast LLHOST Netherl...
Forum: Value VPS Providers
Last Post: LLHOST
09-16-2025, 05:01 AM
» Replies: 0
» Views: 362
Get LLHOST Netherlands Fe...
Forum: Cheap Providers
Last Post: LLHOST
09-08-2025, 01:33 PM
» Replies: 0
» Views: 480
Windows VPS @ $31.5/Year ...
Forum: Cheap Providers
Last Post: DewlanceHosting
08-16-2025, 03:12 AM
» Replies: 0
» Views: 623
Buy DemoTiger Videos on c...
Forum: Others
Last Post: DewlanceHosting
08-16-2025, 03:10 AM
» Replies: 8
» Views: 5,787
Budget Dedicated Servers ...
Forum: Others
Last Post: HostNamaste
08-13-2025, 04:54 AM
» Replies: 2
» Views: 1,584
☁️ How to Use VCCPRO Virt...
Forum: Cheap Providers
Last Post: bestadvisor
07-13-2025, 09:36 AM
» Replies: 0
» Views: 826
[Promo] 30% Discount – VP...
Forum: Cheap Providers
Last Post: LLHOST
07-11-2025, 12:56 PM
» Replies: 0
» Views: 731
✅ Affordable VPS Hosting ...
Forum: Cheap VPS Providers
Last Post: RIYAD
07-02-2025, 03:02 AM
» Replies: 0
» Views: 1,518
15% Lifetime Discount on ...
Forum: Cheap Providers
Last Post: LLHOST
06-25-2025, 05:03 AM
» Replies: 0
» Views: 607

Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting