Zum Hauptinhalt springen
LIVE
CVSS 7.0CVE-2026-138158 | libgphoto2 through 2.5.34 contains a stack buffer overflow in sierra_get_string_register() that lets a malicious sierra-protocol camera or USB device overwrite stack memory. When files are listed, the device can answer the file-name register with an oversized packet, writing up to 32 KB past small stack buffers to cause crashes or possible code execution.CVSS 7.7CVE-2026-138159 | edbrowse through 3.8.19 contains an integer overflow in stringAndBytes() that allows malicious servers to write past a heap buffer by sending response bodies larger than 2 GB. When a user browses to an attacker-controlled HTTP, FTP, or gopher server, the oversized body skips reallocation and corrupts the heap, causing crashes or potentially code execution.CVSS 8.5CVE-2026-138160 | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ReadBackupTextLen() that allows attackers to overwrite stack memory via crafted backup files. Attackers can supply overlong quoted text values decoded into a 10,000-byte stack array during convertbackup, restore, or GSM_ReadBackupFile calls, causing crashes or potential code execution.CVSS 8.5CVE-2026-138161 | Gammu before 1.45.2 contains a buffer overflow vulnerability in LoadBackup() that allows attackers to corrupt memory by supplying an overlong MD5 value in a crafted backup file. Attackers can overwrite adjacent phonebook and calendar entry pointers via strcpy() into MD5Original when files are loaded with convertbackup or restore, causing crashes or potential code execution.CVSS 7.3CVE-2026-138162 | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ALCATEL_EncodeString() that allows attackers to overwrite stack memory via oversized encoded phonebook text. Attackers can supply a crafted backup restored with gammu restore or addnew to an attached Alcatel phone, using GSM extension characters to crash Gammu or potentially execute code.CVSS 8.5CVE-2026-138163 | Gammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or GSM_ReadBackupFile, causing crashes or potential code execution.CVSS 4.8CVE-2026-138164 | Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in SaveBackupText() in backtext.c that allows attackers to corrupt stack memory by supplying long text fields. Attackers can craft a backup with long calendar or note fields that, when converted with gammu convertbackup, writes hex digits past the 10,000-byte stack buffer.CVSS 9.3CVE-2026-138154 | POSTAL 2 before build 26810491 contains a sandbox escape vulnerability that allows malicious Steam Workshop mods to execute code by calling ConsoleCommand with a start file URI. Attackers can ship a batch file in a mod at the predictable workshop install path and launch it via ShellExecuteW, executing commands as the player on Windows.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Setting Up a Basic PHP Development Environment on Fedora 44

This guide shows how to configure a basic PHP development environment on Fedora 44 using mise for version management, PHP 8.5, ZSH with Oh My ZSH, and Docker…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 5 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung

This guide shows how to configure a basic PHP development environment on Fedora 44 using mise for version management, PHP 8.5, ZSH with Oh My ZSH, and Docker Engine.



The goal is to create a clean and flexible setup for local PHP development, allowing you to manage PHP versions per project while also having Docker available for containers, databases, queues, and other services.






1. Update the system



Start by updating all system packages:




sudo dnf update -y






After the update finishes, reboot the system if Fedora installs a new kernel or important system libraries:




sudo reboot









2. Install basic development tools



Install common utilities such as Git, Vim, cURL, ZSH, and basic build tools:




sudo dnf install -y vim curl git zsh gcc gcc-c++ make pkgconf-pkg-config






Check the installed versions:




git --version
vim --version
zsh --version









3. Install and configure Oh My ZSH



Install Oh My ZSH to improve the terminal experience:




sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"






During the installation, the script may ask whether you want to set ZSH as your default shell. Choose:




Y






You may also be asked for your password to confirm the shell change.



If you need to change the shell manually later, run:




chsh -s "$(which zsh)"






Then log out and log back in.






4. Install PHP build dependencies



Because PHP installed through mise is usually compiled locally, you need development libraries and build dependencies.



Install the required packages:




sudo dnf install -y \
autoconf \
bison \
clang \
gd-devel \
libcurl-devel \
libpq-devel \
libxml2-devel \
libzip-devel \
oniguruma-devel \
openssl-devel \
readline-devel \
re2c \
sqlite-devel \
libsodium-devel \
libicu-devel \
bzip2-devel \
libjpeg-turbo-devel \
libpng-devel \
libwebp-devel \
freetype-devel






These packages provide support for common PHP extensions such as:




  • curl

  • gd

  • intl

  • mbstring

  • openssl

  • pdo_pgsql

  • pdo_sqlite

  • readline

  • sodium

  • zip






5. Install mise



mise is a version manager for development tools and languages. It can replace tools like ASDF, NVM, pyenv, rbenv, and similar version managers.



Enable the mise COPR repository and install it:




sudo dnf copr enable jdxcode/mise -y
sudo dnf install -y mise






Verify the installation:




mise --version









6. Activate mise in ZSH



Add mise activation to your ZSH configuration:




echo 'eval "$(mise activate zsh)"' >> "${ZDOTDIR-$HOME}/.zshrc"






Reload your shell:




exec zsh






Then run:




mise doctor






This command helps verify whether mise is correctly configured.






7. Install PHP 8.5 with mise



Install PHP 8.5 globally:




mise use --global php@8.5






This command installs the latest available PHP 8.5 patch release and sets it as the global default version.



Check the installed PHP version:




php -v






You should see something similar to:




PHP 8.5.x






Check PHP modules:




php -m






Check PHP configuration:




php --ini









8. Configure PHP per project



For project-specific PHP versions, go to your project folder:




mkdir ~/Projects/my-php-app
cd ~/Projects/my-php-app






Set PHP 8.5 only for this project:




mise use php@8.5






This creates or updates a mise.toml file in the project directory.



Example:




[tools]
php = "8.5"






Now, whenever you enter this project folder, mise will use PHP 8.5.



Verify it:




php -v
mise current









9. Install Composer



Composer is the standard dependency manager for PHP.



Install Composer using the official installer:




php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"






Move Composer to a global executable path:




sudo mv composer.phar /usr/local/bin/composer






Verify the installation:




composer --version









10. Install Docker Engine



First, remove conflicting Docker packages if they exist:




sudo dnf remove -y \
docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine






Add the official Docker repository:




sudo dnf config-manager addrepo --from-repofile https://download.docker.com/linux/fedora/docker-ce.repo






Install Docker Engine, Docker CLI, containerd, Buildx, and Docker Compose plugin:




sudo dnf install -y \
docker-ce \
docker-ce-cli \
containerd.io \
docker-buildx-plugin \
docker-compose-plugin






Enable and start Docker:




sudo systemctl enable --now docker






Verify Docker:




sudo docker run hello-world









11. Run Docker without sudo



Add your user to the Docker group:




sudo usermod -aG docker "$USER"






Apply the group change:




newgrp docker






Test Docker without sudo:




docker run hello-world






If this does not work immediately, log out and log back in.






12. Verify Docker Compose



Docker Compose is installed as a Docker CLI plugin.



Check the version:




docker compose version






Example usage:




docker compose up -d









13. Create a basic PHP test project



Create a simple PHP file:




mkdir -p ~/Projects/php-test
cd ~/Projects/php-test
mise use php@8.5






Create index.php:




cat > index.php <<'PHP'
<?php

echo "PHP version: " . PHP_VERSION . PHP_EOL;
PHP






Run it:




php index.php






Start PHP’s built-in development server:




php -S localhost:8000






Open in the browser:




http://localhost:8000









14. Optional: create a Docker Compose file for local development



Inside your project folder, create a compose.yaml file:




cat > compose.yaml <<'YAML'
services:
postgres:
image: postgres:17
container_name: php_dev_postgres
environment:
POSTGRES_DB: app
POSTGRES_USER: app
POSTGRES_PASSWORD: secret
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data

redis:
image: redis:8
container_name: php_dev_redis
ports:
- "6379:6379"

volumes:
postgres_data:
YAML






Start the services:




docker compose up -d






Check running containers:




docker compose ps






Stop the services:




docker compose down









15. Useful commands



Check the active PHP version:




php -v






List mise-managed tools:




mise ls






Show the current active tool versions:




mise current






Install tools defined in a project:




mise install






Update system packages:




sudo dnf update -y






Update mise-managed tools:




mise upgrade






Check Docker status:




systemctl status docker









Final setup summary



After completing this setup, Fedora 44 will have:




  • Updated system packages

  • Git, Vim, cURL, and ZSH

  • Oh My ZSH

  • mise for runtime version management

  • PHP 8.5 installed through mise

  • Composer

  • Docker Engine

  • Docker Compose plugin

  • A basic structure for local PHP development



This setup is suitable for PHP projects using frameworks such as Laravel, Symfony, Slim, or custom PHP applications.

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community-Diskussion & Kommentare

🌐 Zum Hauptchat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.

Cyber Threat Intelligence & Forensik

ATT&CK-Navigator · IoC-Radar & Graph

CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
4 Knoten · 3 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Community Rating &amp; Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität
Security Briefing Kostenlos · 1-Klick-Abmeldung

Intelligence Digest — kostenlos

Täglich die wichtigsten Security-News · jederzeit abbestellbar

Verwandte Story-Cluster & Quellen (Vektor-KI)

1 Cluster
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Setting Up a Basic PHP Development Environment on Fedora 44

Thematisch verwandte Begriffe: Setting, Basic, Development, Environment · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag