SóProvas


ID
909976
Banca
CESPE / CEBRASPE
Órgão
Telebras
Ano
2013
Provas
Disciplina
Sistemas Operacionais
Assuntos

Com relação a servidores web e aplicações, julgue os itens que se
seguem.

Para que seja possível habilitar o módulo que interpretará aplicações em PHP5 no Apache, em sistema operacional Linux, é necessário adicionar a linha abaixo no arquivo de configuração do Apache (httpd.conf).
LoadModule php5_module libexec/libphp5.so

Alternativas
Comentários
  • Questão correta.

    Geralmente quando se instala o Apache, ele cria o arquivo:
    /usr/local/apache2/conf/httpd.conf
    e nele coloca a linha:
    LoadModule php5_module libexec/libphp5.so.
    Se ele não o fizer por algum motivo, basta adicioná-la à mão.

    Fonte: http://goo.gl/Wfz0G
  • Deve-se adicionar a linha no arquivo /etc/apache/httpd.conf, ficando:

    #

    # Dynamic Shared Object (DSO) Support
    #
    # To be able to use the functionality of a module which was built as
    a DSO you
    # have to place corresponding `LoadModule' lines at this location so
    the
    # directives contained in it are actually available _before_ they are
    used.
    # Please read the file http://httpd.apache.org/docs/dso.html for more
    # details about the DSO mechanism and run `httpd -l' for the list of
    already
    # built-in (statically linked and thus always available) modules in
    your httpd
    # binary.
    #
    # Note: The order in which modules are loaded is important. Don't
    change
    # the order below without expert advice.
    #
    # Example:
    # LoadModule foo_module libexec/mod_foo.so

    #
    # Linkando com a biblioteca
    LoadModule php5_module libexec/libphp5.so