PHP APC installation problem on OBSD 5.0
Hi all, I am trying to install the APC extension for PHP on my OBSD server. Steps taken: pkg_add pecl-APC-3.1.7p0.tgz which works fine When I use pkg_info to check, it tells me to create a symbolic link from /etc/php-${PV}.sample/${MODULE_NAME}.ini to /etc/php-${PV}/${MODULE_NAME}.ini however, there is no ini file installed in the .sample directory. Using pkg_info with the -L option lists an apc.so file in /usr/local/lib/php-5.2/modules/apc.so, but the PHP version I'm using is 5.3. Therefore I copied the apc.so file to /usr/local/lib/php-5.3/modules but I am not sure that's the right thing to do. I have created a phpinfo page and it tells me that the ini files parsed contain (among others) /etc/php-5.3/apc.ini so that looks ok. My /etc/php-5.3/apc.ini file contains just three lines: extension=apc.so apc.enabled=1 apc.shm_size=30 As I understand it, my phpinfo page should list a distinct apc section in which its settings are listed. This is not the case. Please help me getting APC set up, as I am stuck at this point. If you need any configuration file contents or log files, just let me know. Thanks in advance, hiro
Re: rotating apache logs
Hello Peter below a small piece of code i found somewhere. It works but mayby you wanna fix something. Add in httpd.conf LogFormat %h %v %u %t \%r\ %s %b \%{Referer}i\ combined . CustomLog | PATH_TO_ROTATELOGSDAY YOUR_LOGFILE combined snip /* * Simple program to rotate Apache logs without having to kill the server. * * Contributed by Ben Laurie [EMAIL PROTECTED] * * 12 Mar 1996 */ #define BUFSIZE 65536 #define MAX_PATH1024 #include time.h #include errno.h #include stdio.h #include fcntl.h #include sys/timeb.h int main (int argc, char **argv) { char buf[BUFSIZE], buf2[MAX_PATH]; int nLogFD = -1; int nRead; int LogDay=-1; char *szLogRoot; time_t curtime; struct tm *curtm; char curtimestr[20]; if (argc != 2) { fprintf(stderr, %s logfile\n\n, argv[0]); #ifdef OS2 fprintf(stderr, Add this:\n\nTransferLog \|%s.exe /some/where \\n\n, argv[0]); #else fprintf(stderr, Add this:\n\nTransferLog \|%s /some/where \\n\n, argv[0]); #endif fprintf(stderr, to httpd.conf. \n\nThe generated name will be /some/where.mm \n where mmm is the year and month. \n At the end of each month a new log is started.\n); exit(1); } szLogRoot = argv[1]; for (;;) { nRead = read(0, buf, sizeof buf); if (nRead == 0) exit(3); if (nRead 0) if (errno != EINTR) exit(4); curtime=time(NULL); curtm=localtime(curtime); if (nLogFD = 0 (curtm-tm_mday != LogDay || nRead 0)) { close(nLogFD); nLogFD = -1; } if (nLogFD 0) { LogDay=curtm-tm_mday; sprintf(curtimestr, %04d%02d%02d, 1900 + curtm-tm_year, curtm-tm_mon+1, curtm-tm_mday); sprintf(buf2, %s.%s, szLogRoot, curtimestr); nLogFD = open(buf2, O_WRONLY | O_CREAT | O_APPEND, 0666); if (nLogFD 0) { perror(buf2); exit(2); } } if (write(nLogFD, buf, nRead) != nRead) { perror(buf2); exit(5); } } } -- GMX Produkte empfehlen und ganz einfach Geld verdienen! Satte Provisionen f|r GMX Partner: http://www.gmx.net/de/go/partner
Re: Best Dual AMD Opteron Motherboard for OpenBSD Found??
Hi I m running the TYAN S2885ANRF (Thunder K8W AMD 8000 Chipset) with OpenBSD 3.7/3.8, and it works :) Hello, What does anyone think about this M/B or recommendations for others? I have found one recommendation on BSDForums.org for this dual AMD Opteron M/B: tomek11-16-2004, 05:17 PM I newer use this motherboard but it looks reasonably. TYAN Thunder K8SR (S2881G2NR) AMD-8131 Chipset Server Motherboard For Dual AMD Opteron CPU 940-pin Socket Processor -RETAIL (http://www.tyan.com/products/html/thunderk8sr.html) It's for dual Opteron. -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen f|r GMX Partner: http://www.gmx.net/de/go/partner
Re: OpenBSD's 10th birthday
Happy Birthday from germany! Thanks to all OpenBSD developers and all other ppls helping OpenBSD! -- 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail +++ GMX - die erste Adresse f|r Mail, Message, More +++