You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by divines <di...@gmail.com> on 2012/03/02 13:02:31 UTC

[users@httpd] apache 2.4.1 and php 5.4(same with any) problem

Hi there,

I have built from source apache 2.4.1 and php 5.4(doesnt actually matter,
tried earlier versions) and it install without errors. Php puts libphp5.so
module in apache.

But php simply does not work when i try to open php files, and logs has
nothing to show.

Here is some information:

httpd -V
Server version: Apache/2.4.1 (Unix)
Server built:   Mar  1 2012 09:29:03
Server's Module Magic Number: 20120211:0
Server loaded:  APR 1.4.6, APR-UTIL 1.4.1
Compiled using: APR 1.4.6, APR-UTIL 1.4.1
Architecture:   64-bit
Server MPM:     prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/opt/httpd"
 -D SUEXEC_BIN="/opt/httpd/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

----------------------------------------------

# ./httpd -M
Loaded Modules:
 core_module (static)
 so_module (static)
 http_module (static)
 mpm_prefork_module (static)
 authn_file_module (shared)
 authn_core_module (shared)
 authz_host_module (shared)
 authz_groupfile_module (shared)
 authz_user_module (shared)
 authz_core_module (shared)
 access_compat_module (shared)
 auth_basic_module (shared)
 reqtimeout_module (shared)
 filter_module (shared)
 mime_module (shared)
 log_config_module (shared)
 env_module (shared)
 headers_module (shared)
 setenvif_module (shared)
 version_module (shared)
 unixd_module (shared)
 status_module (shared)
 autoindex_module (shared)
 dir_module (shared)
 alias_module (shared)
 php5_module (shared)

-------------------------------------------------


has anyone encountered such problem?

when i run php from command line it works.
-- 
View this message in context: http://old.nabble.com/apache-2.4.1-and-php-5.4%28same-with-any%29-problem-tp33427861p33427861.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache 2.4.1 and php 5.4(same with any) problem

Posted by Daniel Stefaniuk <da...@gmail.com>.
I have the same problem. Nothing in the log. Did you try: ab -n 10
http://domain.org:80/ ?

If I execute this I can see the problem: apr_pollset_poll: The timeout
specified has expired (70007)

arch=x64
mpm=prefork/worker
httpd=2.4.1
php=5.4.0/5.3.10

Re: [users@httpd] apache 2.4.1 and php 5.4(same with any) problem

Posted by divines <di...@gmail.com>.
Hi,

Omg, it was a handler problem. Thank you so much.
I am so dizzy today



Lester Caine wrote:
> 
> divines wrote:
>> But php simply does not work when i try to open php files, and logs has
>> nothing to show.
> 
> Is that 'apache starts without an error'?
> If so what happens when you try and open a PHP page?
> Do you have the simple <?php 'phpinfo(); page to try
> 
> Have you added the 'add handler' lines to httpd.conf is probably what I'm
> fishing at
> 
> -- 
> Lester Caine - G8HFL
> -----------------------------
> Contact - http://lsces.co.uk/wiki/?page=contact
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk//
> Firebird - http://www.firebirdsql.org/index.php
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/apache-2.4.1-and-php-5.4%28same-with-any%29-problem-tp33427861p33428177.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache 2.4.1 and php 5.4(same with any) problem

Posted by Lester Caine <le...@lsces.co.uk>.
divines wrote:
> But php simply does not work when i try to open php files, and logs has
> nothing to show.

Is that 'apache starts without an error'?
If so what happens when you try and open a PHP page?
Do you have the simple <?php 'phpinfo(); page to try

Have you added the 'add handler' lines to httpd.conf is probably what I'm fishing at

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org