Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1K
Views
Apache2 no se iniciará después de la actualización a Ubuntu 22.04 LTS: no se puede cargar /usr/lib/apache2/moduleslibphp8.0.so

Estoy un poco atascado en cuanto a cómo solucionar esto. Hice una distribución, actualicé un servidor que ejecuta Apache2.

Desde la actualización no ha funcionado. Ejecuté una prueba de configuración y debajo está el error. No tuve problemas con mi configuración en la versión anterior de Ubuntu (21.10)

 $ apache2ctl configtest apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php8.0.load: Cannot load /usr/lib/apache2/modules/libphp8.0.so into server: /usr/lib/apache2/modules/libphp8.0.so: cannot open shared object file: No such file or directory Action 'configtest' failed. The Apache error log may have more information.

¿Alguna idea de por dónde empezar? Todavía soy bastante inexperto cuando se trata de Apache.

Gracias por tu ayuda.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Mientras haya resuelto esto, otros vendrán (como yo) para ver cómo lo hizo.

 # perhaps you did the following to see what modules were present > apache2ctl -M # the result of the above command may have returned an error such as: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/mods-enabled/php8.0.load: Cannot load /usr/lib/apache2/modules/libphp8.0.so into server: /usr/lib/apache2/modules/libphp8.0.so: cannot open shared object file: No such file or directory Action '-M' failed. # so you removed the problematic module that was no longer installed # by doing the following (as appropriate given the error above) > sudo a2dismod php8.0 # you needed to restart your server after that > sudo systemctl restart apache2 # if you tested the server in a browser html should function... # however you perhaps desired the use of another php module # and added another one (8.1) that is install by default in Ubuntu 22.04 > sudo a2enmod php8.1 # you restarted apache again and it worked? > sudo systemctl restart apache2

Quizás estaba usando mod_userdir y también necesitaba actualizar el archivo de configuración del módulo php de apache:

/etc/apache2/mods-enabled/php8.1.conf

Comentando las siguientes líneas:

 <IfModule mod_userdir.c> <Directory /home/*/public_html> php_admin_flag engine Off </Directory> </IfModule>

Para que quedaran así:

 #<IfModule mod_userdir.c> # <Directory /home/*/public_html> # php_admin_flag engine Off # </Directory> #</IfModule>
 # finally you restarted apache2 again: sudo systemctl restart apache2 # and everything was back to normal?

¿Hiciste algo como esto?

over 4 years ago · Santiago Trujillo Report

0

Despreciar a todos. Me lo imaginé.

Revisé /usr/lib/apache2/modules/ y descubrí que libphp8.0.so se había actualizado a libphp8.1.so.

Después de modificar las modificaciones habilitadas para incluir este archivo y no el problemático, apache comenzó sin problemas.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!