Tuesday, May 21, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2684  / 2 Years ago, mon, june 13, 2022, 9:34:58

I have problem with apache, when I get configure a LAMP then I write:



sudo apt-get install apache2


And everything been fun, but next I wrote



cd /etc/apache2/mods-available
sudo cp * /etc/apache2/mods-enabled


And when I start a apache I get error log



"* Starting web server apache2                                                                    * 
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/lua.load: Cannot load /usr/lib/apache2/modules/mod_lua.so into server: /usr/lib/apache2/modules/mod_lua.so: cannot open shared object file: No such file or directory
Action 'configtest' failed."


How I can repair this? Please give a simple council because this is my first time on ubuntu. (I have ubuntu 14.04 LTS)


More From » apache2

 Answers
0

Files in /etc/apache2/mods-enabled are supposed to be links to files in mods-available, so delete those files which are not links:



sudo find /etc/apache2/mods-enabled -type f -exec rm {} +


And in the future, use a2enmod and a2dismod.


[#22662] Tuesday, June 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
azaaburge

Total Points: 266
Total Questions: 85
Total Answers: 109

Location: Djibouti
Member since Sat, Oct 29, 2022
2 Years ago
azaaburge questions
Thu, Jun 2, 22, 23:28, 2 Years ago
Sun, Oct 17, 21, 05:20, 3 Years ago
Fri, Jun 25, 21, 16:22, 3 Years ago
;