If this blog has helped you in any way.
Please consider buying me a coffee for the content.
Just use one.
The are multiple as examples.
composer create-project --prefer-dist laravel/laravel blog "9.*" composer create-project --prefer-dist laravel/laravel blog "8.*" composer create-project --prefer-dist laravel/laravel blog "7.*"
// With Boothstrap composer require laravel/ui --dev php artisan ui bootstrap --auth npm install && npm run dev // With VUE composer require laravel/ui --dev php artisan ui vue --auth npm install && npm run dev
Uploading your js build to the server
If you using git and working locally and using laravel vite.
Build your project and use the below gitignore. This will push your build to the server.
Reason been the below is that if you don’t include certain directories then your build files will not get uploaded and some servers don’t have suffucient resources to run builds online. So you need to build locally and upload the build via GIT.
/vendor/ npm-debug.log yarn-error.log public/hot public_html/storage public_html/hot public/robots.txt storage/*.key .env .htaccess Homestead.yaml Homestead.json /.vagrant .phpunit.result.cache
First off you need access to the server terminal. Or SSH acces. If you have that then you can proceed. Else go get your Login permissions or SSH access.
Connect to your server using SSH or Cpanel terminal.
Run the following curl command to download the Node.js source code:bashCopy code
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
This will download the nvm (Node Version Manager) installation script and pipe it to the bash shell to run the script.
Once the installation is complete, run the following command to load nvm:bashCopy code
This will activate the nvm environment so you can install Node.js and npm.
Run the following command to install the latest version of Node.js
nvm install node
This will install the latest stable version of Node.js and npm.
Verify that Node.js and npm are installed correctly by running the following commands
node -v npm -v
These commands should output the versions of Node.js and npm installed on your server
Keep in mind that the above steps may not work on all shared hosting providers, and some providers may not allow you to install additional software on their servers. It’s always a good idea to check with your hosting provider before attempting to install software on a shared hosting server.
Check Serve Status
sudo service mysql status
Start or Stop MySQL Server
service mysql stop service mysql start
MySQL Terminal Actions
create database this_is_my_database_name;
Also, give this a read 🙂
Check Apache Status
sudo systemctl status apache2
Start, Stop or Restart Apache
sudo service apache2 start sudo service apache2 restart sudo service apache2 stop
For other operating systems such as CentOS/Fedora
Try httpd instead of apache2
Example : systemctl status httpd
You can install MySQL for Windows here.
The new MySQL install very convenient. But is made for Windows.
Give this article a read for Linux
You can install MySQL for linux like this :
sudo apt install mysql-server sudo service mysql status