-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How start apache2 server? #13
Comments
Try to display the PHP info message in your index file:
If there's no output, have a look in the /etc/init.d folder. Is there a init script for apache/php? Is the apache server running? Check the output of |
Try to use this script: https://github.com/buildroot/buildroot/blob/master/package/apache/S50apache |
Try to remove |
in /var/logs/error_log
httpd not running |
Apache2Apache2 with PHP works absolutely fine. For the setup there are a few things you have to keep in mind. To make it simple, here's a short step by step guide:
Write the image to the SD card. Then do some adjustments on your Raspberry Pi
make the script executable with To enable PHP you need to modify the httpd.conf file
Add following to the
This is the folder for the web files: To check if PHP works a test file can be created.
Restart the Apache web server by calling You can put all of the modified files into the board/toldotechnik_rpi/rootfs-overlay/ directory so that they are included after every build of the image. NGINXHowever, we recommend using the NGINX web server. It is much faster and comes already with a predefined init script (
Write the image on the SD card.
This is the folder for the web files: To enable PHP you need to modify
Put this in the http
If
A prebuilt NGINX/PHP image for RPi3 can be downloaded here: https://dev.toldotechnik.li/download/sdcardRPi3-NGINX-PHP-Python.img.zip |
@TOLDOTECHNIK I did) rebuilt and it worked) But thanks for the detailed description! It will help someone! |
@TOLDOTECHNIK i want NGINX/PHP image for "RPi0 w" pleas |
I disabled nodejs and installed apache2, php, how to start now properly? I have a white screen
The text was updated successfully, but these errors were encountered: