Тёмный

How to deploy Laravel project on 000webhost free 

Kuldeep
Подписаться 91
Просмотров 18 тыс.
50% 1

To deploy a Laravel project on 000webhost's free hosting service, you can follow these steps:
Sign up for an account: Visit the 000webhost website (www.000webhost...) and create a free account if you haven't already.
Create a new website: After logging in to your account, click on the "New Website" button and enter the necessary details to set up your website.
Obtain your FTP credentials: Once your website is created, go to the "Settings" tab and navigate to the "General" section. Here, you will find your FTP credentials, including the FTP server, username, and password. Take note of these as you'll need them later.
Prepare your Laravel project: Before deploying, make sure your Laravel project is ready for production. This includes running optimizations, setting up environment variables, and configuring your database connection in the .env file.
Upload your Laravel project: To upload your Laravel project to 000webhost, you'll need an FTP client. There are many options available, such as FileZilla (filezilla-proj...) or Cyberduck (cyberduck.io/). Download and install the FTP client of your choice.
Connect to the FTP server: Open your FTP client and use the FTP credentials obtained earlier to connect to the FTP server. Typically, you will need to enter the FTP server address, username, password, and port (usually 21).
Upload Laravel files: Once connected, navigate to the root directory of your website. This is usually a folder named public_html, www, or similar. Upload all the files and folders from your Laravel project to this directory.
Set up the correct file permissions: Some Laravel directories require specific file permissions to function properly. Set the correct permissions for the following directories:
storage directory: Set permissions to 775 or 777.
bootstrap/cache directory: Set permissions to 775 or 777.
Configure your database: In your 000webhost account, locate the MySQL Databases section and create a new database. Note down the database name, username, and password.
Update Laravel configuration: In the root directory of your Laravel project on the server, locate the .env file and update the following lines with your database credentials:
makefile
Copy code
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password
Run migrations: If your Laravel project requires database migrations, you can run them by accessing your website's console in the 000webhost control panel. Alternatively, you can run the migrations locally and then upload the database using a tool like phpMyAdmin.
Test your Laravel project: At this point, your Laravel project should be deployed and accessible via your 000webhost domain or your custom domain if you've set it up. Visit your website's URL in a web browser to ensure everything is working as expected.
That's it! You have successfully deployed your Laravel project on 000webhost's free hosting service. Remember that free hosting services often have limitations, such as limited resources and periodic inactivity suspensions, so it's recommended to consider paid hosting options for critical or high-traffic projects.

Опубликовано:

 

10 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@FCL00
@FCL00 7 месяцев назад
will this work with laravel10 vuejs or react?
@adnanCreativeHub
@adnanCreativeHub 20 дней назад
How to run artisan command?
@PineHealthFoundation
@PineHealthFoundation 3 месяца назад
i am getting 403 error forbidden
@annisaqr
@annisaqr Год назад
bro are you stealing someone's video? that's low, man
@davidkpidiba8591
@davidkpidiba8591 Год назад
🤣🤣🤣
@kuldeep686
@kuldeep686 8 месяцев назад
😂 it's for knowledge not for generating income 😂
@alltypevideos9280
@alltypevideos9280 8 месяцев назад
How did you find out that he steals someone else's video?
@sehzadaaalam313
@sehzadaaalam313 5 месяцев назад
​@@kuldeep686 Laravel version??
@jaxs4999
@jaxs4999 Год назад
I have a problem regarding htaccess, can someone help?
@user-pl1ie3uk7k
@user-pl1ie3uk7k 10 месяцев назад
me too I guess it's just laravel version problems or IDK no answers
@Nghia-tm9vn
@Nghia-tm9vn 2 месяца назад
error 500 T.T
@MdRony111-mi3ngm
@MdRony111-mi3ngm 3 месяца назад
{ } $this->app->bind('path.public', function() { return base_path('public_html'); });
@smg-sz3yz
@smg-sz3yz Год назад
itu laravel versi berapa kak?
@luiscorena1905
@luiscorena1905 5 месяцев назад
Aun funciona (y) gracias por el video, fue mi primer deploy
Далее
How to Deploy Laravel on Shared Hosting in 12 minutes
12:55
Как подписать? 😂 #shorts
00:10
Просмотров 181 тыс.
Вопрос Ребром - Булкин
59:32
Просмотров 781 тыс.
Free Web Hosting That ACTUALLY Works
10:39
Просмотров 336 тыс.
how to Deploy Laravel projects to Vercel
25:05
Просмотров 7 тыс.
40 APIs Every Developer Should Use (in 12 minutes)
12:23
Get a FREE VPS For Life - No Catch!
11:49
Просмотров 170 тыс.
Infinity free hosting | Host your Laravel APP
9:01
Просмотров 89 тыс.
How to Deploy Host Laravel project in Hostinger
11:48
Как подписать? 😂 #shorts
00:10
Просмотров 181 тыс.