I was playing with a backup machine I have today. It's been running FreeBSD 6.3 a while now. I just realised today that CPUTYPE in make.conf was set wrong. When I set it to what it should be, according to the list of valid values, I got odd errors during world and kernel rebuilds, along with some from some ports. I googled it and found many people do not suggest setting that directive in make.conf. May I ask if anybody has experience with this, and what impact it would have on my box should I remove the directive and recompile?
options { default-key "rndc-key"; default-server 127.0.0.1; default-port 953; }; # End of rndc.conf
# Use with the following in named.conf, adjusting the allow list as needed: #key "rndc-key" { # algorithm hmac-md5; # secret "KLGSBmWZrev0I4fR4Tm4GXxdcYSTFzF23b1f9is1M="; #}; # # controls { # inet 127.0.0.1 port 953 # allow { 127.0.0.1; } keys { "rndc-key"; }; # }; # End of named.conf Then i took a look at named.conf
Code: options { /* make named use port 53 for the source of all queries, to allow * firewalls to block all ports except 53: */
//query-source port 53;
/* We no longer enable this by default as the dns posion exploit has forced many providers to open up their firewalls a bit */
// Put files that named is allowed to write in the data/ directory: directory "/var/named"; // the default pid-file "/var/run/named/named.pid"; dump-file "data/cache_dump.db"; statistics-file "data/named_stats.txt"; /* memstatistics-file "data/named_mem_stats.txt"; */ };
logging { /* If you want to enable debugging, eg. using the 'rndc trace' command, * named will try to write the 'named.run' file in the $directory (/var/named"). * By default, SELinux policy does not allow named to modify the /var/named" directory, * so put the default debug log file in data/ : */ channel default_debug { file "data/named.run"; severity dynamic; }; };
// All BIND 9 zones are in a "view", which allow different zones to be served // to different types of client addresses, and for options to be set for groups // of zones. // // By default, if named.conf contains no "view" clauses, all zones are in the // "default" view, which matches all clients. // // If named.conf contains any "view" clause, then all zones MUST be in a view; // so it is recommended to start off using views to avoid having to restructure // your configuration files in the future.
view "localhost_resolver" { /* This view sets up named to be a localhost resolver ( caching only nameserver ). * If all you want is a caching-only nameserver, then you need only define this view: */ match-clients { 127.0.0.0/24; }; match-destinations { localhost; }; recursion yes;
zone "." IN { type hint; file "/var/named/named.ca"; };
/* these are zones that contain definitions for all the localhost * names and addresses, as recommended in RFC1912 - these names should * ONLY be served to localhost clients: */ include "/var/named/named.rfc1912.zones"; };
I know someone probably asked this question... I am looking for a VPS provider that offers unmanaged VPSes with FreeBSD + Cpanel, 512RAM guaranteed, ~250-300GB bw, and 10-15GB hdd, for a price of $40-55/mo.
Can anyone recommend a good VPS provider that meets the above requirements?
I installed FreeBSD 6.3 with minimum packedges. (pkg.txt on attach)
Install Apache+PHP+MySQL
But then I load Drupal or Magento (CMS) browser say that:
Warning: include_once(includes/install.inc) [function.include-once]: failed to open stream: No such file or directory in /ftp/drupal.web/includes/database.inc on line 129
Warning: include_once() [function.include]: Failed opening 'includes/install.inc' for inclusion (include_path='/usr/local/share/phpmailer') in /ftp/drupal.web/includes/database.inc on line 129
Fatal error: Call to undefined function install_goto() in /ftp/drupal.web/includes/database.inc on line 130
My system is affected with something named __sbmaskrune
I can't connect to FTP at this moment..
I am running FreeBSD
/scripts/ftpup Ftp Setup Script Version 6.1 This is the proftpd installer Searching ports for proftpd .....................................found proftpd in /usr/ports/ftp/proftpd....Done proftpd (1.3.1-1) is already installed. dedi01# /scripts/ftpup --force Ftp Setup Script Version 6.1 This is the proftpd installer /libexec/ld-elf.so.1: /usr/local/lib/libruby18.so.18: Undefined symbol "__sbmaskrune" Removing old ftp server (pure-ftpd) pkg_delete: no packages match pattern(s) The ProFTPd configuration file /usr/local/etc/proftpd.conf appears to be ok! No matching processes were found Waiting for ftpserver to restart..............finished.
We are basically looking for advice on which OS to choose. CentOS appeals as it is basically RHEL - and since people are paying for that they must be doing something right. It is apparently uber stable because the versions have been tested to death... but because the packages are so out of date, or just not there, we will need to install many things from source, which defeats the point to using it for its stability.
FreeBSD seems to have an awful lot of up to date packages, took a look at it on Distrowatch and was very impressed by many are the latest versions. This would make life so much easier because the package manager can handle installs and updates, really can't be bothered with messing around compiling software for install/updates.
In my mind, if an open source project as mature as the likes of Apache, PHP or MySQL, I am pretty sure you are very unlikely to experience problems by using the latest stable version. Surely by using older versions you are more likely to experience problems as of the result of bugs/security exploits that have only been fixed in the more recent releases.
Would you use FreeBSD or CentOS/RHEL? Or are both equally as good?
fdisk /dev/amrd1 ******* Working on device /dev/amrd1 ******* parameters extracted from in-core disklabel are: cylinders=2213 heads=255 sectors/track=63 (16065 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=2213 heads=255 sectors/track=63 (16065 blks/cyl)
fdisk: invalid fdisk partition table found Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 35551782 (17359 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 164/ head 254/ sector 63 The data for partition 2 is: <UNUSED> The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED>
I get write errors when i use sysinstall. As for the raid status. Its fine.
I've been using FreeBSD for a while now, but I still feel like a novice when looking at top because I don't understand or know what all of the STATES mean. I know that many of them represent different kernal states and certain programs have their own unique STATES, but what do the usuals mean? man top only has 2-3 listed with very vague descriptions.
Does anyone here understand many of them? If so it would be greatly appreciated if you could write up a few of the basic ones.
select nanslp kserel RUN pause lockf kqread sbwait pipered
Those are the ones I currently see in top. I know there are probably thosands of others, but those are the ones I usally look at.
after many painstaking hours, im at a loss as to where to go now (finally managed to get up to the point of running phpize in the ffmpeg directory)
...
Originally I thought i had compiled it in when compiling PHP,
Infact:
Code: './configure' '--disable-debug' '--disable-rpath' '--with-bz2' '--with-curl' '--with-gd' '--with-openssl' '--with-png' '--with-zlib' '--with-mcrypt' '--with-mysql' '--with-pear' '--enable-bcmath' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--with-ffmpeg=yes' '--with-apxs2=/usr/local/sbin/apxs' But when i go to the tests/ffmpeg_test.php file I get:
Code: Warning: dl() [function.dl]: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so' - Cannot open "/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so" in /usr/local/www/apache22/data/tests/test_ffmpeg.php on line 17 Can't load extension /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so I used the ports tree to install FFMPEG and here is the version info:
Code: bsd# ffmpeg -v ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004 Fabrice Bellard built on Mar 14 2007 20:42:22, gcc: 3.4.6 [FreeBSD] 20060305 After finally getting to this point, i say the heck with it and just decide to try and use phpize and compile it in that way as an extension ( following: http://ffmpeg-php.sourceforge.net/ ).
However, after I got phpize to work ( had to cp autoconf259 and autoheader259 to autoconf and autoheader since it was complaining about it ), it gave me this set of errors:
Code: /bin/sh /usr/local/src/ffmpeg-php-0.5.0/libtool --mode=compile gcc -I. -I/usr/local/src/ffmpeg-php-0.5.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.5.0/include -I/usr/local/src/ffmpeg-php-0.5.0/main -I/usr/local/src/ffmpeg-php-0.5.0 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.5.0/ffmpeg-php.c -o ffmpeg-php.lo gcc -I. -I/usr/local/src/ffmpeg-php-0.5.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.5.0/include -I/usr/local/src/ffmpeg-php-0.5.0/main -I/usr/local/src/ffmpeg-php-0.5.0 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.5.0/ffmpeg-php.c -fPIC -DPIC -o ffmpeg-php.o In file included from /usr/local/src/ffmpeg-php-0.5.0/ffmpeg-php.c:25: /usr/local/include/ffmpeg/avcodec.h:14:27: ffmpeg/common.h: No such file or directory In file included from /usr/local/include/ffmpeg/avcodec.h:15, from /usr/local/src/ffmpeg-php-0.5.0/ffmpeg-php.c:25: /usr/local/include/ffmpeg/rational.h: In function `av_cmp_q': /usr/local/include/ffmpeg/rational.h:36: error: syntax error before "tmp" /usr/local/include/ffmpeg/rational.h:38: error: `tmp' undeclared (first use in this function) /usr/local/include/ffmpeg/rational.h:38: error: (Each undeclared identifier is reported only once /usr/local/include/ffmpeg/rational.h:38: error: for each function it appears in.) In file included from /usr/local/src/ffmpeg-php-0.5.0/ffmpeg-php.c:26: /usr/local/include/ffmpeg/avformat.h: In function `av_init_packet': /usr/local/include/ffmpeg/avformat.h:48: warning: implicit declaration of function `int64_t_C' /usr/local/include/ffmpeg/avformat.h:48: warning: integer constant is too large for "long" type /usr/local/include/ffmpeg/avformat.h:49: warning: integer constant is too large for "long" type *** Error code 1
Stop in /usr/local/src/ffmpeg-php-0.5.0.
After I get all this working and install it on a another machine I plan on writing a guide for FreeBSD users inside the tutorials section - but this one part has stumped me.
The only thing I can think of is something along the lines of maybe i downloaded a 64 bit version of something along the way?
Should i continue along this route with phpize adding it as an extension, or does someone else have some information on that ffmpeg_test.php file?
i created a new cron job with "crontab -e" command by using the "root" user.
* * * * * php -f /path/file.php
i tried it for php -q too. while i type this command on the shell the php file works. there is no problem with crontab rule too. the chmod of file.php is 777, user root group wheel..
but it cant work. i couldnt understand why it aint.
This is the current setup for the user (which is a normal setup)
ISP | switch |WAN |LAN 10.10.10.0/24 servers
switch is a cisco 2924XL
So on the servers there's dual ports one serves for WAN traffic and the other serves Local traffic.
Ive added in the sysctl net.link.ether.inet.log_arp_wrong_iface = 0 still no affect.
error...
Quote:
arp: IP_ADDRESS is on fxp0 but got reply from HW_ADDRESS on fxp1 arp: IP_ADDRESS is on fxp0 but got reply from HW_ADDRESS on fxp1 arp: IP_ADDRESS is on fxp0 but got reply from HW_ADDRESS on fxp1 arp: IP_ADDRESS is on fxp0 but got reply from HW_ADDRESS on fxp1 arp: IP_ADDRESS is on fxp0 but got reply from HW_ADDRESS on fxp1 arp: IP_ADDRESS is on fxp0 but got reply from HW_ADDRESS on fxp1
After FreeBSD 6.2 install completely with no errors, the server is rebooted, then it says "no boot loader" even though the boot loader was installed during the setup.
I have tried to reinstall several times by 3 different sources, but no lucks.
I have nginx conf which works perfectly fine with ip adress,but when i put domain then php for some reason no longer works,i getting download php file situation.
Here is main conf file:
####################################################################### # # This is the main Nginx configuration file. # # More information about the configuration options is available on # * the English wiki - http://wiki.codemongers.com/Main # * the Russian documentation - http://sysoev.ru/nginx/ # #######################################################################
#---------------------------------------------------------------------- # Main Module - directives that cover basic functionality # # http://wiki.codemongers.com/NginxMainModule # #----------------------------------------------------------------------
I'm about to set my own permalink rules in Wordpress.
My VPS is running LxAdmin on CentOS and I have lighttpd installed. I've read I need to edit lighttpd.conf but I don't know which application I should use. The file is located in /etc/lighttpd/ but have no idea how to gain access.
I have a new VPS server in which I did not configure the /etc/resolv.conf file. My VPS has three domains that are all working and resolving fine. But I keep getting an email from my provider that says this:
The hostname (v6.volumedr.com) resolves to. It should resolve to xx.xx.xx.xx. Please be sure to correct /etc/hosts as well as the 'A' entry in zone file for the domain.
Some are all of these problems can be caused by /etc/resolv.conf being setup incorrectly. Please check this file if youbelieve everything else is correct.
You may be able to automaticly correct this problem by using the Add an A entry for your hostname ' under ' Dns Functions ' in your Web Host Manager.
Why does the actual server hostname need to resolve via dns?
I have confirmed that /etc/hosts looks good and I added an A record in my WHM for each domain. Do I need to configure the /etc/resolv.conf file too? Do I need to list my three domains and my server hostname(v8) and then my two primary DNS servers?
I'm supposed to be completing a server migration on Saturday night. But I have one teeeeny tiny problem....
I have no DNS/nameservers provided by my new DC for the resolv.conf.
They have them - but I don't think they operate like true root nameservers or something. I keep getting a ton of Unroutable Mail Domain errors for server email that should be leaving the new box.
When the resolv.conf was set to use the 4.2.2.x dns servers - it was working fine. And I don't know if it's ok to just keep it using those or not?...
What other DNS servers can I use for the resolv.conf? Any DC's nameservers? Are there "public" ones available somewhere?
I tried that recently to install PHP 4 & PHP 5 on the same server - without any luck, i stumbled into a massive hole.
the existing httpd.conf was replaced and there was a backup made - stupid me accidently deleted this backup file and was left this a non-working copy of httpd.conf - if anyone can help me it would be much appreciated.
root@server1 [~]# /etc/init.d/httpd configtest Warning: DocumentRoot [/dev/null] does not exist Syntax OK
I would like to set some hard limits for some developmental testing I am doing using quota tools and what not. In limits.conf I have the following:
-------- @dev hard cpu 0.30 --------
As far as I can see, this would limit all users in the group "dev" from using more than half a minute of CPU time, am I correct?
Assuming I am, once I write these changes no limits seem to be enforced. Are these values cached in the memory and a reboot is needed for them to take effect?