Re: [squid-users] PHP-Problem
Henrik Nordstrom <[EMAIL PROTECTED]> schrieb: > On mån, 2007-09-24 at 09:50 +0200, Andreas Meyer wrote: > > > But I cannot find any reason that causes this problem on the apache. What > > I experience also is that a phpinfo() is displayed in completly unformated > > list, not as usual in a nicely formated output. Hard for me to say why it is > > like that. > > Things I can think of: > > * Differences in Host header, making the requests hit different virtual > servers in your web server configuration.. > > * Bug in the web server, making it react differently to HTTP/1.0 > requests. > > > Which Squid version are you using now, and how have you configured > Squid? Since this morning I have a Squid Cache (Version 2.6.STABLE16-20070924) running with my ages old squid.conf. I just post the uncommented options: http_port 3128 hierarchy_stoplist cgi-bin ? acl QUERY urlpath_regex cgi-bin \? no_cache deny QUERY cache_dir ufs /var/cache/squid 500 16 256 cache_access_log /var/log/squid/access.log cache_log /var/log/squid/cache.log cache_store_log none emulate_httpd_log on ftp_user [EMAIL PROTECTED] ftp_passive off acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl SSL_ports port 443 563 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 563 # https, snews acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 631 acl Safe_ports port 777 # multiling http acl Safe_ports port 901 # swat acl CONNECT method CONNECT acl home src 192.168.0.0/255.255.0.0 acl http-Whitelist url_regex -i /usr/share/squid/white-list acl http-Blacklist url_regex -i /usr/share/squid/black-list acl nimda-eml urlpath_regex -i \.eml$ acl nimda-nws urlpath_regex -i \.nws$ acl wml-files urlpath_regex -i \.wml$ acl exe-files urlpath_regex -i \.exe$ acl avi-files urlpath_regex -i \.avi$ acl mp3-files urlpath_regex -i \.mp3$ acl vbx-files urlpath_regex -i \.vb?$ acl mpg-files urlpath_regex -i \.mpg$ acl zip-files urlpath_regex -i \.zip$ acl scr-files urlpath_regex -i \.scr$ http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access deny nimda-eml http_access deny nimda-nws http_access deny wml-files http_access deny vbx-files http_access deny mpg-files http_access deny scr-files http_access allow localhost http_access allow home http_access deny all icp_access allow all cache_mgr [EMAIL PROTECTED] cache_effective_user squid cache_effective_group nogroup visible_hostname proxy.anup.de forwarded_for off The Squid is only reachable from within our local LAN. It's not from the outside. But like I said before, since yesterday evening suddenly the problem that I had to add index.php to the URL is gone. I don't know why. I had to add it to two virtual hosts, one worked without adding it. -- Andreas Meyer Internet-Tel.: 06341620317 Mein öffentlicher GPG-Schlüssel unter: http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index
Re: [squid-users] PHP-Problem
On mån, 2007-09-24 at 09:50 +0200, Andreas Meyer wrote: > But I cannot find any reason that causes this problem on the apache. What > I experience also is that a phpinfo() is displayed in completly unformated > list, not as usual in a nicely formated output. Hard for me to say why it is > like that. Things I can think of: * Differences in Host header, making the requests hit different virtual servers in your web server configuration.. * Bug in the web server, making it react differently to HTTP/1.0 requests. Which Squid version are you using now, and how have you configured Squid? Regards Henrik signature.asc Description: This is a digitally signed message part
Re: [squid-users] PHP-Problem
Henrik Nordstrom <[EMAIL PROTECTED]> schrieb: > On sön, 2007-09-23 at 17:01 +0200, Andreas Meyer wrote: > > Hello! > > > > I have a Squid 2.5.STABLE1 running on a SuSE8.2. On an Apache/1.3.27 > > (Linux/SuSE) > > on the same machine three IP-based virtual hosts with osCOmmerce are > > running fine. > > > > Now I have the problem when I connect with the Squid to one of these > > virtual hosts > > everything is ok and the shop is displayed ok. > > The other two virtual hosts with osCommerce-shops are only displayed when I > > add > > a "index.php" to the URL, otherwise they are offered to be downloaded: > > application/x-httpd-php > > You have to check your web server. For some reason it's not running the > PHP properly when called by Squid. But I cannot find any reason that causes this problem on the apache. What I experience also is that a phpinfo() is displayed in completly unformated list, not as usual in a nicely formated output. Hard for me to say why it is like that. I think I will subscribe on a PHP-list to find it out. Regards -- Andreas Meyer Internet-Tel.: 06341620317 Mein öffentlicher GPG-Schlüssel unter: http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index
Re: [squid-users] PHP-Problem
On sön, 2007-09-23 at 17:01 +0200, Andreas Meyer wrote: > Hello! > > I have a Squid 2.5.STABLE1 running on a SuSE8.2. On an Apache/1.3.27 > (Linux/SuSE) > on the same machine three IP-based virtual hosts with osCOmmerce are running > fine. > > Now I have the problem when I connect with the Squid to one of these virtual > hosts > everything is ok and the shop is displayed ok. > The other two virtual hosts with osCommerce-shops are only displayed when I > add > a "index.php" to the URL, otherwise they are offered to be downloaded: > application/x-httpd-php You have to check your web server. For some reason it's not running the PHP properly when called by Squid. Regards Henrik signature.asc Description: This is a digitally signed message part
Re: [squid-users] PHP-Problem
"Alexandre Correa" <[EMAIL PROTECTED]> schrieb: > Hello, > > > configure:2305: error: C compiler cannot create executables > > this message seems that your system hasn´t a fully working compiler !! > > try: yum install gcc > or > up2date -d -i -u gcc none of these are available on a SuSE. > and rebuild squid src-rpm ! Regards -- Andreas Meyer Internet-Tel.: 06341620317 Mein öffentlicher GPG-Schlüssel unter: http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index
Re: [squid-users] PHP-Problem
Adrian Chadd <[EMAIL PROTECTED]> schrieb: > Have you tried compiling from just the normal Squid source code? wow, did that with squid-2.6.STABLE16-20070924.tar.gz and it compiled without any error and got it running. Great! # ps aux |grep [s]quid root 5818 0.0 0.2 3716 1108 ?S08:33 0:00 /usr/local/squid/sbin/squid -f /etc/squid/squid.conf -sYD squid 5820 0.0 1.2 6488 4784 ?S08:33 0:00 [squid] squid 5821 0.0 0.0 1340 260 ?S08:33 0:00 (unlinkd) Now all I have to do is to adjust my rcsquid startfile. > If you're having trouble building SUSE RPMs from their SRPMs then > I suggest you contact their support for help. ;) Thank you! -- Andreas Meyer Internet-Tel.: 06341620317 Mein öffentlicher GPG-Schlüssel unter: http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index
Re: [squid-users] PHP-Problem
Hello, configure:2305: error: C compiler cannot create executables this message seems that your system hasn´t a fully working compiler !! try: yum install gcc or up2date -d -i -u gcc and rebuild squid src-rpm ! regards ! See `config.log' for more details. On 9/24/07, Andreas Meyer <[EMAIL PROTECTED]> wrote: > "Amos Jeffries" <[EMAIL PROTECTED]> schrieb: > > > > What could be the problem with the Squid? If I circumvent the Squid, the > > > shops > > > are displayed without adding an "index.php" to the URL. > > > > > > > PLEASE upgrade. There are quite a few serious problems known about > > versions of squid as old as that one. Not to mention the speed and > > configurability increases made across the 2.6 versions. > > I took a squid-2.6.STABLE5-7.src.rpm and tried to rebuild it but it > didn't work out: > > Thread model: posix > gcc version 3.3 20030226 (prerelease) (SuSE Linux) > configure:2231: $? = 0 > configure:2233: gcc -V &5 > gcc: `-V' option must have argument > configure:2236: $? = 1 > configure:2260: checking for C compiler default output > configure:2263: gcc -O2 -march=i486 -mcpu=i686 -fPIE -DLDAP_DEPRECATED > -fno-strict-aliasing -pie conftes > t.c >&5 > gcc: unrecognized option `-pie' > cc1: error: unrecognized option `-fPIE' > configure:2266: $? = 1 > configure: failed program was: > | #line 2239 "configure" > | /* confdefs.h. */ > | > | #define PACKAGE_NAME "Squid Web Proxy" > | #define PACKAGE_TARNAME "squid" > | #define PACKAGE_VERSION "2.6.STABLE5" > | #define PACKAGE_STRING "Squid Web Proxy 2.6.STABLE5" > | #define PACKAGE_BUGREPORT "http://www.squid-cache.org/bugs/"; > | #define PACKAGE "squid" > | #define VERSION "2.6.STABLE5" > | /* end confdefs.h. */ > | > | int > | main () > | { > | > | ; > | return 0; > | } > configure:2305: error: C compiler cannot create executables > See `config.log' for more details. > > Don't know how to continue. > > BTW, the problem I mentioned first with the index.php is suddenly > gone, I don't know what happend. It took me three days of confusion > and suddenly it's gone. > > Regards > -- >Andreas Meyer > > Internet-Tel.: 06341620317 > Mein öffentlicher GPG-Schlüssel unter: > http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index > -- Sds. Alexandre J. Correa Onda Internet / OPinguim.net http://www.ondainternet.com.br http://www.opinguim.net
Re: [squid-users] PHP-Problem
Have you tried compiling from just the normal Squid source code? If you're having trouble building SUSE RPMs from their SRPMs then I suggest you contact their support for help. Adrian On Mon, Sep 24, 2007, Andreas Meyer wrote: > "Amos Jeffries" <[EMAIL PROTECTED]> schrieb: > > > > What could be the problem with the Squid? If I circumvent the Squid, the > > > shops > > > are displayed without adding an "index.php" to the URL. > > > > > > > PLEASE upgrade. There are quite a few serious problems known about > > versions of squid as old as that one. Not to mention the speed and > > configurability increases made across the 2.6 versions. > > I took a squid-2.6.STABLE5-7.src.rpm and tried to rebuild it but it > didn't work out: > > Thread model: posix > gcc version 3.3 20030226 (prerelease) (SuSE Linux) > configure:2231: $? = 0 > configure:2233: gcc -V &5 > gcc: `-V' option must have argument > configure:2236: $? = 1 > configure:2260: checking for C compiler default output > configure:2263: gcc -O2 -march=i486 -mcpu=i686 -fPIE -DLDAP_DEPRECATED > -fno-strict-aliasing -pie conftes > t.c >&5 > gcc: unrecognized option `-pie' > cc1: error: unrecognized option `-fPIE' > configure:2266: $? = 1 > configure: failed program was: > | #line 2239 "configure" > | /* confdefs.h. */ > | > | #define PACKAGE_NAME "Squid Web Proxy" > | #define PACKAGE_TARNAME "squid" > | #define PACKAGE_VERSION "2.6.STABLE5" > | #define PACKAGE_STRING "Squid Web Proxy 2.6.STABLE5" > | #define PACKAGE_BUGREPORT "http://www.squid-cache.org/bugs/"; > | #define PACKAGE "squid" > | #define VERSION "2.6.STABLE5" > | /* end confdefs.h. */ > | > | int > | main () > | { > | > | ; > | return 0; > | } > configure:2305: error: C compiler cannot create executables > See `config.log' for more details. > > Don't know how to continue. > > BTW, the problem I mentioned first with the index.php is suddenly > gone, I don't know what happend. It took me three days of confusion > and suddenly it's gone. > > Regards > -- >Andreas Meyer > > Internet-Tel.: 06341620317 > Mein ??ffentlicher GPG-Schl??ssel unter: > http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index -- - Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support - - $25/pm entry-level bandwidth-capped VPSes available in WA -
Re: [squid-users] PHP-Problem
"Amos Jeffries" <[EMAIL PROTECTED]> schrieb: > > What could be the problem with the Squid? If I circumvent the Squid, the > > shops > > are displayed without adding an "index.php" to the URL. > > > > PLEASE upgrade. There are quite a few serious problems known about > versions of squid as old as that one. Not to mention the speed and > configurability increases made across the 2.6 versions. I took a squid-2.6.STABLE5-7.src.rpm and tried to rebuild it but it didn't work out: Thread model: posix gcc version 3.3 20030226 (prerelease) (SuSE Linux) configure:2231: $? = 0 configure:2233: gcc -V &5 gcc: `-V' option must have argument configure:2236: $? = 1 configure:2260: checking for C compiler default output configure:2263: gcc -O2 -march=i486 -mcpu=i686 -fPIE -DLDAP_DEPRECATED -fno-strict-aliasing -pie conftes t.c >&5 gcc: unrecognized option `-pie' cc1: error: unrecognized option `-fPIE' configure:2266: $? = 1 configure: failed program was: | #line 2239 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "Squid Web Proxy" | #define PACKAGE_TARNAME "squid" | #define PACKAGE_VERSION "2.6.STABLE5" | #define PACKAGE_STRING "Squid Web Proxy 2.6.STABLE5" | #define PACKAGE_BUGREPORT "http://www.squid-cache.org/bugs/"; | #define PACKAGE "squid" | #define VERSION "2.6.STABLE5" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2305: error: C compiler cannot create executables See `config.log' for more details. Don't know how to continue. BTW, the problem I mentioned first with the index.php is suddenly gone, I don't know what happend. It took me three days of confusion and suddenly it's gone. Regards -- Andreas Meyer Internet-Tel.: 06341620317 Mein öffentlicher GPG-Schlüssel unter: http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index
Re: [squid-users] PHP-Problem
> Hello! > > I have a Squid 2.5.STABLE1 running on a SuSE8.2. On an Apache/1.3.27 > (Linux/SuSE) > on the same machine three IP-based virtual hosts with osCOmmerce are > running fine. > > Now I have the problem when I connect with the Squid to one of these > virtual hosts > everything is ok and the shop is displayed ok. > The other two virtual hosts with osCommerce-shops are only displayed when > I add > a "index.php" to the URL, otherwise they are offered to be downloaded: > application/x-httpd-php > > The configurations of the three shops are identical exept of the > servernames and so > on of course. > > What could be the problem with the Squid? If I circumvent the Squid, the > shops > are displayed without adding an "index.php" to the URL. > PLEASE upgrade. There are quite a few serious problems known about versions of squid as old as that one. Not to mention the speed and configurability increases made across the 2.6 versions. Amos
[squid-users] PHP-Problem
Hello! I have a Squid 2.5.STABLE1 running on a SuSE8.2. On an Apache/1.3.27 (Linux/SuSE) on the same machine three IP-based virtual hosts with osCOmmerce are running fine. Now I have the problem when I connect with the Squid to one of these virtual hosts everything is ok and the shop is displayed ok. The other two virtual hosts with osCommerce-shops are only displayed when I add a "index.php" to the URL, otherwise they are offered to be downloaded: application/x-httpd-php The configurations of the three shops are identical exept of the servernames and so on of course. What could be the problem with the Squid? If I circumvent the Squid, the shops are displayed without adding an "index.php" to the URL. Regards -- Andreas Meyer Internet-Tel.: 06341620317 Mein öffentlicher GPG-Schlüssel unter: http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index