stumbleupon toolbar
Make payments with PayPal - it's fast, free and secure!
This site is up for
Count
Get Firefox!
Last Shout - Posted by: ly9cs - Thursday, 12 November 2009 20:58
Why is it so dark in here ?

  Reply to this topicStart new topicStart Poll

> apache_0.3.37b_dingetje, Module php don´t work
Hitio
Posted: Apr 4 2009, 09:24 AM
Quote Post


Member
**

Group: Members
Posts: 13
Member No.: 6
Joined: 3-December 02



Hello Mr Dingetje:

I have install the beta vertion of your apache 0.3.37 with php, from the Lewis repository.

Well, after a reconfiguration by lewis in my own server, this apache works finally.

Well, but the php module, don´t work

I have post this question in the freesco.org forum, and i have send PM a Mr Lewis.

I don´t know what i can made, the libphp4.so, exist in my directory /libexec

I don´t know is i´m running apache or thttpd.

I have create a php info at http://marcalmo.homeip.net/test.php

Tx

Greetings


--------------------
Freesco Box HD instalation 0.4.2: spanish lang pack, Pentium 1 HP Vectra, 64 Mb RAM HD 4GB 2 Eth lan board, floppy disk, CD ROM.
Caja Freesco Router Linux Servidor Web
PMUsers WebsiteICQAOLYahooMSN
Top
dingetje
Posted: Apr 6 2009, 10:50 AM
Quote Post


Administrator
*****

Group: Admin
Posts: 707
Member No.: 1
Joined: 24-August 02



It could be a library dependency which is causing a failure to load the libphp4.so module. Did you check the Apache error log (it's located in /usr/local/apache/logs)?
Also what does rc_httpd restart tell you?

You can easily check if you're running Apache or thttpd by looking at the process list with command ps in a FREESCO putty window.

This is for FREESCO 04x, right?

To test for a library issue you can execute the php command line version (CLI) and see if that runs. You can see if it runs with command /usr/local/bin/php --version.

It should output something like:
QUOTE
PHP 4.4.4 (cli) (built: Oct 30 2006 01:06:41)
Copyright © 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright © 1998-2004 Zend Technologies


The library dependency can be listed with the ldd command (part of my utils package, but maybe its standard in FREESCO 04x) as follows:

QUOTE ("php 4.4.4 library dependency")

[root@Freesco] cd /usr/local/bin
[root@Freesco] ldd php
        libmcrypt.so.4 => /lib/libmcrypt.so.4 (0x119000)
        libltdl.so.3 => /lib/libltdl.so.3 (0x14d000)
        libintl.so.2 => /lib/libintl.so.2 (0x154000)
        libc.so.5 => /lib/libc.so.5 (0x15d000)
        libfreetype.so.6 => /lib/libfreetype.so.6 (0x21d000)
        libz.so.1 => /lib/libz.so.1 (0x282000)
        libpng.so.3 => /lib/libpng.so.3 (0x291000)
        libm.so.5 => /lib/libm.so.5 (0x2ce000)
        libdl.so.1 => /lib/libdl.so.1 (0x2d7000)
        libiconv.so.2 => /lib/libiconv.so.2 (0x2da000)


--------------------
PMEmail PosterUsers WebsiteICQ
Top
dingetje
  Posted: Apr 6 2009, 11:19 AM
Quote Post


Administrator
*****

Group: Admin
Posts: 707
Member No.: 1
Joined: 24-August 02



I've tested the HTTP header response of your web server with a online HTTP header viewer like http://www.rexswain.com/httpview.html and the output shows you are in fact running Apache (good!).



--------------------
PMEmail PosterUsers WebsiteICQ
Top
dingetje
Posted: Apr 6 2009, 11:22 AM
Quote Post


Administrator
*****

Group: Admin
Posts: 707
Member No.: 1
Joined: 24-August 02



Make sure the following lines are present in your httpd.conf file:

CODE

LoadModule php4_module        libexec/libphp4.so


CODE

AddModule mod_php4.c


CODE

<IfModule mod_php4.c>
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php .wml
</IfModule>



--------------------
PMEmail PosterUsers WebsiteICQ
Top
Hitio
Posted: Apr 6 2009, 12:06 PM
Quote Post


Member
**

Group: Members
Posts: 13
Member No.: 6
Joined: 3-December 02



QUOTE (dingetje @ Apr 6 2009, 09:50 AM)
It could be a library dependency which is causing a failure to load the libphp4.so module. Did you check the Apache error log (it's located in /usr/local/apache/logs)?
Also what does rc_httpd restart tell you?

You can easily check if you're running Apache or thttpd by looking at the process list with command ps in a FREESCO putty window.

This is for FREESCO 04x, right?

To test for a library issue you can execute the php command line version (CLI) and see if that runs. You can see if it runs with command /usr/local/bin/php --version.

It should output something like:
QUOTE
PHP 4.4.4 (cli) (built: Oct 30 2006 01:06:41)
Copyright © 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright © 1998-2004 Zend Technologies


The library dependency can be listed with the ldd command (part of my utils package, but maybe its standard in FREESCO 04x) as follows:

QUOTE ("php 4.4.4 library dependency")

[root@Freesco] cd /usr/local/bin
[root@Freesco] ldd php
        libmcrypt.so.4 => /lib/libmcrypt.so.4 (0x119000)
        libltdl.so.3 => /lib/libltdl.so.3 (0x14d000)
        libintl.so.2 => /lib/libintl.so.2 (0x154000)
        libc.so.5 => /lib/libc.so.5 (0x15d000)
        libfreetype.so.6 => /lib/libfreetype.so.6 (0x21d000)
        libz.so.1 => /lib/libz.so.1 (0x282000)
        libpng.so.3 => /lib/libpng.so.3 (0x291000)
        libm.so.5 => /lib/libm.so.5 (0x2ce000)
        libdl.so.1 => /lib/libdl.so.1 (0x2d7000)
        libiconv.so.2 => /lib/libiconv.so.2 (0x2da000)


The rc_httpd restart:
QUOTE
[root@router] rc_httpd restart
Deteniendo Apache HTTP...               Hecho
[root@router]

i´m running apache AND thttpd?:
QUOTE
g/usr/local/mySQL/var/router.inet.pid-L/usr/local/mySQL/share/mysql/spanish/
  2558   S      1               httpd   /usr/local/apache/bin/httpd
  2585   S      2558            httpd   /usr/local/apache/bin/httpd
  2586   S      2558            httpd   /usr/local/apache/bin/httpd
  2587   S      2558            httpd   /usr/local/apache/bin/httpd
  2600   S      1               thttpd_c       thttpd_c-d/wwa-p82-uroot

i´m miss libiconv.so.2 => /lib/libiconv.so.2 (0x2da000)
QUOTE
[root@router] ldd php
        libmcrypt.so.4 => /lib/libmcrypt.so.4 (0x119000)
        libltdl.so.3 => /lib/libltdl.so.3 (0x14d000)
        libintl.so.2 => /lib/libintl.so.2 (0x154000)
        libc.so.5 => /lib/libc.so.5 (0x15c000)
        libfreetype.so.6 => /lib/libfreetype.so.6 (0x21c000)
        libz.so.1 => /lib/libz.so.1 (0x281000)
        libpng.so.3 => /lib/libpng.so.3 (0x28f000)
        libm.so.5 => /lib/libm.so.5 (0x2cc000)
        libdl.so.1 => /lib/libdl.so.1 (0x2d5000)

The php --version show this:
QUOTE
PHP 4.4.4 (cli) (built: Oct 30 2006 01:06:41)
Copyright © 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright © 1998-2004 Zend Technologies

And, yes is for Freesco 0.4.2

Thank you so much for your time

Greetings

Attached File ( Number of downloads: 612 )
Attached File  error_log


--------------------
Freesco Box HD instalation 0.4.2: spanish lang pack, Pentium 1 HP Vectra, 64 Mb RAM HD 4GB 2 Eth lan board, floppy disk, CD ROM.
Caja Freesco Router Linux Servidor Web
PMUsers WebsiteICQAOLYahooMSN
Top
dingetje
  Posted: Apr 7 2009, 09:57 AM
Quote Post


Administrator
*****

Group: Admin
Posts: 707
Member No.: 1
Joined: 24-August 02



My Spanish isn't very good, but it looks like rc_httpd restart only stops the Apache process and doesn't start it!? Correct? That doesn't seem right to me.

QUOTE
i´m running apache AND thttpd?

That's perfectly normal, thttpd is used for the web control panel at port 82 and Apache for the public web server at port 80.

The library dependency looks OK to me, no missing libs and php --version shows that the CLI version runs OK. I also see no load module errors in the startup of your Apache error log. I doubt if adding the libiconv.so.2 lib is going to change anything.

Did you make any edits to the httpd.conf file for Apache?
Did you install perl 5.6.1 package before installing Apache package?

What output do you get when you use the apachectl command to stop/start Apache?

CODE

/usr/local/apache/bin/apachectl stop
/usr/local/apache/bin/apachectl start


--------------------
PMEmail PosterUsers WebsiteICQ
Top
Hitio
Posted: Apr 7 2009, 11:22 AM
Quote Post


Member
**

Group: Members
Posts: 13
Member No.: 6
Joined: 3-December 02



QUOTE (dingetje @ Apr 7 2009, 08:57 AM)
My Spanish isn't very good, but it looks like rc_httpd restart only stops the Apache process and doesn't start it!? Correct? That doesn't seem right to me.

QUOTE
i´m running apache AND thttpd?

That's perfectly normal, thttpd is used for the web control panel at port 82 and Apache for the public web server at port 80.

The library dependency looks OK to me, no missing libs and php --version shows that the CLI version runs OK. I also see no load module errors in the startup of your Apache error log. I doubt if adding the libiconv.so.2 lib is going to change anything.

Did you make any edits to the httpd.conf file for Apache?
Did you install perl 5.6.1 package before installing Apache package?

What output do you get when you use the apachectl command to stop/start Apache?

CODE

/usr/local/apache/bin/apachectl stop
/usr/local/apache/bin/apachectl start

hello Mr Dingetje:

Yes, how you can see, when i run rc_httpd restart command, only appears the stop message and not the start message.

I´m the command how start, restart, i don´t have translate this, because all world know this commands and because the translations is soo dificult in, for example the help files. The rest of Freesco is in spanish language, because a need to made test with it.

Of course, i can see now what the admin panel run in thtpd in the 82 port. Tx.

Yes, I have previous installed the perl 5.6.1 dingetje package after to install apache.

I need to reinstall?.

I have run the apachectl command and i have a bug in the stop command (with rc_httpd the bug is in the start command blink.gif )

QUOTE

[root@router] /usr/local/apache/bin/apachectl stop
/usr/local/apache/bin/apachectl stop: httpd (no pid file) not running
[root@router] /usr/local/apache/bin/apachectl start
/usr/local/apache/bin/apachectl start: httpd started
[root@router] /usr/local/apache/bin/apachectl stop
/usr/local/apache/bin/apachectl stop: httpd (no pid file) not running
[root@router]


Tx again


--------------------
Freesco Box HD instalation 0.4.2: spanish lang pack, Pentium 1 HP Vectra, 64 Mb RAM HD 4GB 2 Eth lan board, floppy disk, CD ROM.
Caja Freesco Router Linux Servidor Web
PMUsers WebsiteICQAOLYahooMSN
Top
dingetje
  Posted: Apr 7 2009, 04:51 PM
Quote Post


Administrator
*****

Group: Admin
Posts: 707
Member No.: 1
Joined: 24-August 02



I asked about the perl package because none of the test CGI scripts seem to work on your site? Even the ones that don't use perl, like /www/cgi/test-cgi which is a shell based CGI test script, outputting some of the server environment variables, is not working! These CGI scripts too are simply output and not executed?!

Compare these two:

http://marcalmo.homeip.net/cgi/test-cgi

http://dingetje.homeip.net/cgi/test-cgi

Another thing that also don't seem to work on your end is the Apache manual. This is enabled in the package via a directory alias and can be displayed with:

http://dingetje.homeip.net/manual/ <-- mine works

http://marcalmo.homeip.net/manual/ <-- yours is hanging?

Frankly I'm out of options as what to check next. It looks like Apache is up and running, but it doesn't parse your PHP scripts. Instead it simply outputs them as if they were regular HTML files. Could you send me your httpd.conf file to look at?

Did you try rebooting?


This post has been edited by dingetje on Apr 7 2009, 05:10 PM


--------------------
PMEmail PosterUsers WebsiteICQ
Top
Hitio
Posted: Apr 8 2009, 05:36 AM
Quote Post


Member
**

Group: Members
Posts: 13
Member No.: 6
Joined: 3-December 02



Tx again

Have you see your private messages?.

I have send to you a PM with the access data to my server.

i send too the httpd.conf

I don´t know if that is a bug or a personal error.

ah, i have try with the 0.3.27 vertion and this error not ocurs. Only with the 0.3.37

wink.gif yes, of course, i have try with a lot of rebooting

Tx

Attached File ( Number of downloads: 22 )
Attached File  httpd.conf


--------------------
Freesco Box HD instalation 0.4.2: spanish lang pack, Pentium 1 HP Vectra, 64 Mb RAM HD 4GB 2 Eth lan board, floppy disk, CD ROM.
Caja Freesco Router Linux Servidor Web
PMUsers WebsiteICQAOLYahooMSN
Top
dingetje
Posted: Apr 8 2009, 11:42 AM
Quote Post


Administrator
*****

Group: Admin
Posts: 707
Member No.: 1
Joined: 24-August 02



I've replied in a PM.


--------------------
PMEmail PosterUsers WebsiteICQ
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0783 ]   [ 12 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.10 ]


FREESCO WebRing
The FREESCO Router WebRing
[ Join Now | Ring Hub | Random | << Prev | Next >> ]

Nedstat Basic - Gratis web site statistieken
Eigen homepage website teller


MKPortal ©2003-2006 mkportal.it
Page generated in 0.05878 seconds with 12 queries