Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Q] Easier to configure and/or better alternative to Apache for PHP web servers

mijorus
 Share

Hi,

If you are a PHP developer, you probably know what I am talking about. I am frustrated with Apache web server, its configuration files are veeeery hard to understand and sometimes I just go by trial and error.

Is there an easier webserver that you recommend? 

Thank you 

 

Link to comment
Share on other sites

Link to post
Share on other sites

You could try nginx. I generally find it easier to configure than Apache, though I've never used it in combination with PHP.

 

I hope this helps as a starting point:

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-20-04

Remember to quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

Configuring Apache for PHP I find is simple.

  1. load the php apache module ,
  2. set the application/x-httpd-php file hander for php files
  3. append index.php to the DirectoryIndex directive

I do all this in its own separate .conf file and load the confi file using the Include directive at end of the main httpd.conf file.

I find the Apache documentation to be straight forward any directive I dont understand I lookup in the apache docs.

 

If you you want everything configured for you there are all in one package like xampp, wampserver etc. Or just use built in php server 😝

Link to comment
Share on other sites

Link to post
Share on other sites

Xampp is very easy all in one solution. Although since I develop mainly on a windows machine I prefer just adding PHP on IIS and use it's simple interface to set a new website.

Link to comment
Share on other sites

Link to post
Share on other sites

You also might want to check EasyPHP, which is way easier to set up than Xampp, and even comes with MySQL support.

Link to comment
Share on other sites

Link to post
Share on other sites

I've used Caddy before and it's pretty simple, but I have no idea how well it'd work with php.

FX6300 @ 4.2GHz | Gigabyte GA-78LMT-USB3 R2 | Hyper 212x | 3x 8GB + 1x 4GB @ 1600MHz | Gigabyte 2060 Super | Corsair CX650M | LG 43UK6520PSA
ASUS X550LN | i5 4210u | 12GB
Lenovo N23 Yoga

Link to comment
Share on other sites

Link to post
Share on other sites

Caddy is rather good, but probably too featureful for running PHP-FPM with some HTTP.

nginx (or, depending on your server, OpenBSD's httpd) is what I would recommend.

Write in C.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×