• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

KaliTut

Kali Linux tutorial and Linux Tips

  • Home
  • Raspberry Pi
  • Privacy Policy
  • About us
  • Affiliate disclaimer

lighttpd enable php5 support (Raspberry Pi)

November 24, 2017 by Kalitut

lighttpd PHP5 support (Raspberry Pi)

lighttpd PHP5 support (Raspberry Pi)

Running a web server on Raspberry Pi, such as “lighttpd”, is just half as much fun without PHP5. So the task is to extend the already installed web server “lighttpd” with PHP5 support so that PHP files can be executed.
Task

  • Install the necessary software modules.
  • Create a PHP file for testing.
  • Check the availability of this file.

solution
The following solution assumes that the lighttpd server is already installed. If so, you must first install the necessary software modules for PHP (version 5).

sudo apt-get update
sudo apt-get install php5-common php5-cgi php5

It is advisable to follow the order of the packages. Otherwise it could be that additionally Apache2 is installed. That will inevitably lead to problems.

After the PHP5 package installation, activate the FastCGI module for PHP and then reload the lighttpd configuration:

sudo lighty-enable-mod fastcgi
sudo lighty-enable-mod fastcgi-php
sudo service lighttpd force-reload

To test the PHP support, create a PHP test file in the main webserver directory “/ var / www / html:

nano /var/www/html/phpinfo.php

In the editor, enter the following line:

<? php phpinfo (); ?>

Save and Exit with: Ctrl + O, Enter, Ctrl + X

Then you can test whether this file is accessible via the web browser, in which one enters the following address in the address line:

http: //raspberrypi.local/phpinfo.php

Or:

http://{IP} Adresse_des_Raspberry_Pi/phpinfo.php

If everything works, the browser displays detailed information about the installed PHP version.

Post Views: 268

Filed Under: Raspberry Pi Tagged With: lighttpd Raspberry Pi

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow us

  • Facebook
  • Twitter
  • YouTube

Categories

  • algorithm
  • Android Ai coding
  • Android pentesting tools
  • Arduino
  • Artificial Intelligence
  • Books
  • ChatGPT Prompt
  • Darknet
  • database
  • General
  • Github Tools
  • Hacking
  • Kali Linux
  • Linux
  • Linux Commands
  • Network Administrator
  • Penetration Testing
  • Penetration Testing Tools
  • PowerShell
  • Raspberry Pi
  • resources
  • Review
  • Termux
  • Tutorials
  • Ubuntu
  • Uncategorized
  • Video Tutorials
  • vmware
  • WiFi Adapter
  • WiFi Pentesting
  • Wireless Router
  • Wireshark

Recent Posts

  • Transforming Photos with ChatGPT Prompt : A Cinematic Double Exposure in a Post-Apocalyptic World
  • Stryker Android App: Your Mobile Pentesting Powerhouse
  • Alfa awus036ach review
  • Alfa AWUS1900 for Wireless Penetration Testing
  • How to Run DeepSeek AI Locally on Kali Linux – Step-by-Step Guide

Footer

Kalitut

Kalitut.com goal is to share the knowledge for free, help you find the best tools on the web and provides tutorials

Find us on social media

  • Facebook
  • Pinterest
  • Reddit
  • Twitter
  • YouTube

Copyright © 2025

  • Home
  • About us
  • Privacy Policy
  • Affiliate disclaimer