I tried to create a controller with php artisan but the terminal says something like this
$ php -v
bash: php: command not found and when I type laravel and it says something like this :
which: no php in (/c/Users/AiB.ICD-PC/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/mingw64/bin:/usr/bin:/c/Users/AiB.ICD-PC/bin:/c/laragon/bin/cmder/vendor/conemu-maximus5/ConEmu/Scripts:/c/laragon/bin/cmder/vendor/conemu-maximus5:/c/laragon/bin/cmder/vendor/conemu-maximus5/ConEmu:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static:/c/xampp/php:/c/ProgramData/ComposerSetup/bin:/c/xampp-2/php:/c/Program Files/nodejs:/cmd:/mingw64/bin:/usr/bin:/c/Users/AiB.ICD-PC/AppData/Roaming/Composer/vendor/bin:/c/Users/AiB.ICD-PC/AppData/Roaming/npm:/usr/bin/vendor_perl:/usr/bin/core_perl)
Can someone help me to modify my laragon installation from php-cli version to apache mod.
I have an application that needs apache mod php version and that i can't change. How hard is it to modify a native laragon cli (not nginx) to an apache mod version?
// start code(insert to database)
$sql=' SELECT * FROM short WHERE fullurl=:url1 ';
$rr->bindParam( ':url1', $path);
$num = $rr->rowCount();
if($num == 0)
$sql=' INSERT INTO short (fullurl,stime,sdate,scode) VALUES (:url1,:time1,:date1,:code1)';
$rr-> bindParam(':url1', $path);
$rr-> bindParam(':time1', $time2);
$rr-> bindParam(':date1', $date2);
$rr-> bindparam(':code1', $string);
echo "URL was added in the database";
echo "Not be added. Such addresses in the database is available";
// end code(insert to database)
Today, I'm so happy to announce the release of Laragon 3.1 (2017-06-06)
This release makes working Ruby on Rails a pleasure (which was notorious painful on Windows).
Self-contained. Like Laragon WAMP, Laragon RubyOnRails is self-contained which means everything is running inside the installation dir and is isolated with the OS.
To check, install Laragon to C:\lararails, then move it to C:\laragon-rubyonrails - Laragon is still functional.
Hot swap between Ruby versions (so you don't need rvm, rbenv). You can use many version of Rails with ease. Just add another version of Ruby and type gem install rails -v 5.0.3
Updated Node.js to 8.0.0, npm 5.0.0 (note: you can hot swap between Node.js)
I'm using nginx as my local server. I've been able to edit the configuration file for the site aliases to adjust the root of my sites, but I was wondering if there was a way to change the server name?
The folder name of my site is really long and I just want to make a shorter .dev url name. I've tried changing the server_name setting in the generated .conf (with auto removed) and adding a new .conf file with the shorter name and the correct root, but neither seem to work.
Do I just have to edit my machines host file in order to do this or can it be done with the nginx configurations?
With Laragon 3.1, you can work with multiple versions of Ruby (and therefore with multiple versions of Rails) easily. Here's how:
Download a Ruby 7z and 64-bit version on RubyInstaller: https://rubyinstaller.org/downloads/
Note: If you want to work with Rails in the meantime, you should use Ruby 2.2 or Ruby 2.3 64-bit
For example Ruby 2.2.6 (x64)
Extract it to bin\ruby:
Switch to the version:
Menu > Ruby > Version > ruby-2.2.6-x64-mingw32
That's all forks!
Open Terminal and check:
Note: adding another Ruby version also helps you install different versions of Rails: How to install Rails