Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema com Apache modulo php
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message

Joined: 29 Apr 2011
Posts: 8
Location: Campinas/SP

PostPosted: Wed Feb 19, 2014 5:06 pm    Post subject: Problema com Apache modulo php Reply with quote

Boa tarde,

instalei apache e php5 aqui em um server com gentoo :

Linux testlink 3.11.7-hardened-r1-zv1 #4 SMP Thu Jan 16 10:27:05 BRST 2014 x86_64 Intel(R) Xeon(R) CPU E5507 @ 2.27GHz GenuineIntel GNU/Linux
Server version: Apache/2.2.25 (Unix)
PHP 5.5.7-pl0-gentoo (cli) (built: Feb 19 2014 10:48:16)

acredito que esteja faltando modulo,pq n consigo startar o apache, queria saber como faço pra carregar e verificar isso.

meu /etc/conf.d/apache :


cat /etc/apache2/httpd.conf
ServerRoot "/usr/lib/apache2"

LoadModule alias_module modules/
LoadModule auth_basic_module modules/
LoadModule authn_alias_module modules/
LoadModule authn_anon_module modules/
LoadModule authn_dbm_module modules/
LoadModule authn_default_module modules/
LoadModule authn_file_module modules/
LoadModule authnz_ldap_module modules/
LoadModule authz_dbm_module modules/
LoadModule authz_default_module modules/
LoadModule authz_groupfile_module modules/
LoadModule authz_host_module modules/
LoadModule authz_owner_module modules/
LoadModule authz_user_module modules/
LoadModule autoindex_module modules/
<IfDefine CACHE>
LoadModule cache_module modules/
LoadModule cgi_module modules/
LoadModule cgid_module modules/
<IfDefine DAV>
LoadModule dav_module modules/
<IfDefine DAV>
LoadModule dav_fs_module modules/
<IfDefine DAV>
LoadModule dav_lock_module modules/
LoadModule deflate_module modules/
LoadModule dir_module modules/
<IfDefine CACHE>
LoadModule disk_cache_module modules/
LoadModule env_module modules/
LoadModule expires_module modules/
LoadModule ext_filter_module modules/
<IfDefine CACHE>
LoadModule file_cache_module modules/
LoadModule filter_module modules/
LoadModule headers_module modules/
LoadModule include_module modules/
<IfDefine INFO>
LoadModule info_module modules/
<IfDefine LDAP>
LoadModule ldap_module modules/
LoadModule log_config_module modules/
LoadModule logio_module modules/
<IfDefine CACHE>
LoadModule mem_cache_module modules/
LoadModule mime_module modules/
LoadModule mime_magic_module modules/
LoadModule negotiation_module modules/
<IfDefine PROXY>
LoadModule proxy_module modules/
LoadModule proxy_ajp_module modules/
<IfDefine PROXY>
LoadModule proxy_connect_module modules/
<IfDefine PROXY>
LoadModule proxy_ftp_module modules/
<IfDefine PROXY>
LoadModule proxy_http_module modules/
LoadModule rewrite_module modules/
LoadModule setenvif_module modules/
LoadModule speling_module modules/
<IfDefine SSL>
LoadModule ssl_module modules/
<IfDefine STATUS>
LoadModule status_module modules/
LoadModule unique_id_module modules/
<IfDefine USERDIR>
LoadModule userdir_module modules/
LoadModule usertrack_module modules/
LoadModule vhost_alias_module modules/

# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
User apache
Group apache

AddType application/x-ns-proxy-autoconfig .pac
AddType application/x-ns-proxy-autoconfig .dat

# Supplemental configuration
# Most of the configuration files in the /etc/apache2/modules.d/ directory can
# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features
# or to modify the default configuration of the server.
# To know which flag to add to APACHE2_OPTS, look at the first line of the
# the file, which will usually be an <IfDefine OPTION> where OPTION is the
# flag to use.
Include /etc/apache2/modules.d/*.conf

# Virtual-host support
# Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we
# include a default vhost (enabled by adding -D DEFAULT_VHOST to
# APACHE2_OPTS in /etc/conf.d/apache2).
Include /etc/apache2/vhosts.d/*.conf

# vim: ts=4 filetype=apache

cat /etc/apache2/modules.d/70_mod_php5.conf

<IfDefine PHP5>
# Load the module first
<IfModule !mod_php5.c>
LoadModule php5_module modules/

# Set it to handle the files
<IfModule mod_mime.c>
AddHandler application/x-httpd-php .php .php5 .phtml
AddHandler application/x-httpd-php-source .phps

DirectoryIndex index.php index.phtml sa.php

testlink php5.5 # /etc/init.d/apache2 restart
* apache2 has detected an error in your setup:
apache2: Syntax error on line 114 of /etc/apache2/httpd.conf: Syntax error on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load /usr/lib/apache2/modules/ into server: /usr/lib/apache2/modules/ cannot open shared object file: No such file or directory
* ERROR: apache2 failed to stop

testlink php5.5 # eselect php list apache2
(none found)
Back to top
View user's profile Send private message

Joined: 11 Mar 2014
Posts: 1
Location: Brasil

PostPosted: Tue Mar 11, 2014 5:11 pm    Post subject: Reply with quote

veja estes passos especialmente o 11. Você fez, mas espero q ajude o link
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum