apache PHP suhosin load
On FreeBSD 8.3 I have apache22 web server with PHP. PHP is PHP52 for compatibility with existing applications, but the most recent version in the php52 branch $ php --version PHP 5.2.17 with Suhosin-Patch 0.9.7 (cli) (built: May 7 2012 08:45:58) From time to time, I notice in a top output, that a huge number of httpd daemons are being started, making the load rapidly increase to levels of 5, 10, 15, ... and very slow interactive respons ... Stopping apache makes the load rapidly decrease to a normal level. I noticed at the console, at stopping apache, several messages such as Jun 14 09:12:20 macos kernel: Jun 14 09:12:20 macos suhosin[28824]: ALERT - canary mismatch on efree() - heap overflow detected (attacker 'REMOTE_ADDR not set', file '/home/wins/win/win/www/wiki/mediawiki-1.16.0/includes/AutoLoader.php', line 654) (the file value differs, but it's always suhosin .. canany mismatch - heap overflow detected) My PHP has following options set # cd /usr/ports/lang/php52 My PHP has following options set # cd /usr/ports/lang/php52 # make showconfig === The following configuration options are available for php52-5.2.17_8: CLI=on: Build CLI version CGI=on: Build CGI version APACHE=on: Build Apache module DEBUG=off: Enable debug SUHOSIN=on: Enable Suhosin protection system (not for jails) MULTIBYTE=off: Enable zend multibyte support IPV6=on: Enable ipv6 support MAILHEAD=off: Enable mail header patch REDIRECT=off: Enable force-cgi-redirect support (CGI only) DISCARD=off: Enable discard-path support (CGI only) FASTCGI=on: Enable fastcgi support (CGI only) FPM=off: Enable fastcgi process manager (CGI only) PATHINFO=on: Enable path-info-check support (CGI only) LINKTHR=off: Link thread lib (for threaded extensions) Is that heap overlow causing the trouble? Has suhosin to do something with it? How to solve? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: apache PHP suhosin load
On 21 Jun 2012, at 08:34, n dhert ndhert...@gmail.com wrote: On FreeBSD 8.3 I have apache22 web server with PHP. PHP is PHP52 for compatibility with existing applications, but the most recent version in the php52 branch $ php --version PHP 5.2.17 with Suhosin-Patch 0.9.7 (cli) (built: May 7 2012 08:45:58) From time to time, I notice in a top output, that a huge number of httpd daemons are being started, making the load rapidly increase to levels of 5, 10, 15, ... and very slow interactive respons ... Stopping apache makes the load rapidly decrease to a normal level. I noticed at the console, at stopping apache, several messages such as Jun 14 09:12:20 macos kernel: Jun 14 09:12:20 macos suhosin[28824]: ALERT - canary mismatch on efree() - heap overflow detected (attacker 'REMOTE_ADDR not set', file '/home/wins/win/win/www/wiki/mediawiki-1.16.0/includes/AutoLoader.php', line 654) (the file value differs, but it's always suhosin .. canany mismatch - heap overflow detected) My PHP has following options set # cd /usr/ports/lang/php52 My PHP has following options set # cd /usr/ports/lang/php52 # make showconfig === The following configuration options are available for php52-5.2.17_8: CLI=on: Build CLI version CGI=on: Build CGI version APACHE=on: Build Apache module DEBUG=off: Enable debug SUHOSIN=on: Enable Suhosin protection system (not for jails) MULTIBYTE=off: Enable zend multibyte support IPV6=on: Enable ipv6 support MAILHEAD=off: Enable mail header patch REDIRECT=off: Enable force-cgi-redirect support (CGI only) DISCARD=off: Enable discard-path support (CGI only) FASTCGI=on: Enable fastcgi support (CGI only) FPM=off: Enable fastcgi process manager (CGI only) PATHINFO=on: Enable path-info-check support (CGI only) LINKTHR=off: Link thread lib (for threaded extensions) Is that heap overlow causing the trouble? Has suhosin to do something with it? How to solve? For starters, I would suggest moving away from apace and towards nginx + fastcgi php. A friend had a small dedicated server with a vbulletin forum overloaded with addons, and apache/php were bringing the server to high load levels, 10-20ish. I've moved him to nginx and the server hardly ever goes above 1 now. Additionally, nginx is immune to Slowloris attacks, while apache is not. Only after migrating to nginx would I investigate of the suhosin problem still exists.___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: apache PHP suhosin load
n dhert wrote: On FreeBSD 8.3 I have apache22 web server with PHP. PHP is PHP52 for compatibility with existing applications, but the most recent version in the php52 branch $ php --version PHP 5.2.17 with Suhosin-Patch 0.9.7 (cli) (built: May 7 2012 08:45:58) From time to time, I notice in a top output, that a huge number of httpd daemons are being started, making the load rapidly increase to levels of 5, 10, 15, ... and very slow interactive respons ... Stopping apache makes the load rapidly decrease to a normal level. I noticed at the console, at stopping apache, several messages such as Jun 14 09:12:20 macos kernel: Jun 14 09:12:20 macos suhosin[28824]: ALERT - canary mismatch on efree() - heap overflow detected (attacker 'REMOTE_ADDR not set', file '/home/wins/win/win/www/wiki/mediawiki-1.16.0/includes/AutoLoader.php', line 654) (the file value differs, but it's always suhosin .. canany mismatch - heap overflow detected) My PHP has following options set # cd /usr/ports/lang/php52 My PHP has following options set # cd /usr/ports/lang/php52 # make showconfig === The following configuration options are available for php52-5.2.17_8: CLI=on: Build CLI version CGI=on: Build CGI version APACHE=on: Build Apache module DEBUG=off: Enable debug SUHOSIN=on: Enable Suhosin protection system (not for jails) MULTIBYTE=off: Enable zend multibyte support IPV6=on: Enable ipv6 support MAILHEAD=off: Enable mail header patch REDIRECT=off: Enable force-cgi-redirect support (CGI only) DISCARD=off: Enable discard-path support (CGI only) FASTCGI=on: Enable fastcgi support (CGI only) FPM=off: Enable fastcgi process manager (CGI only) PATHINFO=on: Enable path-info-check support (CGI only) LINKTHR=off: Link thread lib (for threaded extensions) Is that heap overlow causing the trouble? Has suhosin to do something with it? Most likely - yes. I noticed in your config above you built and installed the Apache PHP module in addition to CGI/FastCGI. If you are running Apache in a FastCGI mode you should check and make sure the following is indeed commented out like below: #LoadModule php5_modulelibexec/apache22/libphp5.so The general purpose meaning of this error is that PHP has detected some form of memory corruption. But as to why/what exactly it doesn't help much. The general way I used to look at Apache and PHP problems was to isolate pieces. Like only loading the core PHP and no extensions by renaming the extensions.ini to extensions.ini.bak. This is bound to cause problems as most PHP apps today require a certain basic number of modules enabled in order to work. 2 things to troubleshoot looking for a bad module: comment each out one at a time and restart. When you comment out the bad one you will no longer see the error. Another second item to be aware of is sometimes certain module combinations need to be loaded in extensions.ini in a specific order. Figuring out this order can be nightmarish, should it ever actaully be found to be a problem. Long time ago someone wrote a script to automate this. I seem to have a distant memory that back in early PHP 5.2.x days I had a problem with the mcrypt module. Maybe try commenting that one out first. If you don't need it leave it that way. I also seem to have experienced this error a second time, and it was from a bad interaction between Suhosin patch and two other build options being enabled, one was the Mailhead and I don't remember what the other one was(maybe it was IPv6). I found when I disabled these 2 things I could build with the Suhosin patch and stuff ran correctly. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sendmail recommended permissions for apache/php server
On 12/04/2012 02:49, Polytropon wrote: On Wed, 11 Apr 2012 23:57:51 +, Ian Lord wrote: I then got a different error in /var/log/messages Apr 11 19:38:40 dev sendmail[41170]: NOQUEUE: SYSERR(www): can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=25): Permission denied I found very old threads saying to change the group of apache to smmsp but I doubt it's a good idea. No, not change to, but you can _add_ apache (or whatever is originating the error) to the smmsp group. Add it to smmsp:*:25: in /etc/group. You should not be changing the ownership and permissions on any of the directories used by sendmail(8), or the group membership of any of the groups used by sendmail. Not even if you think you know what you are doing. This is extremely security sensitive, and getting it wrong means at minimum unprivileged users can forge e-mails untraceably[*]. There is no reason for apache to have any sort of write permissions to /var/spool/clientmqueue -- that should only be accessible to sendmail, and sendmail is the only program that should ever use it. To the OP -- can you execute sendmail outside PHP? If you can use mail(1) to send a test e-mail, then sendmail should be fine. Note: test this as an unprivileged user. What are the permissions on /usr/libexec/sendmail/sendmail ? They should look like this: % ls -la /usr/libexec/sendmail/sendmail -r-xr-sr-x 1 root smmsp 662136 Apr 1 08:38 /usr/libexec/sendmail/sendmail If that all checks out, then the problem is with PHP rather than your sendmail installation. There are several different ways PHP might be programmed to send e-mail; perhaps you could describe how your particular application tries to do it? Cheers, Matthew [*] So what? you might think. Until you get an e-mail request from your boss to provide sensitive information to some contractor you don't really know. -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: Sendmail recommended permissions for apache/php server
On Thu, 12 Apr 2012 08:17:33 +0100, Matthew Seaman wrote: On 12/04/2012 02:49, Polytropon wrote: On Wed, 11 Apr 2012 23:57:51 +, Ian Lord wrote: I then got a different error in /var/log/messages Apr 11 19:38:40 dev sendmail[41170]: NOQUEUE: SYSERR(www): can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=25): Permission denied I found very old threads saying to change the group of apache to smmsp but I doubt it's a good idea. No, not change to, but you can _add_ apache (or whatever is originating the error) to the smmsp group. Add it to smmsp:*:25: in /etc/group. You should not be changing the ownership and permissions on any of the directories used by sendmail(8), or the group membership of any of the groups used by sendmail. Not even if you think you know what you are doing. This is extremely security sensitive, and getting it wrong means at minimum unprivileged users can forge e-mails untraceably[*]. You're right - as long as sendmail works properly (and is invoked by whatever means sends e-mail out of apache / PHP), the present group settings and permissions should be okay. Sendmail will then properly run as the smmsp group member which will enable it to properly access the queue directory. There is no reason for apache to have any sort of write permissions to /var/spool/clientmqueue -- that should only be accessible to sendmail, and sendmail is the only program that should ever use it. I'm not aware of why a program should directly access the mail queues, but maybe that's a special PHP feature. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Sendmail recommended permissions for apache/php server
You should not be changing the ownership and permissions on any of the directories used by sendmail(8), or the group membership of any of the groups used by sendmail. Not even if you think you know what you are doing. This is extremely security sensitive, and getting it wrong means at minimum unprivileged users can forge e-mails untraceably[*]. That's what I thought, I found it to work but preferred to ask on the list since it didn't make sense to me :) To the OP -- can you execute sendmail outside PHP? If you can use mail(1) to send a test e-mail, then sendmail should be fine. Note: test this as an unprivileged user. No it doesn't work, just tried it: %mail -s Hello lo...@msdi.ca Hello ! . EOT %WARNING: RunAsUser for MSP ignored, check group ids (egid=0, want=25) can not chdir(/var/spool/clientmqueue/): Permission denied Program mode requires special privileges, e.g., root or TrustedUser. Apr 12 08:47:08 dev sendmail[94980]: NOQUEUE: SYSERR(msdi): can not chdir(/var/spool/clientmqueue/): Permission denied What are the permissions on /usr/libexec/sendmail/sendmail ? They should look like this: % ls -la /usr/libexec/sendmail/sendmail -r-xr-sr-x 1 root smmsp 662136 Apr 1 08:38 /usr/libexec/sendmail/sendmail # ls -al /usr/libexec/sendmail/sendmail -r-xr-sr-x 1 root wheel 707160 Jan 3 02:57 /usr/libexec/sendmail/sendmail So the group is wrong... I changed it from wheel to smmsp and everything works fine now ! Thanks a lot for the fix, but this server is a clean install of 9.0-RELEASE that I installed about 2-3 months ago. I never changed the permission myself on that file so I guess there is something wrong that would need to be fixed (unless it's already fixed in newer versions). Thanks again ~~ Ian Lord MSD Informatique 143 Rue des Fauvettes St-Colomban (Québec) J5K 0E2 Tél: (514) 776-MSDI - (514) 776-6734 Sans Frais: 1(877) 776-MSDI - 1(877) 776-6734 http://www.msdi.ca ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sendmail recommended permissions for apache/php server
On 12/04/2012 14:40, Ian Lord wrote: What are the permissions on /usr/libexec/sendmail/sendmail ? They should look like this: % ls -la /usr/libexec/sendmail/sendmail -r-xr-sr-x 1 root smmsp 662136 Apr 1 08:38 /usr/libexec/sendmail/sendmail # ls -al /usr/libexec/sendmail/sendmail -r-xr-sr-x 1 root wheel 707160 Jan 3 02:57 /usr/libexec/sendmail/sendmail So the group is wrong... I changed it from wheel to smmsp and everything works fine now ! Thanks a lot for the fix, but this server is a clean install of 9.0-RELEASE that I installed about 2-3 months ago. I never changed the permission myself on that file so I guess there is something wrong that would need to be fixed (unless it's already fixed in newer versions). I haven't had any similar problems on 9.0 systems I've installed so I don't think it is an obvious and universal bug in the system installer. It might be the case that you did something differently -- if you can reproduce the effect, and if it's not by doing something daft like 'oh, and here is where we recursively chgrp the whole filesystem for no apparent reason' then please do send a PR with the details. If you want to ensure that almost everything has the correct ownership and permissions, then you can use mtree(8). eg. # cd / # mtree -Ue -f /etc/mtree/BSD.root.dist # mtree -Ue -f /etc/mtree/BSD.sendmail.dist # cd /usr # mtree -Ue -f /etc/mtree/BSD.usr.dist # cd /usr/include # mtree -Ue -f /etc/mtree/BSD.include.dist # cd /var # mtree -Ue -f /etc/mtree/BSD.var.dist ... although now I come to look at it, this won't actually fix the group ownership on /usr/libexec/sendmail/sendmail for example. For that, you'ld probably have to use the system sources or the installation media. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Sendmail recommended permissions for apache/php server
Hi, I am trying to use sendmail to send emails from a php script (I tried phpmailer and mail function with the same result). I always got messages like Could not execute: /usr/sbin/sendmail Sendmail is World executable: # ls -l /usr/sbin/sendmail lrwxr-xr-x 1 root wheel 21 Jan 3 02:57 /usr/sbin/sendmail - /usr/sbin/mailwrapper So I've checked into /var/log/messages and found this: Apr 11 18:09:44 dev sendmail[38340]: NOQUEUE: SYSERR(www): can not chdir(/var/spool/clientmqueue/): Permission denied I've checked permissions on the /var/spool/clientmqueue/ directory # ls -al /var/spool/clientmqueue/ drwxrwx--- 2 smmsp smmsp 3 Apr 11 19:01 . So I saw that only the user and group smmsp could write to this directory. I presumed the apache user should have access to it so I added www to the smmsp directory. I then got a different error in /var/log/messages Apr 11 19:38:40 dev sendmail[41170]: NOQUEUE: SYSERR(www): can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=25): Permission denied I found very old threads saying to change the group of apache to smmsp but I doubt it's a good idea. Chmodding 777 the /var/spool/clientmqueue/ fixed the problem, I can now send emails, but I wonder if this is the way to fix the issue correctly. Is that the official fix or did I missed some configuration somewhere ? Sending emails from php using mail or sendmail should be something working out of the box I guess, I doubt we're supposed to change permissions to make it work Any help would be appreciated. Regards ~~ Ian Lord MSD Informatique 143 Rue des Fauvettes St-Colomban (Québec) J5K 0E2 Tél: (514) 776-MSDI - (514) 776-6734 Sans Frais: 1(877) 776-MSDI - 1(877) 776-6734 http://www.msdi.cahttp://www.msdi.ca/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sendmail recommended permissions for apache/php server
On Wed, 11 Apr 2012 23:57:51 +, Ian Lord wrote: I then got a different error in /var/log/messages Apr 11 19:38:40 dev sendmail[41170]: NOQUEUE: SYSERR(www): can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=25): Permission denied I found very old threads saying to change the group of apache to smmsp but I doubt it's a good idea. No, not change to, but you can _add_ apache (or whatever is originating the error) to the smmsp group. Add it to smmsp:*:25: in /etc/group. See the error message above: can not write to queue directory /var/spool/clientmqueue/ Check: % ls -ld /var/spool/clientmqueue drwxrwx--- 2 smmsp smmsp 512 Apr 12 03:12 /var/spool/clientmqueue/ ^^^ This directory can be read, written and entered/searched by _members_ of the smmsp group. Back to the error message: (RunAsGid=0, required=25) It is indicated that group #25 (smmsp) is the required GID, not 0. And: Permission denied which is the logical conclusion. Conclusion: You must make sure that whatever needs to access this directory is in the smmsp group (25). Chmodding 777 the /var/spool/clientmqueue/ fixed the problem, I can now send emails, but I wonder if this is the way to fix the issue correctly. You souldn't need to do that. Now this directory can be modified by anyone, that's not good. Is that the official fix or did I missed some configuration somewhere ? Sending emails from php using mail or sendmail should be something working out of the box I guess, I doubt we're supposed to change permissions to make it work Correct. In regards of _security_, it's required to _allow_ the corresponding program / functionality / part of apache / mailer or whatever the access to the mail queue. This is something that is _not_ possible out of the box because there are many possi- bilities and security considerations. Any help would be appreciated. Try to add apache (or whatever part of it, or PHP subsystem called by it that needs to access the mail queue) to the required group to give it the proper permission to do so. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: APACHE/PHP/MYSQL Password Hash
Monty Pyth wrote: I have inherited a website to work on that users authenticate to using a login and password from a login page. The server is FreeBSD 6.2 running APACHE/PHP/MYSQL. There is a MYSQL table that maintains all of the users. The table has a users name and password. The password is hashed and some examples are: 02SvtVJnRLzuQ 42jhVP6kxUBX6 Can anyone tell me what file I would look at to see what hash algorithm is being used to store the passwords in the table? Any help would be great. If this is using Apache basic auth (mod_authn_dbd) then the passwords will be stored using the old-style DES password hash. If the passwords are managed from PHP, then it is anyone's guess as to how they are stored. The samples do provided look like old-style DES password hashes, but it's not possible to be certain that's what they are just by looking at them. See crypt(3) for the OS interface for generating password hashes. There is an equivalent PHP function: http://uk.php.net/manual/en/function.crypt.php or you can play with perl to learn how it works: % perl -le 'print crypt(password, aa);' aajfMKNH1hTm2 The 2nd argument is the salt, a randomly generated value used to ensure that the same password encrypts to different hashes if used in different accounts. It's the same basic API that is used in the system password file, but nowadays the salt is 6 characters rather than two, and there is a choice of hashing function -- this uses MD5: % perl -le 'print crypt(password, q{$1$aa$});' $1$aa$FuYJ957Lgsw.eVsENqOok1 Cheers, Matthew PS. 42jhVP6kxUBX6 is a Googlewhack, or it was until I sent this message. However one way of quickly decoding a password has is just to Google for the crypt text -- no guarantees but surprisingly often you'll find the answer for the old style DES hashes... -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
APACHE/PHP/MYSQL Password Hash
I have inherited a website to work on that users authenticate to using a login and password from a login page. The server is FreeBSD 6.2 running APACHE/PHP/MYSQL. There is a MYSQL table that maintains all of the users. The table has a users name and password. The password is hashed and some examples are: 02SvtVJnRLzuQ 42jhVP6kxUBX6 Can anyone tell me what file I would look at to see what hash algorithm is being used to store the passwords in the table? Any help would be great. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: APACHE/PHP/MYSQL Password Hash
Hi, The password is hashed and some examples are: 02SvtVJnRLzuQ 42jhVP6kxUBX6 Can anyone tell me what file I would look at to see what hash algorithm is being used to store the passwords in the table? Any help would be great. As a hint, to help make it easier to reply, where are the password stored? Where did you get the example above? Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: APACHE/PHP/MYSQL Password Hash
On Thu, Oct 29, 2009 at 8:52 PM, Monty Pyth freebsdn...@yahoo.com wrote: I have inherited a website to work on that users authenticate to using a login and password from a login page. The server is FreeBSD 6.2 running APACHE/PHP/MYSQL. There is a MYSQL table that maintains all of the users. The table has a users name and password. The password is hashed and some examples are: 02SvtVJnRLzuQ 42jhVP6kxUBX6 Can anyone tell me what file I would look at to see what hash algorithm is being used to store the passwords in the table? Any help would be great. Looking in the website file that processes the login page. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Apache/php
I have php code on home page to count how many times it is accessed from the internet. Problem is pages deeper in website can jump back direct to home page and this again gets counted. Is there any way to give the php counter routine intelligent so it will bypass bumping the counter on accesses coming from pages in the site? I looked at the php variables but nothing jumped up that looked usable. Am I wanting to do something that is imposable? ?php $counter_file = '99.00-IG_visitor_count.php'; clearstatcache(); ignore_user_abort(true); # prevent refresh from aborting file operations $fh = fopen($counter_file, 'r+'); # use 'r+' so file can be read and written. if ($fh) { if (flock($fh, LOCK_EX)) # don't do anything unless lock is successful { $count = chop(fread($fh, filesize($counter_file))); $count++; rewind($fh); fwrite($fh, $count); fflush($fh); ftruncate($fh, ftell($fh)); flock($fh, LOCK_UN); } else echo Could not lock counter file '$counter_file'; fclose($fh); } else echo Could not open counter file '$counter_file'; ignore_user_abort(false);## put things back to normal echo brnbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;You are the $count visitor since 2/15/2009; ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Apache/php
On Thu, 12 Feb 2009, Fbsd1 wrote: I have php code on home page to count how many times it is accessed from the internet. Problem is pages deeper in website can jump back direct to home page and this again gets counted. This is one of many ways that counters can be wildly inaccurate and is among the reasons that mature web sites don't use counters (or at least don't display them). Is there any way to give the php counter routine intelligent so it will bypass bumping the counter on accesses coming from pages in the site? Sure. You can just not bump the counter when HTTP_REFERER is a page at your site. There are increasingly more complex ways to eliminate *some* other sources of inaccuracy, but you get nearer to redesigning the site to suit the counter, which is silly in most cases. Analysis of server logs is the real way to go about serious statistics, although there still are sources of inaccuracies which cannot be reduced. -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Apache/php
Fbsd1 wrote: I have php code on home page to count how many times it is accessed from the internet. Problem is pages deeper in website can jump back direct to home page and this again gets counted. Is there any way to give the php counter routine intelligent so it will bypass bumping the counter on accesses coming from pages in the site? [snip] Just a very generic suggestion: Use session. If a session has not been established count the visit, set a session cookie and then whenever a jumpback happens check for session cookie. If there is a session cookie then don't increment. This is a portion of how most simple login pages function. Plenty of code samples and examples around the net that you can lift and get ideas. Just look for PHP Login pages. Probably better and easier ways, but this is what jumps out first. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Process in lockf with apache/php
Hi. I use Apache 1.3 and PHP5 in module. I have a timeout of 30 seconds for my PHP scripts. When a process is out of this timeout, I have this message in my error.log: Maximum execution time of 30 seconds exceeded in /var/www/data/test.php on line 10 Ok, this is normal. In a top, I see the process is in lockf state. The process is not killed. But when I do a ps aux, I don't see the lockf state. How show lockf states in ps command? I don't find it in ps manpage. What's a lockf state precisely? Why Apache/PHP does not kill this process? I must kill them manually? Is a bug number of lockf processes is important? Thanks. - Nicolas. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
Eric Crist wrote: On Jun 20, 2007, at 8:56 PMJun 20, 2007, Jack Barnett wrote: Ivan Carey wrote: I don't have libphp5.so anywhere in /usr/local (did a find for it). the php5 port is broken? Or do I have to reinstall apache after php5? You need to enable build of the php5 apache extension when you build the port - it's not enabled by default. HTH Eric Crist thanks. do you know how to do that off hand? :) :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
Jack Barnett wrote: Eric Crist wrote: On Jun 20, 2007, at 8:56 PMJun 20, 2007, Jack Barnett wrote: Ivan Carey wrote: I don't have libphp5.so anywhere in /usr/local (did a find for it). the php5 port is broken? Or do I have to reinstall apache after php5? You need to enable build of the php5 apache extension when you build the port - it's not enabled by default. HTH Eric Crist thanks. do you know how to do that off hand? :) :) disregarding... rebuilding now, I edited the Makefile ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
Jack Barnett wrote: Jack Barnett wrote: Eric Crist wrote: On Jun 20, 2007, at 8:56 PMJun 20, 2007, Jack Barnett wrote: Ivan Carey wrote: I don't have libphp5.so anywhere in /usr/local (did a find for it). the php5 port is broken? Or do I have to reinstall apache after php5? You need to enable build of the php5 apache extension when you build the port - it's not enabled by default. HTH Eric Crist thanks. do you know how to do that off hand? :) :) disregarding... rebuilding now, I edited the Makefile Ouch. Just for the record: # cd /usr/ports/lang/php5 # make config Select the APACHE option. # make build deinstall reinstall clean ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
Jack Barnett wrote: Ivan Carey wrote: Jack Barnett wrote: FreeBSD 6.2 Apache 1.3.37 (from ports) php 5.2.3 (from ports) on the command line doing `php index.php` works. But if I use it though a web browser it just displays the php code. I installed it like this (extensions to) http://www.mydigitallife.info/2006/04/14/installing-web-server-in-freebsd-60-with-apache-22-mysql-50-and-php-5-part-5/ The only difference is that I'm using 1.3 and not 2.x of Apache. Apache config below Installing 2.x isn't an option yet (test server, still need 1.3) fire2# grep -i php * httpd.conf:AddType application/x-httpd-php .php httpd.conf:AddType application/x-httpd-php-source .phps httpd.conf:IfModule mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.php3 index.html httpd.conf:IfModule !mod_php4.c httpd.conf:DirectoryIndex index.php3 index.html httpd.conf:IfModule !mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.html httpd.conf:IfModule !mod_php4.c httpd.conf:IfModule mod_php3.c httpd.conf: AddType application/x-httpd-php3 .php3 httpd.conf: AddType application/x-httpd-php3-source .php3s httpd.conf:IfModule mod_php4.c httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] . Hello Jack, I have 2 servers running one with php4 and one with php5 In the php4 httpd.conf I have: LoadModule php4_modulelibexec/apache/libphp4.so AddModule mod_php4.c # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # IfModule mod_dir.c IfModule mod_php3.c IfModule mod_php4.c DirectoryIndex index.php index.php3 index.html /IfModule IfModule !mod_php4.c DirectoryIndex index.php3 index.html /IfModule /IfModule IfModule !mod_php3.c IfModule mod_php4.c DirectoryIndex index.php index.html /IfModule IfModule !mod_php4.c DirectoryIndex index.html /IfModule /IfModule /IfModule # LanguagePriority allows you to give precedence to some languages # in case of a tie during content negotiation. # # Just list the languages in decreasing order of preference. We have # more or less alphabetized them here. You probably want to change this. # IfModule mod_negotiation.c LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw /IfModule IfModule mod_php3.c AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s /IfModule IfModule mod_php4.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule In the Apache2 using php5 I have in the httpd.conf LoadModule php5_module libexec/apache2/libphp5.so # If the AddEncoding directives above are commented-out, then you # probably should define those extensions to indicate media types: # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps I hope this helps you with your configuration, Regards, Ivan I don't have libphp5.so anywhere in /usr/local (did a find for it). the php5 port is broken? Or do I have to reinstall apache after php5? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] . Jack, When I want a system with Apache PHP and MySQL. I install them in the following order. 1. Install Apache 2. Install PHP via /usr/lang/php5-extensions (select the extensions you want, this will install php5 and add the required lines to the httpd.conf) 3. Install MySQL Regards, Ivan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
[LoN]Kamikaze wrote: Jack Barnett wrote: Jack Barnett wrote: Eric Crist wrote: On Jun 20, 2007, at 8:56 PMJun 20, 2007, Jack Barnett wrote: Ivan Carey wrote: I don't have libphp5.so anywhere in /usr/local (did a find for it). the php5 port is broken? Or do I have to reinstall apache after php5? You need to enable build of the php5 apache extension when you build the port - it's not enabled by default. HTH Eric Crist thanks. do you know how to do that off hand? :) :) disregarding... rebuilding now, I edited the Makefile Ouch. Just for the record: # cd /usr/ports/lang/php5 # make config Select the APACHE option. # make build deinstall reinstall clean Yea, for some reason it's not giving me that menu... to configure it. Most ports used to have any option... to configure stuff... in that nice text based interface. I got BATCH=YES in make.conf so that's probably why! Anyways, I manually edited the Makefile and recompiled. That is WORKING :) Manually fooling around with that file will probably bust something up down the road if I have to reinstall, but for now I'm happy. It's all working. Thanks everyone for your help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
Jack Barnett wrote: [LoN]Kamikaze wrote: Jack Barnett wrote: Jack Barnett wrote: Eric Crist wrote: On Jun 20, 2007, at 8:56 PMJun 20, 2007, Jack Barnett wrote: Ivan Carey wrote: I don't have libphp5.so anywhere in /usr/local (did a find for it). the php5 port is broken? Or do I have to reinstall apache after php5? You need to enable build of the php5 apache extension when you build the port - it's not enabled by default. HTH Eric Crist thanks. do you know how to do that off hand? :) :) disregarding... rebuilding now, I edited the Makefile Ouch. Just for the record: # cd /usr/ports/lang/php5 # make config Select the APACHE option. # make build deinstall reinstall clean Yea, for some reason it's not giving me that menu... to configure it. Most ports used to have any option... to configure stuff... in that nice text based interface. I got BATCH=YES in make.conf so that's probably why! Anyways, I manually edited the Makefile and recompiled. That is WORKING :) Manually fooling around with that file will probably bust something up down the road if I have to reinstall, but for now I'm happy. It's all working. Thanks everyone for your help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] . Jack, When I want a system with Apache PHP and MySQL. I install them in the following order. 1. Install Apache 2. Install PHP via /usr/lang/php5-extensions (select the extensions you want, this will install php5 and add the required lines to the httpd.conf) 3. Install MySQL Regards, Ivan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
On Wed, 20 Jun 2007, Jack Barnett wrote: doug wrote: On Tue, 19 Jun 2007, Jack Barnett wrote: FreeBSD 6.2 Apache 1.3.37 (from ports) php 5.2.3 (from ports) on the command line doing `php index.php` works. But if I use it though a web browser it just displays the php code. I installed it like this (extensions to) http://www.mydigitallife.info/2006/04/14/installing-web-server-in-freebsd-60-with-apache-22-mysql-50-and-php-5-part-5/ The only difference is that I'm using 1.3 and not 2.x of Apache. Apache config below Installing 2.x isn't an option yet (test server, still need 1.3) fire2# grep -i php * httpd.conf:AddType application/x-httpd-php .php httpd.conf:AddType application/x-httpd-php-source .phps httpd.conf:IfModule mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.php3 index.html httpd.conf:IfModule !mod_php4.c httpd.conf:DirectoryIndex index.php3 index.html httpd.conf:IfModule !mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.html httpd.conf:IfModule !mod_php4.c httpd.conf:IfModule mod_php3.c httpd.conf: AddType application/x-httpd-php3 .php3 httpd.conf: AddType application/x-httpd-php3-source .php3s httpd.conf:IfModule mod_php4.c httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps I just installed this combination, among the changes to httpd.conf I change pph4--php5 (see below). You are not getting an index file. If you have 'Options +Indexes' browsing will get you an index listing but will not run index.php. # # This may also be None, All, or any combination of Indexes, @@ -452,18 +454,18 @@ # IfModule mod_dir.c IfModule mod_php3.c -IfModule mod_php4.c +IfModule mod_php5.c DirectoryIndex index.php index.php3 index.html /IfModule -IfModule !mod_php4.c +IfModule !mod_php5.c DirectoryIndex index.php3 index.html /IfModule /IfModule IfModule !mod_php3.c -IfModule mod_php4.c +IfModule mod_php5.c DirectoryIndex index.php index.html /IfModule -IfModule !mod_php4.c +IfModule !mod_php5.c DirectoryIndex index.html /IfModule /IfModule hrm... no I don't think that's it. I put this in: DirectoryIndex index.php index.html I have php5 install I created this file: test.php ?php print (Hello WorldBR\n); ? But that doesn't work either. Is mod_layout screwing it up? I don't understand what is wrong with it? `php test.php` works fine. Also there is no Module Load/Add in the httpd.conf for php. I can't even find the libraries! But /usr/local/bin/ has php and php-cgi (both executables). Do I need to tell apache how to execute .php files? Not sure you may also be missing the additions to the load and add modules sections. This setup was specifically to run SquirrelMail. I had a working test install and I wanted to add SSL. My first shot was to just reinstall apache-modssl. This required recompiling a single php module. I never got that done so I removed apache, php and squirrel mail and installed (order is important): apache-modssl squirrelmail and let the build for squirrelmail pull in php. In this order I got all the necessary mods to httpd.conf and the php module I needed was rebuilt. If you are facile with make all this can be skipped but I found it quicker to do it this way. Here are the php relate directive in my httpd.conf: : LoadModule php5_modulelibexec/apache/libphp5.so : AddModule mod_php5.c : IfModule mod_php3.c IfModule mod_php5.c DirectoryIndex index.php index.php3 index.html /IfModule IfModule !mod_php5.c DirectoryIndex index.php3 index.html /IfModule /IfModule IfModule !mod_php3.c IfModule mod_php5.c DirectoryIndex index.php index.html /IfModule IfModule !mod_php5.c DirectoryIndex index.html /IfModule /IfModule /IfModule : IfModule mod_php5.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule : #SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire Files ~ \.(cgi|shtml|phtml|php3?)$ SSLOptions +StdEnvVars /Files This last one only if you have SSL (of course). _ Douglas Denault http://www.safeport.com [EMAIL PROTECTED] Voice: 301-469-8766 Fax: 301-469-0601 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
On Tue, 19 Jun 2007, Jack Barnett wrote: FreeBSD 6.2 Apache 1.3.37 (from ports) php 5.2.3 (from ports) on the command line doing `php index.php` works. But if I use it though a web browser it just displays the php code. I installed it like this (extensions to) http://www.mydigitallife.info/2006/04/14/installing-web-server-in-freebsd-60-with-apache-22-mysql-50-and-php-5-part-5/ The only difference is that I'm using 1.3 and not 2.x of Apache. Apache config below Installing 2.x isn't an option yet (test server, still need 1.3) fire2# grep -i php * httpd.conf:AddType application/x-httpd-php .php httpd.conf:AddType application/x-httpd-php-source .phps httpd.conf:IfModule mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.php3 index.html httpd.conf:IfModule !mod_php4.c httpd.conf:DirectoryIndex index.php3 index.html httpd.conf:IfModule !mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.html httpd.conf:IfModule !mod_php4.c httpd.conf:IfModule mod_php3.c httpd.conf: AddType application/x-httpd-php3 .php3 httpd.conf: AddType application/x-httpd-php3-source .php3s httpd.conf:IfModule mod_php4.c httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps I just installed this combination, among the changes to httpd.conf I change pph4--php5 (see below). You are not getting an index file. If you have 'Options +Indexes' browsing will get you an index listing but will not run index.php. # # This may also be None, All, or any combination of Indexes, @@ -452,18 +454,18 @@ # IfModule mod_dir.c IfModule mod_php3.c -IfModule mod_php4.c +IfModule mod_php5.c DirectoryIndex index.php index.php3 index.html /IfModule -IfModule !mod_php4.c +IfModule !mod_php5.c DirectoryIndex index.php3 index.html /IfModule /IfModule IfModule !mod_php3.c -IfModule mod_php4.c +IfModule mod_php5.c DirectoryIndex index.php index.html /IfModule -IfModule !mod_php4.c +IfModule !mod_php5.c DirectoryIndex index.html /IfModule /IfModule ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
doug wrote: On Tue, 19 Jun 2007, Jack Barnett wrote: FreeBSD 6.2 Apache 1.3.37 (from ports) php 5.2.3 (from ports) on the command line doing `php index.php` works. But if I use it though a web browser it just displays the php code. I installed it like this (extensions to) http://www.mydigitallife.info/2006/04/14/installing-web-server-in-freebsd-60-with-apache-22-mysql-50-and-php-5-part-5/ The only difference is that I'm using 1.3 and not 2.x of Apache. Apache config below Installing 2.x isn't an option yet (test server, still need 1.3) fire2# grep -i php * httpd.conf:AddType application/x-httpd-php .php httpd.conf:AddType application/x-httpd-php-source .phps httpd.conf:IfModule mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.php3 index.html httpd.conf:IfModule !mod_php4.c httpd.conf:DirectoryIndex index.php3 index.html httpd.conf:IfModule !mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.html httpd.conf:IfModule !mod_php4.c httpd.conf:IfModule mod_php3.c httpd.conf: AddType application/x-httpd-php3 .php3 httpd.conf: AddType application/x-httpd-php3-source .php3s httpd.conf:IfModule mod_php4.c httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps I just installed this combination, among the changes to httpd.conf I change pph4--php5 (see below). You are not getting an index file. If you have 'Options +Indexes' browsing will get you an index listing but will not run index.php. # # This may also be None, All, or any combination of Indexes, @@ -452,18 +454,18 @@ # IfModule mod_dir.c IfModule mod_php3.c -IfModule mod_php4.c +IfModule mod_php5.c DirectoryIndex index.php index.php3 index.html /IfModule -IfModule !mod_php4.c +IfModule !mod_php5.c DirectoryIndex index.php3 index.html /IfModule /IfModule IfModule !mod_php3.c -IfModule mod_php4.c +IfModule mod_php5.c DirectoryIndex index.php index.html /IfModule -IfModule !mod_php4.c +IfModule !mod_php5.c DirectoryIndex index.html /IfModule /IfModule hrm... no I don't think that's it. I put this in: DirectoryIndex index.php index.html I have php5 install I created this file: test.php ?php print (Hello WorldBR\n); ? But that doesn't work either. Is mod_layout screwing it up? I don't understand what is wrong with it? `php test.php` works fine. Also there is no Module Load/Add in the httpd.conf for php. I can't even find the libraries! But /usr/local/bin/ has php and php-cgi (both executables). Do I need to tell apache how to execute .php files? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
Ivan Carey wrote: Jack Barnett wrote: FreeBSD 6.2 Apache 1.3.37 (from ports) php 5.2.3 (from ports) on the command line doing `php index.php` works. But if I use it though a web browser it just displays the php code. I installed it like this (extensions to) http://www.mydigitallife.info/2006/04/14/installing-web-server-in-freebsd-60-with-apache-22-mysql-50-and-php-5-part-5/ The only difference is that I'm using 1.3 and not 2.x of Apache. Apache config below Installing 2.x isn't an option yet (test server, still need 1.3) fire2# grep -i php * httpd.conf:AddType application/x-httpd-php .php httpd.conf:AddType application/x-httpd-php-source .phps httpd.conf:IfModule mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.php3 index.html httpd.conf:IfModule !mod_php4.c httpd.conf:DirectoryIndex index.php3 index.html httpd.conf:IfModule !mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.html httpd.conf:IfModule !mod_php4.c httpd.conf:IfModule mod_php3.c httpd.conf: AddType application/x-httpd-php3 .php3 httpd.conf: AddType application/x-httpd-php3-source .php3s httpd.conf:IfModule mod_php4.c httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] . Hello Jack, I have 2 servers running one with php4 and one with php5 In the php4 httpd.conf I have: LoadModule php4_modulelibexec/apache/libphp4.so AddModule mod_php4.c # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # IfModule mod_dir.c IfModule mod_php3.c IfModule mod_php4.c DirectoryIndex index.php index.php3 index.html /IfModule IfModule !mod_php4.c DirectoryIndex index.php3 index.html /IfModule /IfModule IfModule !mod_php3.c IfModule mod_php4.c DirectoryIndex index.php index.html /IfModule IfModule !mod_php4.c DirectoryIndex index.html /IfModule /IfModule /IfModule # LanguagePriority allows you to give precedence to some languages # in case of a tie during content negotiation. # # Just list the languages in decreasing order of preference. We have # more or less alphabetized them here. You probably want to change this. # IfModule mod_negotiation.c LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw /IfModule IfModule mod_php3.c AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s /IfModule IfModule mod_php4.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule In the Apache2 using php5 I have in the httpd.conf LoadModule php5_module libexec/apache2/libphp5.so # If the AddEncoding directives above are commented-out, then you # probably should define those extensions to indicate media types: # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps I hope this helps you with your configuration, Regards, Ivan I don't have libphp5.so anywhere in /usr/local (did a find for it). the php5 port is broken? Or do I have to reinstall apache after php5? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
On Jun 20, 2007, at 8:56 PMJun 20, 2007, Jack Barnett wrote: Ivan Carey wrote: I don't have libphp5.so anywhere in /usr/local (did a find for it). the php5 port is broken? Or do I have to reinstall apache after php5? You need to enable build of the php5 apache extension when you build the port - it's not enabled by default. HTH Eric Crist ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
On Tue, 19 Jun 2007 00:04:03 -0500 Jack Barnett [EMAIL PROTECTED] wrote: on the command line doing `php index.php` works. But if I use it though a web browser it just displays the php code. enable mod_status and/or mod_info in Apache and double check that the php module is loaded, and what its name is. I recall there beeing a version where it wasn't mod_php4, so the IfModule directives wouldn't match and not load the right configuration. once you have the correct module name, change the ifModule lines accordingly and reload apache. _ {Beto|Norberto|Numard} Meijome Without vision you may find that you make your way through life by bumping into things. I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, php?
Jack Barnett wrote: FreeBSD 6.2 Apache 1.3.37 (from ports) php 5.2.3 (from ports) on the command line doing `php index.php` works. But if I use it though a web browser it just displays the php code. I installed it like this (extensions to) http://www.mydigitallife.info/2006/04/14/installing-web-server-in-freebsd-60-with-apache-22-mysql-50-and-php-5-part-5/ The only difference is that I'm using 1.3 and not 2.x of Apache. Apache config below Installing 2.x isn't an option yet (test server, still need 1.3) fire2# grep -i php * httpd.conf:AddType application/x-httpd-php .php httpd.conf:AddType application/x-httpd-php-source .phps httpd.conf:IfModule mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.php3 index.html httpd.conf:IfModule !mod_php4.c httpd.conf:DirectoryIndex index.php3 index.html httpd.conf:IfModule !mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.html httpd.conf:IfModule !mod_php4.c httpd.conf:IfModule mod_php3.c httpd.conf: AddType application/x-httpd-php3 .php3 httpd.conf: AddType application/x-httpd-php3-source .php3s httpd.conf:IfModule mod_php4.c httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] . Hello Jack, I have 2 servers running one with php4 and one with php5 In the php4 httpd.conf I have: LoadModule php4_modulelibexec/apache/libphp4.so AddModule mod_php4.c # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # IfModule mod_dir.c IfModule mod_php3.c IfModule mod_php4.c DirectoryIndex index.php index.php3 index.html /IfModule IfModule !mod_php4.c DirectoryIndex index.php3 index.html /IfModule /IfModule IfModule !mod_php3.c IfModule mod_php4.c DirectoryIndex index.php index.html /IfModule IfModule !mod_php4.c DirectoryIndex index.html /IfModule /IfModule /IfModule # LanguagePriority allows you to give precedence to some languages # in case of a tie during content negotiation. # # Just list the languages in decreasing order of preference. We have # more or less alphabetized them here. You probably want to change this. # IfModule mod_negotiation.c LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw /IfModule IfModule mod_php3.c AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .php3s /IfModule IfModule mod_php4.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps /IfModule In the Apache2 using php5 I have in the httpd.conf LoadModule php5_module libexec/apache2/libphp5.so # If the AddEncoding directives above are commented-out, then you # probably should define those extensions to indicate media types: # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps I hope this helps you with your configuration, Regards, Ivan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Apache, php?
FreeBSD 6.2 Apache 1.3.37 (from ports) php 5.2.3 (from ports) on the command line doing `php index.php` works. But if I use it though a web browser it just displays the php code. I installed it like this (extensions to) http://www.mydigitallife.info/2006/04/14/installing-web-server-in-freebsd-60-with-apache-22-mysql-50-and-php-5-part-5/ The only difference is that I'm using 1.3 and not 2.x of Apache. Apache config below Installing 2.x isn't an option yet (test server, still need 1.3) fire2# grep -i php * httpd.conf:AddType application/x-httpd-php .php httpd.conf:AddType application/x-httpd-php-source .phps httpd.conf:IfModule mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.php3 index.html httpd.conf:IfModule !mod_php4.c httpd.conf:DirectoryIndex index.php3 index.html httpd.conf:IfModule !mod_php3.c httpd.conf:IfModule mod_php4.c httpd.conf:DirectoryIndex index.php index.html httpd.conf:IfModule !mod_php4.c httpd.conf:IfModule mod_php3.c httpd.conf: AddType application/x-httpd-php3 .php3 httpd.conf: AddType application/x-httpd-php3-source .php3s httpd.conf:IfModule mod_php4.c httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps httpd.conf: AddType application/x-httpd-php .php httpd.conf: AddType application/x-httpd-php-source .phps ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freeBSD - Apache php configuration
On Friday 22 December 2006 04:27, [EMAIL PROTECTED] wrote: Hi all I want to install php with apache in freebsd unix. I installed apache2 and php 5.2.0. But php file not working and also i want to know the method of running. A long time ago I seem to remember having to do step 15 from http://www.php.net/manual/en/install.unix.apache2.php after installing from the ports. apachectl is the way to start stop and do a few other things to apache (php is probably running as part of apache so you don't have to start/stop it separatly). Whether browser and x windows are needed for running apache and php. If suppose where to find out the tar file and how to install and run. Please help me You don't need X Windows if you have another maching that you have a browser on. -- /Xian I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones. Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freeBSD - Apache php configuration
Xian wrote: On Friday 22 December 2006 04:27, [EMAIL PROTECTED] wrote: Hi all I want to install php with apache in freebsd unix. I installed apache2 and php 5.2.0. But php file not working and also i want to know the method of running. A long time ago I seem to remember having to do step 15 from http://www.php.net/manual/en/install.unix.apache2.php after installing from the ports. apachectl is the way to start stop and do a few other things to apache (php is probably running as part of apache so you don't have to start/stop it separatly). Whether browser and x windows are needed for running apache and php. If suppose where to find out the tar file and how to install and run. Please help me You don't need X Windows if you have another maching that you have a browser on. As Xian said, X-Windows isn't needed, and the less stuff you have on your server the better. Besides, problem symptoms show up more frequently on remote machines than on the serving machine itself. If you want to test it out in a browser though, give lynx or links a shot. They're CLI browsers and links supports Javascript. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
freeBSD - Apache php configuration
Hi all I want to install php with apache in freebsd unix. I installed apache2 and php 5.2.0. But php file not working and also i want to know the method of running. Whether browser and x windows are needed for running apache and php. If suppose where to find out the tar file and how to install and run. Please help me ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Order of installation for Apache, PHP, IMAP, and MySQL
I need to install and configure Apache, PHP, IMAP, and MySQL because I would like to install Group Office which is a groupware application sweet. I need to know if there is a specific order that I need to install the applications listed above. Any help on this would be greatly appreciated. Thank you in advance, Jose ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Order of installation for Apache, PHP, IMAP, and MySQL
Jose Borquez wrote: I need to install and configure Apache, PHP, IMAP, and MySQL because I would like to install Group Office which is a groupware application sweet. I need to know if there is a specific order that I need to install the applications listed above. Any help on this would be greatly appreciated. Thank you in advance, Jose Installing PHP (/usr/ports/lang/php$n) will pull in Apache 1.3 by default, and client libraries for IMAP support and MySQL support when you install (/usr/ports/lang/php$n-extensions). I'm assuming though, that you mean an IMAP *server* and a MySQL *server*; in which case I'd do either of those first, and followup with PHP and php-extensions. In any case, installing should be as simple as moving to the appropriate directory under /usr/ports, and typing (as root) make install clean at a command prompt. Although it'll be boring, I'd suggest sitting in the general vicinity of your terminal, as, if this is a fresh install, you will be prompted for configuration by a curses mode options menu. You can, however, get around this by doing all your config on the command-line; but that's a rather lengthy command string, and might take almost as much time to discover all the perfect values for. The good news: should you desire to reinstall the apps, the configuration should be saved for you. See ports(7) for more information. HTH, Kevin Kinsey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Apache + PHP : Exec format error
I can't get the package WebCalendar-1.0.0 to work; I always get following error in /var/log/httpd-error.log (8)Exec format error: exec of '/usr/local/www/data-dist/WebCalendar/index.php' If I put #!/usr/local/bin/php at the beginning of the index.php it works, however I would like to use the apache module php4_module instead of php as CGI. I'm running 5.4-STABLE with the pkg apache-2.0.54_4 and php4-4.4.0 (Apache Module and CLI). The httpd.conf includes the line LoadModule php4_module libexec/apache2/libphp4.so. Any ideas? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
which apache / php things to install?
I just installed FreeBSD 5.4-RELEASE and am installing a few applications. I need apache with php, but I see many php-related packages (with portupgrade -v php5-\*). So then I tried portupgrade -v php5, but now it wants to know whether I want to use apache2 instead of apache 1.3. I've been using 1.3 on another machine with no problems. Is 2 now ok to use? I saw in /usr/ports that there is apache2, apache20, apache21. Which one of these should I install if I use apache2? What about the other php installation questions (debug and zend multibyte support)? thanks, bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: which apache / php things to install?
On Tue, 9 Aug 2005, bob self wrote: I just installed FreeBSD 5.4-RELEASE and am installing a few applications. I need apache with php, but I see many php-related packages (with portupgrade -v php5-\*). So then I tried portupgrade -v php5, but now it wants to know whether I want to use apache2 instead of apache 1.3. I've been using 1.3 on another machine with no problems. Is 2 now ok to use? I saw in /usr/ports that there is apache2, apache20, apache21. Which one of these should I install if I use apache2? What about the other php installation questions (debug and zend multibyte support)? From your questions I assume you want to run a small webserver for private/testing/experimenting purposes. apache21 is still beta but will do fine for you. You will have to enable apache2 support in php5 then. Everything else can be left with the default options. Don't forget to add apache2_enable=YES to your /etc/rc.conf :-) Regards, Uli. thanks, bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] * * Peter Ulrich Kruppa - Wuppertal - Germany * * ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
jail and apache + php
hi there, i got a jail on fbsd 5.4, it seems to be ok, but after installing php4, my apache13 can't be started. i got this error constantly: httpd in free(): error: junk pointer, too high to make sense without php the apache works well :/ any idea? sz ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
new install of fbsd with apache/php/mysql
I just finished installed 5.3 and am now trying to get apache2, php4, myql4 installed. I run sysinstall to install the packages from ftp. php4 installed, mysql-client installed, but apache2 and mysql-server failed. I get this message when I tried mysql4.1.5 - Add of package mysql-client-4.1.5 aborted, error code 1 - Please check the debug screen for more info press OK Loading of dependent package mysql-client-4.1.5 failed and the same message when trying apache2.0.50_3. I don't know how to view the debug screen so can't provide any more info than those error messages. I just need those 3 apps - apache2, php4 and mysql4 on this box for web developement. Any suggestions? Chip ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: new install of fbsd with apache/php/mysql
You can switch ttys to view output of pkg_add to see any error messages.. or try using the Ports tree. T - Original Message - From: Chip Wiegand [EMAIL PROTECTED] To: FreeBSD List freebsd-questions@freebsd.org Sent: Thursday, March 17, 2005 10:06 AM Subject: new install of fbsd with apache/php/mysql I just finished installed 5.3 and am now trying to get apache2, php4, myql4 installed. I run sysinstall to install the packages from ftp. php4 installed, mysql-client installed, but apache2 and mysql-server failed. I get this message when I tried mysql4.1.5 - Add of package mysql-client-4.1.5 aborted, error code 1 - Please check the debug screen for more info press OK Loading of dependent package mysql-client-4.1.5 failed and the same message when trying apache2.0.50_3. I don't know how to view the debug screen so can't provide any more info than those error messages. I just need those 3 apps - apache2, php4 and mysql4 on this box for web developement. Any suggestions? Chip ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Is there a Complete Package(NOT Ports) for: [Apache+PHP+MySQL+Mod_SSL+Mod_Perl] ?? - newbie+3
Hi all, I just wanted to know if there is available anywhere a Complete Package that is Ready to Go for a FreeBSD Server imlementation that contains: Apache PHP MySQL Mod_SSL Mod_Perl ... before anyone flames, yes I know you can just d/l the ports compile from source! ... Thats not what I am looking for. Tried that found it was too much messing around (compared to the equivalent on Windows 2000) Any suggestions/help is greatly appreciated :)) BTW: thanks to all who replied to my previous questions :)) Regards, DK __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is there a Complete Package(NOT Ports) for: [Apache+PHP+MySQL+Mod_SSL+Mod_Perl] ?? - newbie+3
AFAIK, no. There are several Linux-based packages that include several - though not all - of those components. Not that I've seen for FreeBSD. I'd seriously recommend a source install, especially with the mod_ssl and static mod_perl modules. In my experience there's just too much that usually gets muddled with package-based installs of these components, especially together. A good set of Linux-based instructions are here... http://lamps.efactory.de/e-archive.shtml Or, that's only 5 packages to install. Could just 5 five seperate pkg_adds, and hope for the best. - A http://www.moundalexis.com On Wed, 28 Jul 2004 00:34:11 -0700 (PDT), DK [EMAIL PROTECTED] wrote: Hi all, I just wanted to know if there is available anywhere a Complete Package that is Ready to Go for a FreeBSD Server imlementation that contains: Apache PHP MySQL Mod_SSL Mod_Perl before anyone flames, yes I know you can just d/l the ports compile from source! Thats not what I am looking for. Tried that found it was too much messing around (compared to the equivalent on Windows 2000) Any suggestions/help is greatly appreciated :)) BTW: thanks to all who replied to my previous questions :)) Regards, DK ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is there a Complete Package(NOT Ports) for: [Apache+PHP+MySQL+Mod_SSL+Mod_Perl] ?? - newbie+3
DK wrote: Hi all, I just wanted to know if there is available anywhere a Complete Package that is Ready to Go for a FreeBSD Server imlementation that contains: Apache PHP MySQL Mod_SSL Mod_Perl ... before anyone flames, yes I know you can just d/l the ports compile from source! ... Thats not what I am looking for. Tried that found it was too much messing around (compared to the equivalent on Windows 2000) Any suggestions/help is greatly appreciated :)) BTW: thanks to all who replied to my previous questions :)) Regards, DK Greetings! I don't think there exists such a package, but why don't make your own meta-port that depends on any package you want to install? In the same way the port x11/xorg doesn't install any files by itself, it depends on all packages that are needed to get a useable xorg configuration, the port you make will depend on anything you want! If you think that the configuration is really useful, commit the port, so that others in your present situation may take advantage of it. 1. Make a port, (misc/yourport), depending on Apache, MySQL, Mod_SSL, Mod_Perl, etc... 2. To install from package, run portinstall -P misc/yourport (this will build from source whenever a precompiled package doesn't exist). To learn how to make a port, read the Porter's Handbook at the FreeBSD website (I don't know how to make one, as I've never tried. It just struck me as being a good idea). Hope this helps! -Henrik W Lund ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is there a Complete Package(NOT Ports) for: [Apache+PHP+MySQL+Mod_SSL+Mod_Perl] ?? - newbie+3
In the last episode (Jul 28), DK said: I just wanted to know if there is available anywhere a Complete Package that is Ready to Go for a FreeBSD Server imlementation that contains: Apache PHP MySQL Mod_SSL Mod_Perl $ pkg_add -r apache mysql-server php mod_perl mod_ssl doesn't seem to be a port, whatever it is. -- Dan Nelson [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is there a Complete Package(NOT Ports) for: [Apache+PHP+MySQL+Mod_SSL+Mod_Perl] ?? - newbie+3
On Wed, Jul 28, 2004 at 09:09:49AM -0500, Dan Nelson wrote: In the last episode (Jul 28), DK said: I just wanted to know if there is available anywhere a Complete Package that is Ready to Go for a FreeBSD Server imlementation that contains: Apache PHP MySQL Mod_SSL Mod_Perl $ pkg_add -r apache mysql-server php mod_perl mod_ssl doesn't seem to be a port, whatever it is. Unlike other apache mods, mod_ssl includes a bunch of patches to the base apache, so there isn't a separate mod_ssl port -- you'ld install the apache+mod_ssl package instead. That is if you want Apache-1.3.x. If you want Apache-2.0.x, then the mod_ssl functionality is bundled as one of the core modules. The apache2 package also comes with IPv6 support out of the box. In fact, all of those packages have multiple versions available in the ports tree -- your command line as is would need to be altered to select the appropriate versions of those servers. To the OP -- yes, that's more complicated than it might be, but the complexity is the flip side of flexibility and choice and the philosophy of giving you precise control over your computer. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp6L2OhuS9Hi.pgp Description: PGP signature
Re: Is there a Complete Package(NOT Ports) for: [Apache+PHP+MySQL+Mod_SSL+Mod_Perl] ?? - newbie+3
Henrik W Lund wrote: DK wrote: Hi all, I just wanted to know if there is available anywhere a Complete Package that is Ready to Go for a FreeBSD Server imlementation that contains: Apache PHP MySQL Mod_SSL Mod_Perl ... before anyone flames, yes I know you can just d/l the ports compile from source! ... Thats not what I am looking for. Tried that found it was too much messing around (compared to the equivalent on Windows 2000) Um, there is no equivalent on W2K, but I digress... One thing to remember is that Apache and mod_perl are usually run as two separate instances. You run static Apache off port 80, and dynamic Apache (hence +mod_perl) on port 8000 or whatever, and this is reverse-proxied back through the static server at port 80 (and 8000 is firewalled off from the outside). This results in big savings in memory. mod_perl processes can weigh 80Mb apiece, easily. Standard httpd processes weigh in at about 3Mb. You don't want to tie up an 80Mb process spoonfeeding some luser on a modem. Reverse proxying lets you have a large number of small static processes and only a handful of mod_perl processes. There are also a number of ways you can proxify the dynamic requests, so there's no one-size-fits-all. The easiest way is to do something like: ProxyPass/dyn http://localhost:8000/ ProxyPassReverse /dyn http://localhost:8000/ Then you have to decide who gets the https port. My advice would be let the static handle it. (--enable-ssl) Next, the question of MySQL. I expect you mean that PHP and/or mod_perl needs MySQL support. PHP configure will detect this automatically if you have it installed. In mod_perl, you'll probably want to attack it via Apache::DBI and DBD::Mysql. Finally, you can install mod_perl and PHP and DSO (i.e., loadable modules), after you have your basic installation up and running. (Just remember to --enable-so). The level of PHP processing you plan to do will indicate whether you should be running it directly out of port 80 or proxified from 8000. There are so many ways to put these pieces together, depending on your needs, that there is no simple package that puts them all together. I sympathise with your remark that it's so much easier under W2K. The trouble is, a well-tuned mod_perl installation will run rings around anything IIS/ASP can do, but that comes at a cost of knowing how to set it up. I would recommend investing in the mod_perl book by Stas Beckman and Eric Cholet. http://www.modperlbook.com/ Regards, David ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Apache php mysql
Hi everyone, I'd need some ressources to be sure how to install apache, php, mysql on my FreeBSD box. This is the first time I do it, so I don't really know how to configure the thing. I followed instructions from apache and php to install those but it's not really easy for me to understand how to install MySQL server from their website Apache and php installations seemed to worked out fine but I surely have files to configure now, but I don't know which ones... It would be great if someone knows any ressource about all this setup online? For information I have FreeBSD 4.9-STABLE, Apache 2.0.49, PHP 4.3.6, MySQL 4.0.20. Thanks. razor. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache php mysql
On Thu, May 27, 2004 at 03:28:31PM +0200, RazorOnFreeBSD wrote: Hi everyone, I'd need some ressources to be sure how to install apache, php, mysql on my FreeBSD box. This is the first time I do it, so I don't really know how to configure the thing. I followed instructions from apache and php to install those but it's not really easy for me to understand how to install MySQL server from their website Apache and php installations seemed to worked out fine but I surely have files to configure now, but I don't know which ones... It would be great if someone knows any ressource about all this setup online? For information I have FreeBSD 4.9-STABLE, Apache 2.0.49, PHP 4.3.6, MySQL 4.0.20. Thanks. razor. Installing MySQL should be as easy: # cd /usr/ports/database/mysql40-server/ # make install This should automatically install the mysql-client as a dependency. There are lots of tutorials online about configuring Apache to work with PHP. Just do a few web searches for something like apache php configure, or apache php setup, or even just apache php. Quickly, you'll need to add some lines like these to you httpd.conf file: LoadModule php4_module libexec/apache/libphp4.so AddType application/x-httpd-php .php These lines may not be exact for your setup. To test whether PHP is working create a file in your webroot (probably /usr/local/www/data) with only this in it: ?php phpinfo(); ? If PHP is working you'll get a pretty page back with a lot of information about PHP. Nathan pgplMePoECceH.pgp Description: PGP signature
installing mysql-phpmyadmin-apache-php
I have mysql-5 and apache2 installed and working. I need to install phpmyadmin but it wants to install mysql-4 and apache1. How do I prevent it from installing another version of each app (can I even do this)? Thanks, Chip ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: installing mysql-phpmyadmin-apache-php
I have mysql-5 and apache2 installed and working. I need to install phpmyadmin but it wants to install mysql-4 and apache1. How do I prevent it from installing another version of each app (can I even do this)? I'd just download the phpMyAdmin source from http://www.phpmyadmin.net and install it manually. There's nothing particularly special about the port. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: installing mysql-phpmyadmin-apache-php
On Thu, Apr 15, 2004 at 11:50:04PM -0700, Mike Maltese wrote: I have mysql-5 and apache2 installed and working. I need to install phpmyadmin but it wants to install mysql-4 and apache1. How do I prevent it from installing another version of each app (can I even do this)? I'd just download the phpMyAdmin source from http://www.phpmyadmin.net and install it manually. There's nothing particularly special about the port. Gee. Thanks. Actually, the versions of apache and mysql are controlled through the dependency chain by the PHP port you install. The phpmyadmin port just wants to see that PHP is installed. Setting the following in /etc/make.conf will make your system default to apache2 and mysql-5: APACHE_PORT=www/apache2 WITH_APACHE2= yes WANT_MYSQL_VER= 50 Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: installing mysql-phpmyadmin-apache-php
Hi chip, I have mysql-5 and apache2 installed and working. I need to install phpmyadmin but it wants to install mysql-4 and apache1. How do I prevent it from installing another version of each app (can I even do this)? You get the program from http://www.phpmyadmin.net/ and install manually. It's just a matter of unpacking whichever format you choose to download (tar.gz, tar.bz2) and editing the config file. Voila... Nico ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Where to find apache PHP script mhash function
Have mod_php installed on apache but it does not have the mhash extension function. Where can I find it? Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Where to find apache PHP script mhash function
mhash can be found in the ports : /usr/ports/security/mhash also typing mhash in google gave as first hit the homepage of the mhash. After installing mhash you need to configure mod_php to use it, checkout the makefile for more information. HTH, -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] fbsd_user Verzonden: zaterdag 28 februari 2004 21:22 Aan: [EMAIL PROTECTED] ORG Onderwerp: Where to find apache PHP script mhash function Have mod_php installed on apache but it does not have the mhash extension function. Where can I find it? Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Where to find apache PHP script mhash function
- Original Message From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] ORG [EMAIL PROTECTED] Subject: Where to find apache PHP script mhash function Date: 29/02/04 04:28 Have mod_php installed on apache but it does not have the mhash extension function. Where can I find it? Thanks You can find the mhash from here: BSD port : /usr/ports/security/mhash More info: http://www.freshports.org/security/mhash/ http://schumann.cx/mhash/ cheers -zam4ever- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Where to find apache PHP script mhash function
Thanks I installed the package mhash just now and I had installed the package version of mod_php. What makefile are you talking about to get mod_php to use mhash? -Original Message- From: Remko Lodder [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 3:44 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG Subject: RE: Where to find apache PHP script mhash function mhash can be found in the ports : /usr/ports/security/mhash also typing mhash in google gave as first hit the homepage of the mhash. After installing mhash you need to configure mod_php to use it, checkout the makefile for more information. HTH, -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] fbsd_user Verzonden: zaterdag 28 februari 2004 21:22 Aan: [EMAIL PROTECTED] ORG Onderwerp: Where to find apache PHP script mhash function Have mod_php installed on apache but it does not have the mhash extension function. Where can I find it? Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Where to find apache PHP script mhash function
I mean this Makefile # Instructions on how to enable preferred extensions can be found in the # Makefile of the master port (lang/php4). current directory was /usr/ports/www/mod_php4 in /usr/ports/lang/php4/Makefile snip .if defined(WITH_MHASH) LIB_DEPENDS+= mhash.2:${PORTSDIR}/security/mhash CONFIGURE_ARGS+=--with-mhash=${LOCALBASE} .endif /snip There it is instructed to use mhash in php, (make -DWITH_MHASH) is what i always use :) Cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: fbsd_user [mailto:[EMAIL PROTECTED] Verzonden: zaterdag 28 februari 2004 22:03 Aan: Remko Lodder; [EMAIL PROTECTED] ORG Onderwerp: RE: Where to find apache PHP script mhash function Thanks I installed the package mhash just now and I had installed the package version of mod_php. What makefile are you talking about to get mod_php to use mhash? -Original Message- From: Remko Lodder [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 3:44 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG Subject: RE: Where to find apache PHP script mhash function mhash can be found in the ports : /usr/ports/security/mhash also typing mhash in google gave as first hit the homepage of the mhash. After installing mhash you need to configure mod_php to use it, checkout the makefile for more information. HTH, -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] fbsd_user Verzonden: zaterdag 28 februari 2004 21:22 Aan: [EMAIL PROTECTED] ORG Onderwerp: Where to find apache PHP script mhash function Have mod_php installed on apache but it does not have the mhash extension function. Where can I find it? Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Where to find apache PHP script mhash function
Are you saying there is no way to tell the mod_php package install to use mhash? That I have to delete the mod_pgp package and cvsup the mod_php port config files and them cd into /usr/ports/lang/php4/ and issue the make -DWITH_MHASH install clean command? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Remko Lodder Sent: Saturday, February 28, 2004 4:15 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG Subject: RE: Where to find apache PHP script mhash function I mean this Makefile # Instructions on how to enable preferred extensions can be found in the # Makefile of the master port (lang/php4). current directory was /usr/ports/www/mod_php4 in /usr/ports/lang/php4/Makefile snip .if defined(WITH_MHASH) LIB_DEPENDS+= mhash.2:${PORTSDIR}/security/mhash CONFIGURE_ARGS+=--with-mhash=${LOCALBASE} .endif /snip There it is instructed to use mhash in php, (make -DWITH_MHASH) is what i always use :) Cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: fbsd_user [mailto:[EMAIL PROTECTED] Verzonden: zaterdag 28 februari 2004 22:03 Aan: Remko Lodder; [EMAIL PROTECTED] ORG Onderwerp: RE: Where to find apache PHP script mhash function Thanks I installed the package mhash just now and I had installed the package version of mod_php. What makefile are you talking about to get mod_php to use mhash? -Original Message- From: Remko Lodder [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 3:44 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG Subject: RE: Where to find apache PHP script mhash function mhash can be found in the ports : /usr/ports/security/mhash also typing mhash in google gave as first hit the homepage of the mhash. After installing mhash you need to configure mod_php to use it, checkout the makefile for more information. HTH, -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] fbsd_user Verzonden: zaterdag 28 februari 2004 21:22 Aan: [EMAIL PROTECTED] ORG Onderwerp: Where to find apache PHP script mhash function Have mod_php installed on apache but it does not have the mhash extension function. Where can I find it? Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Where to find apache PHP script mhash function
Well, Actually i do, i pasted this from the Makefile, If i state it correctly, it says that you need to use php4 in /usr/ports/lang/php4, if you want to use other extentions, indeed implying that you need to use that instead of mod_php for things you want to do, But i am not sure if there are other options are available :) Cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: JJB [mailto:[EMAIL PROTECTED] Verzonden: zaterdag 28 februari 2004 22:26 Aan: Remko Lodder; [EMAIL PROTECTED] ORG Onderwerp: RE: Where to find apache PHP script mhash function Are you saying there is no way to tell the mod_php package install to use mhash? That I have to delete the mod_pgp package and cvsup the mod_php port config files and them cd into /usr/ports/lang/php4/ and issue the make -DWITH_MHASH install clean command? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Remko Lodder Sent: Saturday, February 28, 2004 4:15 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG Subject: RE: Where to find apache PHP script mhash function I mean this Makefile # Instructions on how to enable preferred extensions can be found in the # Makefile of the master port (lang/php4). current directory was /usr/ports/www/mod_php4 in /usr/ports/lang/php4/Makefile snip .if defined(WITH_MHASH) LIB_DEPENDS+= mhash.2:${PORTSDIR}/security/mhash CONFIGURE_ARGS+=--with-mhash=${LOCALBASE} .endif /snip There it is instructed to use mhash in php, (make -DWITH_MHASH) is what i always use :) Cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: fbsd_user [mailto:[EMAIL PROTECTED] Verzonden: zaterdag 28 februari 2004 22:03 Aan: Remko Lodder; [EMAIL PROTECTED] ORG Onderwerp: RE: Where to find apache PHP script mhash function Thanks I installed the package mhash just now and I had installed the package version of mod_php. What makefile are you talking about to get mod_php to use mhash? -Original Message- From: Remko Lodder [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 3:44 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG Subject: RE: Where to find apache PHP script mhash function mhash can be found in the ports : /usr/ports/security/mhash also typing mhash in google gave as first hit the homepage of the mhash. After installing mhash you need to configure mod_php to use it, checkout the makefile for more information. HTH, -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] fbsd_user Verzonden: zaterdag 28 februari 2004 21:22 Aan: [EMAIL PROTECTED] ORG Onderwerp: Where to find apache PHP script mhash function Have mod_php installed on apache but it does not have the mhash extension function. Where can I find it? Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Where to find apache PHP script mhash function
SO you are saying that this /usr/ports/lang/php4 is an replacement for mod_php? That it does everything mod_php does plus the extensions can be added. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Remko Lodder Sent: Saturday, February 28, 2004 4:30 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG Subject: RE: Where to find apache PHP script mhash function Well, Actually i do, i pasted this from the Makefile, If i state it correctly, it says that you need to use php4 in /usr/ports/lang/php4, if you want to use other extentions, indeed implying that you need to use that instead of mod_php for things you want to do, But i am not sure if there are other options are available :) Cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: JJB [mailto:[EMAIL PROTECTED] Verzonden: zaterdag 28 februari 2004 22:26 Aan: Remko Lodder; [EMAIL PROTECTED] ORG Onderwerp: RE: Where to find apache PHP script mhash function Are you saying there is no way to tell the mod_php package install to use mhash? That I have to delete the mod_pgp package and cvsup the mod_php port config files and them cd into /usr/ports/lang/php4/ and issue the make -DWITH_MHASH install clean command? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Remko Lodder Sent: Saturday, February 28, 2004 4:15 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG Subject: RE: Where to find apache PHP script mhash function I mean this Makefile # Instructions on how to enable preferred extensions can be found in the # Makefile of the master port (lang/php4). current directory was /usr/ports/www/mod_php4 in /usr/ports/lang/php4/Makefile snip .if defined(WITH_MHASH) LIB_DEPENDS+= mhash.2:${PORTSDIR}/security/mhash CONFIGURE_ARGS+=--with-mhash=${LOCALBASE} .endif /snip There it is instructed to use mhash in php, (make -DWITH_MHASH) is what i always use :) Cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: fbsd_user [mailto:[EMAIL PROTECTED] Verzonden: zaterdag 28 februari 2004 22:03 Aan: Remko Lodder; [EMAIL PROTECTED] ORG Onderwerp: RE: Where to find apache PHP script mhash function Thanks I installed the package mhash just now and I had installed the package version of mod_php. What makefile are you talking about to get mod_php to use mhash? -Original Message- From: Remko Lodder [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 3:44 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG Subject: RE: Where to find apache PHP script mhash function mhash can be found in the ports : /usr/ports/security/mhash also typing mhash in google gave as first hit the homepage of the mhash. After installing mhash you need to configure mod_php to use it, checkout the makefile for more information. HTH, -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] fbsd_user Verzonden: zaterdag 28 februari 2004 21:22 Aan: [EMAIL PROTECTED] ORG Onderwerp: Where to find apache PHP script mhash function Have mod_php installed on apache but it does not have the mhash extension function. Where can I find it? Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Where to find apache PHP script mhash function
In my opinion yes, i use the lang/php4 version myself and i have well configured php settings into my webserver. Cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] fbsd_user Verzonden: zaterdag 28 februari 2004 22:41 Aan: Remko Lodder; [EMAIL PROTECTED] ORG Onderwerp: RE: Where to find apache PHP script mhash function SO you are saying that this /usr/ports/lang/php4 is an replacement for mod_php? That it does everything mod_php does plus the extensions can be added. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Remko Lodder Sent: Saturday, February 28, 2004 4:30 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG Subject: RE: Where to find apache PHP script mhash function Well, Actually i do, i pasted this from the Makefile, If i state it correctly, it says that you need to use php4 in /usr/ports/lang/php4, if you want to use other extentions, indeed implying that you need to use that instead of mod_php for things you want to do, But i am not sure if there are other options are available :) Cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: JJB [mailto:[EMAIL PROTECTED] Verzonden: zaterdag 28 februari 2004 22:26 Aan: Remko Lodder; [EMAIL PROTECTED] ORG Onderwerp: RE: Where to find apache PHP script mhash function Are you saying there is no way to tell the mod_php package install to use mhash? That I have to delete the mod_pgp package and cvsup the mod_php port config files and them cd into /usr/ports/lang/php4/ and issue the make -DWITH_MHASH install clean command? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Remko Lodder Sent: Saturday, February 28, 2004 4:15 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG Subject: RE: Where to find apache PHP script mhash function I mean this Makefile # Instructions on how to enable preferred extensions can be found in the # Makefile of the master port (lang/php4). current directory was /usr/ports/www/mod_php4 in /usr/ports/lang/php4/Makefile snip .if defined(WITH_MHASH) LIB_DEPENDS+= mhash.2:${PORTSDIR}/security/mhash CONFIGURE_ARGS+=--with-mhash=${LOCALBASE} .endif /snip There it is instructed to use mhash in php, (make -DWITH_MHASH) is what i always use :) Cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: fbsd_user [mailto:[EMAIL PROTECTED] Verzonden: zaterdag 28 februari 2004 22:03 Aan: Remko Lodder; [EMAIL PROTECTED] ORG Onderwerp: RE: Where to find apache PHP script mhash function Thanks I installed the package mhash just now and I had installed the package version of mod_php. What makefile are you talking about to get mod_php to use mhash? -Original Message- From: Remko Lodder [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 3:44 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] ORG Subject: RE: Where to find apache PHP script mhash function mhash can be found in the ports : /usr/ports/security/mhash also typing mhash in google gave as first hit the homepage of the mhash. After installing mhash you need to configure mod_php to use it, checkout the makefile for more information. HTH, -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene mrtg.grunn.org Dutch mirror of MRTG -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] fbsd_user Verzonden: zaterdag 28 februari 2004 21:22 Aan: [EMAIL PROTECTED] ORG Onderwerp: Where to find apache PHP script mhash function Have mod_php installed on apache but it does not have the mhash extension function. Where can I find it? Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED
Re: Where to find apache PHP script mhash function
SO you are saying that this /usr/ports/lang/php4 is an replacement for mod_php? That it does everything mod_php does plus the extensions can be added. lang/php4 is a master port. You can read lang/php4/Makefile to see what make definitions that are available (like -DWITH_MHASH). I wouldn't recommend trying to build mod_php4 in lang/php4 because it sounds like you're confused already. Just go to www/mod_php4 and do a make -DWITH_MHASH (+ whatever other features you want) install. Really though, I don't see why you don't just use the ncurses menu. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Where to find apache PHP script mhash function {RTFM answer}
fbsd_user wrote: Have mod_php installed on apache but it does not have the mhash extension function. Where can I find it? Thanks www.php.net/mhash Kevin Kinsey DaleCo, S.P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
apache+php
GASPOFWIPV6LAB# uname -a FreeBSD GASPOFWIPV6LAB 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Thu Jan 1 08:04:10 CET 2004 [EMAIL PROTECTED]:/usr/src/sys/compile/GASPO i386 i have install from pkg_add the packages: apache-1.3.28 mysql-client-4.0.15 PHP ---error-- when i do : apachectl start usr/local/sbin/apachectl start: httpd could not be started -- so,i have test also to compile httpd on my fbsd from apache.org, and if i compile it without modules apache start,if i compile with all modules like php cgi,apache cannot be start,the only error is:(var log) [Tue Jan 6 20:25:56 2004] [alert] mod_unique_id: unable to gethostbyname(GASPOFWIPV6LAB) any suggest? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: apache+php
[EMAIL PROTECTED] wrote: GASPOFWIPV6LAB# uname -a FreeBSD GASPOFWIPV6LAB 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Thu Jan 1 08:04:10 CET 2004 [EMAIL PROTECTED]:/usr/src/sys/compile/GASPO i386 i have install from pkg_add the packages: apache-1.3.28 mysql-client-4.0.15 PHP ---error-- when i do : apachectl start usr/local/sbin/apachectl start: httpd could not be started -- so,i have test also to compile httpd on my fbsd from apache.org, and if i compile it without modules apache start,if i compile with all modules like php cgi,apache cannot be start,the only error is:(var log) [Tue Jan 6 20:25:56 2004] [alert] mod_unique_id: unable to gethostbyname(GASPOFWIPV6LAB) any suggest? Well, that is a DNS type issue. Give your host a name either in DNS or /etc/resolv.conf, and try again. Or, disable mod_unique_id. I would hesitate in saying that this will fix your problem, though; that's just an alert. Perhaps something else is wrong as well. I generally prefer to install apache/PHP/MySQL from the ports tree, SQL first, PHP last. Works pretty well; haven't had many issues since I started doing it that way. HTH, Kevin Kinsey ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
I'm having a hell of a time with mysql/apache/php
I installed 5.1 and need to install apache2/mysql/php. I did this a month ago and it worked great. Now I cannot get any of them to install. (I'm using the same cd, on a computer that is the same as the previous one). The errors keep coming back to the compiler. It says Checking if conversion of longlong to float works... segmentation fault (core dumped) no configure: error: your compiler cannot convert a longlong value to a float. If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try again I have tried to upgrade to egcs 1.0.3 but it fails also - it's marked as broken bad c++ code. Any suggestions on what to do now? -- Chip ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: I'm having a hell of a time with mysql/apache/php
[EMAIL PROTECTED] wrote: I installed 5.1 and need to install apache2/mysql/php. I did this a month ago and it worked great. Now I cannot get any of them to install. (I'm using the same cd, on a computer that is the same as the previous one). The errors keep coming back to the compiler. It says Checking if conversion of longlong to float works... segmentation fault (core dumped) no configure: error: your compiler cannot convert a longlong value to a float. If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try again I have tried to upgrade to egcs 1.0.3 but it fails also - it's marked as broken bad c++ code. Any suggestions on what to do now? -- Chip There is a call to close(2) in one of the mysql files that must be changed to fclose(3). I had the same problem. Refer to http://lists.freebsd.org/pipermail/freebsd-current/2003-June/004462.html I'll take a quick look at see if I can figure out which file it is KDK ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: I'm having a hell of a time with mysql/apache/php
[EMAIL PROTECTED] wrote: I installed 5.1 and need to install apache2/mysql/php. I did this a month ago and it worked great. Now I cannot get any of them to install. (I'm using the same cd, on a computer that is the same as the previous one). The errors keep coming back to the compiler. It says Checking if conversion of longlong to float works... segmentation fault (core dumped) no configure: error: your compiler cannot convert a longlong value to a float. If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try again I have tried to upgrade to egcs 1.0.3 but it fails also - it's marked as broken bad c++ code. Any suggestions on what to do now? -- Chip ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] The file is the configure script for the mysql323-client. /usr/ports/databases/mysql323-client/work/somedir/configure (I cleaned after the last build, so don't have the exact path, sorry.) KDK ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, PHP, and SquirrelMail
Thanks for the Help! What I did was a deinstall on SquirrelMail and installed it through the ports. Everything appears to be working fine now. The only other question I have at the moment is how do I get Squirrel mail to read Qmail? Can't I setup VADMIN for virtual domain and user setup? From: Robin Schoonover [EMAIL PROTECTED] To: Neil Hawkins [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: Apache, PHP, and SquirrelMail Date: Tue, 4 Nov 2003 20:55:10 -0700 On Wed, 05 Nov 2003 03:44:04 +, Neil Hawkins [EMAIL PROTECTED] wrote: I am new to FreeBSD and am trying to figure a few things out. I have installed QMAIL, APACHE, PHP4, and SquirrelMail. Apache seems to be working fine because I can browse the directory lising for /usr/local/www/data folders. However, when I try to browse the SquirrelMail folder, it just displays the text code of the index.php file. I am assuming that PHP4 is either not installed correctly, not running, or not configured appropriately. Can someone help me out here? You need to tell apache about mod_php4. In apache2, I have these extra lines in the configuration file. LoadModule php4_modulelibexec/apache2/libphp4.so DirectoryIndex index.html index.html.var index.php AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps You don't want to have 'AddHandler php .php' in httpd.conf In an earlier version of php4, I did have that and it worked fine, but when I upgraded php4 it stopped working (showed code only like it is for you), so I had to take out that line. -- Robin Schoonover (aka End) # # Actual newspaper headline: # Something Went Wrong in Jet Crash, Expert Says ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] _ Is your computer infected with a virus? Find out with a FREE computer virus scan from McAfee. Take the FreeScan now! http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Apache, PHP, and SquirrelMail
I am new to FreeBSD and am trying to figure a few things out. I have installed QMAIL, APACHE, PHP4, and SquirrelMail. Apache seems to be working fine because I can browse the directory lising for /usr/local/www/data folders. However, when I try to browse the SquirrelMail folder, it just displays the text code of the index.php file. I am assuming that PHP4 is either not installed correctly, not running, or not configured appropriately. Can someone help me out here? _ Great deals on high-speed Internet access as low as $26.95. https://broadband.msn.com (Prices may vary by service area.) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, PHP, and SquirrelMail
On Wed, 05 Nov 2003 03:44:04 +, Neil Hawkins [EMAIL PROTECTED] wrote: I am new to FreeBSD and am trying to figure a few things out. I have installed QMAIL, APACHE, PHP4, and SquirrelMail. Apache seems to be working fine because I can browse the directory lising for /usr/local/www/data folders. However, when I try to browse the SquirrelMail folder, it just displays the text code of the index.php file. I am assuming that PHP4 is either not installed correctly, not running, or not configured appropriately. Can someone help me out here? You need to tell apache about mod_php4. In apache2, I have these extra lines in the configuration file. LoadModule php4_modulelibexec/apache2/libphp4.so DirectoryIndex index.html index.html.var index.php AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps You don't want to have 'AddHandler php .php' in httpd.conf In an earlier version of php4, I did have that and it worked fine, but when I upgraded php4 it stopped working (showed code only like it is for you), so I had to take out that line. -- Robin Schoonover (aka End) # # Actual newspaper headline: # Something Went Wrong in Jet Crash, Expert Says ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache, PHP, and SquirrelMail
I looked at the files you had mentioned and noticed that all of those changes are already there. Do you think I should upgrade to apache2 and see what happens, or deinstall and reinstall php4? From: Robin Schoonover [EMAIL PROTECTED] To: Neil Hawkins [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: Apache, PHP, and SquirrelMail Date: Tue, 4 Nov 2003 20:55:10 -0700 On Wed, 05 Nov 2003 03:44:04 +, Neil Hawkins [EMAIL PROTECTED] wrote: I am new to FreeBSD and am trying to figure a few things out. I have installed QMAIL, APACHE, PHP4, and SquirrelMail. Apache seems to be working fine because I can browse the directory lising for /usr/local/www/data folders. However, when I try to browse the SquirrelMail folder, it just displays the text code of the index.php file. I am assuming that PHP4 is either not installed correctly, not running, or not configured appropriately. Can someone help me out here? You need to tell apache about mod_php4. In apache2, I have these extra lines in the configuration file. LoadModule php4_modulelibexec/apache2/libphp4.so DirectoryIndex index.html index.html.var index.php AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps You don't want to have 'AddHandler php .php' in httpd.conf In an earlier version of php4, I did have that and it worked fine, but when I upgraded php4 it stopped working (showed code only like it is for you), so I had to take out that line. -- Robin Schoonover (aka End) # # Actual newspaper headline: # Something Went Wrong in Jet Crash, Expert Says ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] _ Great deals on high-speed Internet access as low as $26.95. https://broadband.msn.com (Prices may vary by service area.) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
apache / php problem
Hi all, Since I do have php4 running and phpinfo() tells me that it does, Sites that I put into my root dir of Apache are not parsing their variables. The index pages are displayed properly, since they don't require any vars to be passed, but every other sub-pages (e.g. index.php?sub=2) don't do anything, the normal index.php is displayed. The path to php.ini reads /usr/local/etc/php.ini , if I understand correct it gets read then. I couldn't find any other reason for this to not work. Thanks for any help, Holger ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: apache / php problem
H. Bartel wrote: Hi all, Since I do have php4 running and phpinfo() tells me that it does, Sites that I put into my root dir of Apache are not parsing their variables. The index pages are displayed properly, since they don't require any vars to be passed, but every other sub-pages (e.g. index.php?sub=2) don't do anything, the normal index.php is displayed. The path to php.ini reads /usr/local/etc/php.ini , if I understand correct it gets read then. I couldn't find any other reason for this to not work. Thanks for any help, Holger If you have just updated to PHP4 from 3, be advised that the register_globals handle in php.ini is now OFF by default, and therefore any code of the type include $sub; should now read include $_GET['sub']; This might be the problem. See the FAQ's at www.php.net or www.phpbuilder.com/board for details. HTH, Kevin Kinsey ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: apache / php problem
On 09/22/2003 11:26 AM [EMAIL PROTECTED] (Kevin D. Kinsey, DaleCo, S.P.) wrote: If you have just updated to PHP4 from 3, be advised that the register_globals handle in php.ini is now OFF by default, and therefore any code of the type include $sub; should now read include $_GET['sub']; I thought about this before, but it works on my apache set up on the mac. I now changed the php-code and it works perfectly again. I'll keep Johns tip of reinstalling the modules one after one in mind though - I'll probably run in new problems sometime soon... ;) Thanks, Holger ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD+Apache+PHP+GD
Denis wrote: Hi! I have installed Apache 1.3.27 and PHP4. Does anybody know how can I turn on the GD library support? -- Denis Bolotnov, Russia. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hey there Denis, When you installed PHP did you tell it to have GD support? You can check by creating a page that has the phpinfo() function in it. It should report something like this. gd GD Support enabled GD Version bundled (2.0.12 compatible) FreeType Support enabled FreeType Linkage with freetype GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled If it doesn't then you either overlooked GD support. If I recall recall, installing PHP from ports asks you want you want as far as GD support. HTH ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD+Apache+PHP+GD
Hi! I have installed Apache 1.3.27 and PHP4. Does anybody know how can I turn on the GD library support? -- Denis Bolotnov, Russia. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Apache + PHP Issue
Hello, I just installed the mod_php4 + apache ports and when I create a .php file in a directory say called test it doesn't ever want to load the script it wants me to save it on the computer. http://bsdsys.dyndns.org/test/ when you click on test.php it wants to Save it not load it. Whats goin on here? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Apache + PHP Issue
did you put AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps in the httpd.conf file as it tells you to at the end of the php port install? Did you restart apache? -Original Message- From: bryan cassidy [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 9:40 AM To: [EMAIL PROTECTED] Subject: Apache + PHP Issue Hello, I just installed the mod_php4 + apache ports and when I create a .php file in a directory say called test it doesn't ever want to load the script it wants me to save it on the computer. http://bsdsys.dyndns.org/test/ when you click on test.php it wants to Save it not load it. Whats goin on here? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] This email communication is intended as a private communication for the sole use of the primary addressee and those individuals listed for copies in the original message. The information contained in this email is private and confidential and if you are not an intended recipient you are hereby notified that copying, forwarding or other dissemination or distribution of this communication by any means is prohibited. If you are not specifically authorized to receive this email and if you believe that you received it in error please notify the original sender immediately. We honour similar requests relating to the privacy of email communications. Cette communication par courrier électronique est une communication privée à l'usage exclusif du destinataire principal ainsi que des personnes dont les noms figurent en copie. Les renseignements contenus dans ce courriel sont confidentiels et si vous n'êtes pas le destinataire prévu, vous êtes avisé, par les présentes que toute reproduction, tout transfert ou toute autre forme de diffusion de cette communication par quelque moyen que ce soit est interdit. Si vous n'êtes pas spécifiquement autorisé à recevoir ce courriel ou si vous croyez l'avoir reçu par erreur, veuillez en aviser l'expéditeur original immédiatement. Nous respectons les demandes similaires qui touchent la confidentialité des communications par courrier électronique. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache + PHP Issue
Hi, Did you add these lines in the httpd.conf file. IfModule mod_php4.c AddType application/x-httpd-php .php .php3 .php4 AddType application/x-httpd-php-source .phps .php3s .php4s /IfModule Regards SSR From: bryan cassidy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Apache + PHP Issue Date: Thu, 26 Jun 2003 08:39:54 -0700 (PDT) Hello, I just installed the mod_php4 + apache ports and when I create a .php file in a directory say called test it doesn't ever want to load the script it wants me to save it on the computer. http://bsdsys.dyndns.org/test/ when you click on test.php it wants to Save it not load it. Whats goin on here? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] _ Attention NRIs! Send money home in a jiffy. http://server1.msn.co.in/msnleads/citibankrca/citibankrca2.asp ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: apache - php problem
Hi! My apache and php has been working fine for some time. All of a sudden it gives me this error in the log; [Wed Feb 26 16:56:07 2003] [notice] Accept mutex: flock (Default: flock) and php scripts will not execute. Whatever the problem is, this is not it. Starting with I-dont-remember-exactly-which version of Apache it always gives this message. All my Apache 1.3.27 servers do it and PHP works just fine. -- Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/ * This would easier understand fewer had omitted. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Apache,PHP and FreeBSD
Hello everyone. I have been messing around with html lately and think its pretty cool. I want to start using PHP with apache and buy my own domain. My question is this: What is a good site to get domains from that has a reasonable amount of space and doesnt cost too much? Does anyone know of any good tutorials online for PHP,Apache and FreeBSD? Of course I will be using this on my freebsd machine so docs or tutorials about this related to freebsd would be nice. I am going to start working on this tomorrow sometime so I would appreciate some info. thanks --- E-Mail: Bryan Cassidy [EMAIL PROTECTED] Operating System: FreeBSD 4.6.2 Gaim: bsdsys Yahoo Messenger: bsdsys Please do not simply Reply-To: Bryan Cassidy [EMAIL PROTECTED] It is OK to Cc: me as long as you send the Reply back To: the original mailing lists. I have put alot of time in setting up filters so please don't simply reply to me unless I tell you to or send you one directly. _ | ___| __ ___ ___| __ ) ___|| _ \ | |_ | '__/ _ \/ _ \ _ \___ \| | | | | _|| | | __/ __/ |_) |__) | |_| | |_| |_| \___|\___|//|/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Apache,PHP and FreeBSD
On Friday 01 November 2002 15:32, Bryan Cassidy wrote: Hello everyone. I have been messing around with html lately and think its pretty cool. I want to start using PHP with apache and buy my own domain. My question is this: What is a good site to get domains from that has a reasonable amount of space and doesnt cost too much? Does anyone know of I'm confused, are you wishing to buy a webhosting account or run it yourself? any good tutorials online for PHP,Apache and FreeBSD? Of course I will be using this on my freebsd machine so docs or tutorials about this related to freebsd would be nice. I am going to start working on this tomorrow s ometime so I would appreciate some info. thanks Setting it up? It's fairly straight forwarding installing from ports and configuring httpd.conf and php.ini to your likeing. --- E-Mail: Bryan Cassidy [EMAIL PROTECTED] Operating System: FreeBSD 4.6.2 Gaim: bsdsys Yahoo Messenger: bsdsys Please do not simply Reply-To: Bryan Cassidy [EMAIL PROTECTED] It is OK to Cc: me as long as you send the Reply back To: the original mailing lists. I have put alot of time in setting up filters so please don't simply reply to me unless I tell you to or send you one directly. _ | ___| __ ___ ___| __ ) ___|| _ \ | | |_ | '__/ _ \/ _ \ _ \___ \| | | | | | _|| | | __/ __/ |_) |__) | |_| | |_| |_| \___|\___|//|/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Apache,PHP and FreeBSD
/usr/ports/www/mod_php4/ I want to host (or whatever) the site myself. I think it would be a good learning experience for me. I know where apache is in the ports but where is php? On Fri, 1 Nov 2002 17:48:17 -0500 david [EMAIL PROTECTED] wrote: On Friday 01 November 2002 15:32, Bryan Cassidy wrote: Hello everyone. I have been messing around with html lately and think its pretty cool. I want to start using PHP with apache and buy my own domain. My question is this: What is a good site to get domains from that has a reasonable amount of space and doesnt cost too much? Does anyone know of I'm confused, are you wishing to buy a webhosting account or run it yoursel f? any good tutorials online for PHP,Apache and FreeBSD? Of course I will be using this on my freebsd machine so docs or tutorials about this related to freebsd would be nice. I am going to start working on this tomorrow s ometime so I would appreciate some info. thanks Setting it up? It's fairly straight forwarding installing from ports and configuring httpd.conf and php.ini to your likeing. - -- E-Mail: Bryan Cassidy [EMAIL PROTECTED] Operating System: FreeBSD 4.6.2 Gaim: bsdsys Yahoo Messenger: bsdsys Please do not simply Reply-To: Bryan Cassidy [EMAIL PROTECTED] It is OK to Cc: me as long as you send the Reply back To: the original mailing lists. I have put alot of time in setting up filters so please don't simply reply to me unless I tell you to or send you one directly. _ | ___| __ ___ ___| __ ) ___|| _ \ | | |_ | '__/ _ \/ _ \ _ \___ \| | | | | | _|| | | __/ __/ |_) |__) | |_| | |_| |_| \___|\___|//|/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message - -- E-Mail: Bryan Cassidy [EMAIL PROTECTED] Operating System: FreeBSD 4.6.2 Gaim: bsdsys Yahoo Messenger: bsdsys Please do not simply Reply-To: Bryan Cassidy [EMAIL PROTECTED] It is OK to Cc: me as long as you send the Reply back To: the original mailing lists. I have put alot of time in setting up filters so please don't simply reply to me unless I tell you to or send you one directly. _ | ___| __ ___ ___| __ ) ___|| _ \ | |_ | '__/ _ \/ _ \ _ \___ \| | | | | _|| | | __/ __/ |_) |__) | |_| | |_| |_| \___|\___|//|/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Apache,PHP and FreeBSD
And, while we're on that subject: To find something in the ports collection, do this: $cd /usr/ports $make search key=(keyword) ...in your case, 'php' or 'mod_php' should have done the trick. Kevin Kinsey DaleCo, S.P. - Original Message - From: Mike Hogsett [EMAIL PROTECTED] To: Bryan Cassidy [EMAIL PROTECTED] Cc: david [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, November 01, 2002 5:07 PM Subject: Re: Apache,PHP and FreeBSD /usr/ports/www/mod_php4/ I want to host (or whatever) the site myself. I think it would be a good learning experience for me. I know where apache is in the ports but where is php? On Fri, 1 Nov 2002 17:48:17 -0500 david [EMAIL PROTECTED] wrote: On Friday 01 November 2002 15:32, Bryan Cassidy wrote: Hello everyone. I have been messing around with html lately and think its pretty cool. I want to start using PHP with apache and buy my own domain. My question is this: What is a good site to get domains from that has a reasonable amount of space and doesnt cost too much? Does anyone know of I'm confused, are you wishing to buy a webhosting account or run it yoursel f? any good tutorials online for PHP,Apache and FreeBSD? Of course I will be using this on my freebsd machine so docs or tutorials about this related to freebsd would be nice. I am going to start working on this tomorrow s ometime so I would appreciate some info. thanks Setting it up? It's fairly straight forwarding installing from ports and configuring httpd.conf and php.ini to your likeing. --- -- -- E-Mail: Bryan Cassidy [EMAIL PROTECTED] Operating System: FreeBSD 4.6.2 Gaim: bsdsys Yahoo Messenger: bsdsys Please do not simply Reply-To: Bryan Cassidy [EMAIL PROTECTED] It is OK to Cc: me as long as you send the Reply back To: the original mailing lists. I have put alot of time in setting up filters so please don't simply reply to me unless I tell you to or send you one directly. _ | ___| __ ___ ___| __ ) ___|| _ \ | | |_ | '__/ _ \/ _ \ _ \___ \| | | | | | _|| | | __/ __/ |_) |__) | |_| | |_| |_| \___|\___|//|/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message --- -- -- E-Mail: Bryan Cassidy [EMAIL PROTECTED] Operating System: FreeBSD 4.6.2 Gaim: bsdsys Yahoo Messenger: bsdsys Please do not simply Reply-To: Bryan Cassidy [EMAIL PROTECTED] It is OK to Cc: me as long as you send the Reply back To: the original mailing lists. I have put alot of time in setting up filters so please don't simply reply to me unless I tell you to or send you one directly. _ | ___| __ ___ ___| __ ) ___|| _ \ | |_ | '__/ _ \/ _ \ _ \___ \| | | | | _|| | | __/ __/ |_) |__) | |_| | |_| |_| \___|\___|//|/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Apache,PHP and FreeBSD
To find something in the ports collection, do this: $cd /usr/ports $make search key=(keyword) ...in your case, 'php' or 'mod_php' should have done the trick. Although in cases of libraries (or similar ports) where many other ports depend on it this can return way too many results. In these cases $make search name=(name) may workbetter. - Mike To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Apache,PHP and FreeBSD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 (11.01.2002 @ 1539 PST): DaleCo Help Desk said, in 3.9K: And, while we're on that subject: To find something in the ports collection, do this: $cd /usr/ports $make search key=(keyword) ...in your case, 'php' or 'mod_php' should have done the trick. end of Re: Apache,PHP and FreeBSD from DaleCo Help Desk Mr. Desk - You may be interested in a really neat port search tool that exists but isn't well marketed. check out /usr/ports/Tools/scripts/portsearch and its documentation at /usr/ports/Tools/scripts/README.portsearch. - -Adam - -- Adam Weinberger [EMAIL PROTECTED] [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE9wxRao8KM2ULHQ/0RAh8TAJ9wtA5DJHMsVvaEjVPotAmQ1a5nGQCgs4KP Xy0W5ZFD09kO1l2n0Y7UqWk= =mSO6 -END PGP SIGNATURE- To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Apache,PHP and FreeBSD
In addition to the other comments, it would be worth your time to browse the following sites (some PHP, some general freebsd tutorials that have apache/php stuff on them) www.freebsddiary.org www.zend.com www.php.net www.phpbuilder.com have fun! On Fri, 1 Nov 2002, Bryan Cassidy wrote: Hello everyone. I have been messing around with html lately and think its pretty cool. I want to start using PHP with apache and buy my own domain. My question is this: What is a good site to get domains from that has a reasonable amount of space and doesnt cost too much? Does anyone know of any good tutorials online for PHP,Apache and FreeBSD? Of course I will be using this on my freebsd machine so docs or tutorials about this related to freebsd would be nice. I am going to start working on this tomorrow sometime so I would appreciate some info. thanks --- E-Mail: Bryan Cassidy [EMAIL PROTECTED] Operating System: FreeBSD 4.6.2 Gaim: bsdsys Yahoo Messenger: bsdsys Please do not simply Reply-To: Bryan Cassidy [EMAIL PROTECTED] It is OK to Cc: me as long as you send the Reply back To: the original mailing lists. I have put alot of time in setting up filters so please don't simply reply to me unless I tell you to or send you one directly. _ | ___| __ ___ ___| __ ) ___|| _ \ | |_ | '__/ _ \/ _ \ _ \___ \| | | | | _|| | | __/ __/ |_) |__) | |_| | |_| |_| \___|\___|//|/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Apache,PHP and FreeBSD
Adam Weinberger wrote: You may be interested in a really neat port search tool that exists but isn't well marketed. check out /usr/ports/Tools/scripts/portsearch and its documentation at /usr/ports/Tools/scripts/README.portsearch. Very nice tools indeed and not just the portsearch one! Thats the kind I have been looking for. How come they are no references anywhere though? consistency check for example is a very good one but that's another topic anyway, thanks. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Apache,PHP and FreeBSD
Well, lol. I didn't think I would get such quick responses from people. I am checking into everything everyones told me. Thanks for all the quick info on this. I really appreciate it. On Fri, 1 Nov 2002 16:45:23 -0800 (PST) Philip Hallstrom [EMAIL PROTECTED] wrote: In addition to the other comments, it would be worth your time to browse the following sites (some PHP, some general freebsd tutorials that have apache/php stuff on them) www.freebsddiary.org www.zend.com www.php.net www.phpbuilder.com have fun! --- E-Mail: Bryan Cassidy [EMAIL PROTECTED] Operating System: FreeBSD 4.6.2 Gaim: bsdsys Yahoo Messenger: bsdsys Please do not simply Reply-To: Bryan Cassidy [EMAIL PROTECTED] It is OK to Cc: me as long as you send the Reply back To: the original mailing lists. I have put alot of time in setting up filters so please don't simply reply to me unless I tell you to or send you one directly. _ | ___| __ ___ ___| __ ) ___|| _ \ | |_ | '__/ _ \/ _ \ _ \___ \| | | | | _|| | | __/ __/ |_) |__) | |_| | |_| |_| \___|\___|//|/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message