apache2 php5 mysql4 problems
I have been successfuly running apache2 as a web server with php5 as a module. Recently I needed access to a database so I tried to upgrade my system by adding mysql4 as the database server. I had installed apache2 and php5 from the ports. Previously I would install php5-extensions to build the mysql module for php. After failing get the resulting php to recognize the mysql_ database calls in php I noticed that the php5-extensions no longer build the mysql extensions. I have tried various things. The most successful was to configure php with the --with-mysql option. However this did not completelty solve my problem. While database access was enabled from a php script, when I use the same codee in a web page to access the same database, my browser pops up a window asking if I want to save the file to disk or search for a program to deal with the file (suggestion Dreamweaver since it a .php file). Does anybody have the sequence of build commands for making a apache2 - php5 - mysql, a working web server environment? I am running 5.4 With thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: NFS question
Bingo! Lowell Gilbert wrote: munn <[EMAIL PROTECTED]> writes: I am trying to NFS connect to a server machine using mount_nfs. I get the following message RPCPROG_NFS: RPC: Port mapper failure - RPC: Unable to receive. An 'identical' machine connects without a message and the mount works. Does anybody know what the message means and how to make it go away? All machines are running 5.4-STABLE Stable as of when? There was a bug in -STABLE last week which could explain this. If you updated the problematic machine last week, do it again now. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
NFS question
I am trying to NFS connect to a server machine using mount_nfs. I get the following message RPCPROG_NFS: RPC: Port mapper failure - RPC: Unable to receive. An 'identical' machine connects without a message and the mount works. Does anybody know what the message means and how to make it go away? All machines are running 5.4-STABLE ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
rsyncing a SMBFS fiole system
My machine id is: FreeBSD isca.dyndns.org 5.3-RELEASE-p15 FreeBSD 5.3-RELEASE-p15 #2: Sat May 14 11:09:57 EDT 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 I am trying to use rsync to backup some photographic files. When I run my script ./Photos.sh on the smbfs file system ~/testmnt it errors with the following message. [isca]rsync sudo ./Photos.sh ~/testmnt/ rsync: readdir("/disk2/home/munn/testmnt/BillMorocco/Sahara"): Bad file descriptor (9) rsync error: some files could not be transferred (code 23) at main.c(789) [isca]rsync The rsync logfile contains the following: Directory /disk2/home/munn/testmnt/ /usr/local/bin/rsync -rptgovR --exclude-from=./excludes14021 --delete --backup --backup-dir=/photos//Jun0605 /disk2/home/munn/testmn t/ /photos//testrsync building file list ... done IO error encountered -- skipping file deletion /disk2/home/munn/testmnt/BillMorocco/Sahara/ sent 6206 bytes received 26 bytes 12464.00 bytes/sec total size is 593701823 speedup is 95266.66 Googling on the bad file descriptor message, there are a couple of messages noting the same problem and asking for help. So far as I can see there were no responses. I have one additional observation. If I delete one file from the directory /disk2/home/munn/testmnt/BillMorocco/Sahara then the script runs perfectly. It doesn't matter what file is deleted. If I copy the directory structure from the XP machine to the FreeBSD one, the script works perfectly. Obviously I have a workaround ... the excludes file with the entry Sahara ignores the failing directory but I would prefer to understand the error. Any help or suggestions would be appreciated ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
mount_smbfs issue
I am getting an inconsistency when I try to use perl to access file in a smbfs mounted Win XP directory structure My kernel is at 4.11p3. Any help in resolving this problem would be much appreciated. # smbfs mount command which mounts a WinXP share ShareDir on my FreeBSD # box. The directory ~/ShareDir has rwx permissions for ugo. sudo mount_smbfs -N -I dodo -u me -g ggg //[EMAIL PROTECTED]/SharedDir ~/SharedDir # directory/file structure is correct ls -FCR SharedDir/ DirOne/ DirThree/ DirTwo/ SharedDir/DirOne: DSCN1090.JPG* DSCN1091.JPG* DSCN1092.JPG* SharedDir/DirThree: DSCN0820.JPG* ParkStreet.JPG* VicRooms.JPG* SharedDir/DirTwo: Oeuvre17.JPG* # now look at the directory/file structure with find # looks good find SharedDir -print SharedDir SharedDir/DirOne SharedDir/DirOne/DSCN1090.JPG SharedDir/DirOne/DSCN1091.JPG SharedDir/DirOne/DSCN1092.JPG SharedDir/DirThree SharedDir/DirThree/DSCN0820.JPG SharedDir/DirThree/ParkStreet.JPG SharedDir/DirThree/VicRooms.JPG SharedDir/DirTwo SharedDir/DirTwo/Oeuvre17.JPG # translate the find command to perl and run the perl script # PROBLEM the files no longer appear find2perl SharedDir -print > testcase.pl perl testcase.pl SharedDir SharedDir/DirOne SharedDir/DirThree SharedDir/DirTwo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
file system type
Is there any way of detecting the type of file system on a disk, specifically UFS2 or UFS1? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
newsyslog
I have two FreeBSD machines running 4.10-RELEASE-p5. On machine A newsyslog rolls over the log files perfectly, on Machine B I get the message /var/log/auth.log.0: No such file or directory The newsyslog.conf entries are : MACHINE A : /var/log/auth.log 600 7 100 * Z MACHINE B: /var/log/auth.log 600 7 100 $W6D0 Z An ls of the /var/log directory yields ls -ltr auth* -rw--- 1 root wheel 97872 Dec 11 00:00 auth.log.1 -rw--- 1 root wheel 95 Dec 11 00:00 auth.log.0.gz -rw--- 1 root wheel176 Dec 11 09:42 auth.log I have looked relevant permissions and files sizes on both machines and they are identical. Can anyone suggest what the problem is? Is the time entry the issue ... I just copied it from another entry in the newsyslog.conf file. With thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FreeBSD 4.10 build world problem
When I try to make buildworld after a complete cvsup (RELENG_4_10) I am getting the error ===> sendmail make: don't know how to make freebsd.cf. Stop *** Error code 2 When I look at /usr/src/etc/sendmail that was cvsup'd some time ago I see the file freebsd.cf. If I copy that file into /usr/src/etc/sendmail, the builds completes successfully. I have checked the cvsup from freebsd2 and freebsd11 and freebsd.cf is not there. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Barnyard
I am trying to compile barnyard for use with mysql. When I do ./configure --enable-mysql I get the error message checking for mysql_real_connect in -lmysqlclient... no ** ERROR: unable to find mysqlclient library checked in the following places /usr/local/lib/mysql ** First mysqlclient.a is in /usr/local/lib/mysql but I cannot find the entry point mysql_real_connect() which is part of the mysql API. Has anyone had any success in compiling barnyard? I am running 4.10p4. Thanks Robert Munn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
portupgrade
In using portupgrade I get a series of files that fail to upgrade with the message because it is held by user (specify -f to force) How is a file held and how can you unhold it? Does the -f option unhold it or just ignore the hold? What is the purpose of the hold? With thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Apache/mod_php4/mysql issue
I recently upgraded apache2 and mod_php4 using portupgrade. Now all my scripts that reference mysql fail with the error message: PHP Fatal error: Call to undefined function: mysql_connect() in /usr/users/munn/public_html/Testing/MySQL.php I re-built Apache and mod_php4 with the following commands cd /usr/ports/www/apache2 make install cd ../mod_php4 make install WITH_APACHE2=1 and the script runs correctly. Scripts referencing mysql access fail with undefined function messages. When I built the files before I vaguely remember being presented with a dialog box that offered various options one of which involved mysql. I no longer get any options choice. Here is the information returned by mysql -V and httpd -v. Any help would be appreciated. mysql Ver 12.22 Distrib 4.0.20, for portbld-freebsd4.9 (i386) Server version: Apache/2.0.50 Server built: Jul 21 2004 10:26:41 Server's Module Magic Number: 20020903:8 Architecture: 32-bit Server compiled with -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_FLOCK_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/usr/local" -D SUEXEC_BIN="/usr/local/bin/suexec" -D DEFAULT_PIDLOG="/var/run/httpd.pid" -D DEFAULT_SCOREBOARD="/var/run/apache_runtime_status" -D DEFAULT_LOCKFILE="/var/run/accept.lock" -D DEFAULT_ERRORLOG="/var/log/httpd-error.log" -D AP_TYPES_CONFIG_FILE="etc/apache2/mime.types" -D SERVER_CONFIG_FILE="etc/apache2/httpd.conf" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
s/key
After upgrading one of my system from 4.6 to 4.7 I get an S/Key prompt when I ssh to a 4.6 system. How can I get rid of the skey prompt. I have tried fiddling with pam.conf but it doesn't seem to make ant difference To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
s/key
How do I turn off the prompt for an s/key password? I started getting the request when I upgraded from 4.5 to 4.7 -- Robert Munn To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message