Matthias_017's avatar

Proper development environment for Fedora

Hi! Some days ago, I posted this query in the DevOps channel and received no responses. I hope it was because I posted it in the wrong category. I'm posting the same query again to see if anyone can help me:

"Hello everyone! I recently started working with PHP and Laravel on Windows, but now I am beginning to explore the Linux territory and wanted to know if you could help me with suggestions and tips that allow me to set up a proper development environment within Fedora. On Windows, I work with Laragon, but from what I’ve seen, it’s not available for Linux. I understand that XAMPP is available, should I use it? Or do you recommend other setups? Thank you very much in advance!"

0 likes
3 replies
MohamedTammam's avatar

Doesn't matter what you use. Nothing is the best here. It's only what you feel comfortable with.

Here are some suggestions:

You can use XAMPP for Linux: https://www.apachefriends.org/download.html

However, if you're using Linux, I would suggest using docker with Sail or even better Lando.

Here's a Lando image that can be added into your project directory and then you need to run lando start to get everything working.

.lando.yml

name: your_project_name
recipe: laravel
config:
  webroot: public
  php: '8.2'
  cache: redis
  composer_version: 2-latest
services:
  node:
    type: node:16
    build:
      - yarn install
  mailhog:
    type: mailhog
    portforward: true
    hogfrom:
      - appserver
  database:
    type: mysql:5.7
    portforward: 33062
    creds:
      user: laravel
      password: laravel
      database: laravel
    build_as_root:
      - apt-get update
      - apt-get install vim mycli -y
    overrides:
      environment:
        LC_ALL: C.UTF-8
        LANG: C.UTF-8
tooling:
  node:
    service: node
  npm:
    service: node
  yarn:
    service: node
1 like
Tray2's avatar

There really isn't any proper environment, there are plenty to choose from.

You can like @mohamedtammam suggested use Sail or Lando. You can use homestead and Vagrant as well if you wanna go old school, or even use a bundled package like XAMMP (I wouldn't recommend it).

There are also options like "Laravel" Valet for linux, or you can set up a simple LAMP (Couldn't find a guide for anything never than version 20) or LEMP stack yourself. (Couldn't find one for the latest version of Fedora).

I would recommend the following:

  1. Use Ubuntu or a dist built on debian/ubuntu.
  2. Install a LEMP stack.
  3. Configure it for Laravel
  4. Use PHPStorm.
2 likes
Matthias_017's avatar

@MohamedTammam @tray2, thank you very much for your responses! I think I will start with XAMPP as it seems to be the most 'similar' to Laragon for me; at least with this tool, I will be able to work in a way that's similar to how I did in Windows. Meanwhile, I will explore the other alternatives (it seems quite essential to learn Docker, so I will probably start researching and deploying my applications in containers). Again, I appreciate the help; it's very valuable for those of us who are just starting out since there is often so much information on the internet that it can be overwhelming.

1 like

Please or to participate in this conversation.