OpenWrt Forum Archive

Topic: lost mod_rewrite, PHP and Apache

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi to all,
I'd like to run a web that uses PHP, on Apache. I've installed it on Ubuntu with PHP7 and works, although it will not fully work without enabling mod_rewrite with sudo a2enmod rewrite.
I've also installed it on OpenWRT, after moving LuCi to port 90, installing Apache and PHP5. Unfortunately, it does not fully work and it fails as on Ubuntu without mod_rewrite. Is it feasible to install it on OpenWRT Chaos Calmer 15.05.1 r49203?
The log error says: File does not exist: ... referer: ...

Thanks for your help!

(Last edited by david_openwrt on 14 May 2017, 03:57)

Might be problematic:
https://forum.openwrt.org/viewtopic.php?id=11878

However, depending, upon what you want do do, you might consider to exchange apache2 by nginx.
In newest LEDE, nginx has mod rewrite already included by default.
Otherwise, you should be able to build/compile own image incl. nginx+rewrite.

In the past, I also used apache2, but because of size and functionaliity I switched to nginx.

The discussion might have continued from here.