Results 251 to 275 of 603
-
06-06-2011, 03:41 PM #251Web Hosting Master
- Join Date
- Apr 2000
- Location
- Brisbane, Australia
- Posts
- 2,602
came across 2 errors on centos 5.5 64bit install
Code:Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. ./centmin.sh: line 687: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop. Gracefully shutting down php-fpm . done Starting php-fpm Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so: /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so: cannot open shared object file: No such file or directory done
during php configure
Code:Configuring extensions checking size of long... (cached) 8 checking size of int... (cached) 4 checking for int32_t... (cached) yes checking for uint32_t... (cached) yes checking for sys/types.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for strtoll... (cached) yes checking for atoll... (cached) yes checking for strftime... (cached) yes checking which regex library to use... php checking whether to enable LIBXML support... yes checking libxml2 install dir... no checking for xml2-config path... (cached) /usr/bin/xml2-config checking whether libxml build works... (cached) yes checking for OpenSSL support... yes checking for Kerberos support... no checking for DSA_get_default_method in -lssl... (cached) yes checking for pkg-config... (cached) /usr/bin/pkg-config configure: error: Cannot find OpenSSL's libraries
Also fancyindex download url is dead right now it seems to have been moved to GIT hosted page now.
Code:if [ -s ngx-fancyindex-0.3.1.tar.gz ]; then cecho "ngx-fancyindex 0.3.1 Archive found, skipping download..." $boldgreen else wget -c http://gitorious.org/ngx-fancyindex/ngx-fancyindex/archive-tarball/v0.3.1 fi mv v0.3.1 ngx-fancyindex-0.3.1.tar.gz
Code:--add-module=../ngx-fancyindex-ngx-fancyindex
v1.2.0-eva2000.01 - 07/06/2011
- Set MariaDB 5.2.x as default MySQL server installation
- Updated mysqltuner.pl download link
- Added Memcached server, libevent
- Added Memcache PHP extension - please leave at v3.0.5, v3.0.6 doesn't seem to work
- Added Python 2.7.1 installed /opt/python2.7.1 leaving CentOS Python 2.4.3-43 intact
- Updated Nginx FancyIndex module download link to Gitorious archive tarball
- Changed APC Cache from YUM based install to compiled from source
- Added APC cache myapc.php admin page at /usr/local/nginx/html/myapc.php
- Added config/apc/apc.ini APC cache settings file
- Fixed PHP configure error: Cannot find OpenSSL's libraries
Oh and I've tried to keep format and structure close to v1.2.0 as possible with changes - save you some timeLast edited by eva2000; 06-06-2011 at 03:52 PM.
: CentminMod.com Nginx Installer Nginx 1.25, PHP-FPM, MariaDB 10 CentOS (AlmaLinux/Rocky testing)
: Centmin Mod Latest Beta Nginx HTTP/2 HTTPS & HTTP/3 QUIC HTTPS supports TLS 1.3 via OpenSSL 1.1.1/3.0/3.1 or BoringSSL or QuicTLS OpenSSL
: Nginx & PHP-FPM Benchmarks: Centmin Mod vs EasyEngine vs Webinoly vs VestaCP vs OneInStack
-
06-06-2011, 05:24 PM #252Web Hosting Master
- Join Date
- Apr 2000
- Location
- Brisbane, Australia
- Posts
- 2,602
Okay fixed up and tested only for CentOS 64bit with mariadb 5.2.6 default so not sure with 32bit. Before I make it public on my web site, maybe some folks want to test 32bit side etc ? On a test/dev server of course not live production site.
Download: Centmin 1.2.0-eva2000.01
Code:total used free shared buffers cached Mem: 1506 797 708 0 24 583 -/+ buffers/cache: 188 1317 Swap: 3039 0 3039
Code:top - 07:24:31 up 3 min, 1 user, load average: 0.11, 0.21, 0.09 Tasks: 111 total, 1 running, 110 sleeping, 0 stopped, 0 zombie Cpu(s): 1.7%us, 1.3%sy, 0.0%ni, 84.7%id, 10.8%wa, 0.2%hi, 1.1%si, 0.0%st Mem: 1542404k total, 816476k used, 725928k free, 25096k buffers Swap: 3112952k total, 0k used, 3112952k free, 597932k cached
Last edited by eva2000; 06-06-2011 at 05:37 PM.
: CentminMod.com Nginx Installer Nginx 1.25, PHP-FPM, MariaDB 10 CentOS (AlmaLinux/Rocky testing)
: Centmin Mod Latest Beta Nginx HTTP/2 HTTPS & HTTP/3 QUIC HTTPS supports TLS 1.3 via OpenSSL 1.1.1/3.0/3.1 or BoringSSL or QuicTLS OpenSSL
: Nginx & PHP-FPM Benchmarks: Centmin Mod vs EasyEngine vs Webinoly vs VestaCP vs OneInStack
-
06-06-2011, 06:53 PM #253Web Hosting Evangelist
- Join Date
- Feb 2004
- Posts
- 491
Here's how to create an instant VMware player virtual machine to test these scripts:
1. first install vmware player for windows, mac or linux
http://www.vmware.com/download/player/download.html
2. Save the code below as CentOS5.vmx in a fresh directory
(this is the file you will eventually click on or run to start the virtual machine for CentOS5)
3. You'll also need in the same directory this small 8MB iso for CentOS 5.6 net install
http://ftp.osuosl.org/pub/centos/5.6...netinstall.iso
(or dig around for another mirror http://www.centos.org/modules/tinyco...ndex.php?id=30)
4. and unzip this blank 8gb disk image for vmware in the directory
http://web.archive.org/web/200901300...p/8GB.vmdk.zip
(note you'll need a partition that supports >4096mb, fat32 won't work)
It's only 1MB in size to start with and will grow as needed, typically to 3-4gb
Code:config.version = "8" virtualHW.version = "4" guestOS = "rhel5" displayname = "CentOS5" # hints.hideAll = "TRUE" # gui.restricted = "FALSE" # vmmouse.present = "TRUE" # keyboard.typematicMinDelay = 2000000 tools.remindInstall = "FALSE" tools.upgrade.policy = "manual" memsize = "512" numvcpus = "1" MemAllowAutoScaleDown = "FALSE" usb.present = "TRUE" usb.generic.autoconnect = "TRUE" ehci.present = "true" sound.present = "TRUE" # sound.virtualDev = "es1371" sound.virtualdev = "sb16" floppy0.startConnected = "FALSE" ide0:0.present = "TRUE" ide0:0.filename = "8GB.vmdk" ide1:0.present = "TRUE" ide1:0.deviceType = "cdrom-image" ide1:0.fileName = "CentOS-5.6-i386-netinstall.iso" ethernet0.present = "TRUE" ethernet0.startConnected = "true" # ethernet0.virtualdev = "vmxnet" ethernet0.virtualDev = "e1000" ethernet0.connectionType = "nat" ethernet0.addressType = "generated" ethernet0.generatedAddressOffset = "0" # anything below automatically added by vmware
I recommend before you install the centmin script, you run yum update, then exit vmware player and archive the whole directory you just made with the working, clean centos 5.6 setup.
Then when you need to retest, just unzip and boom, fresh machine for testing.Last edited by aww; 06-06-2011 at 06:59 PM.
-
06-06-2011, 07:06 PM #254Web Hosting Master
- Join Date
- Apr 2000
- Location
- Brisbane, Australia
- Posts
- 2,602
thanks aww.. i'm using virtualbox for testing i like being able to take snapshots before and after changes so can jump between then for testing changes etc
: CentminMod.com Nginx Installer Nginx 1.25, PHP-FPM, MariaDB 10 CentOS (AlmaLinux/Rocky testing)
: Centmin Mod Latest Beta Nginx HTTP/2 HTTPS & HTTP/3 QUIC HTTPS supports TLS 1.3 via OpenSSL 1.1.1/3.0/3.1 or BoringSSL or QuicTLS OpenSSL
: Nginx & PHP-FPM Benchmarks: Centmin Mod vs EasyEngine vs Webinoly vs VestaCP vs OneInStack
-
06-06-2011, 07:36 PM #255Web Hosting Evangelist
- Join Date
- Feb 2004
- Posts
- 491
Looks like virtualbox has come a long way and now is smaller and slightly faster than vmware player, I'll have to give it a try.
Not sure if virtualbox can do this, but if you are running an intel cpu with VT tech (any of the "i" series) you can run a 64bit OS in vmware on a 32bit OS (and visa versa). That's something pretty new. (looks like virtualbox now can do the same thing).
But for small vps, 32bit is smaller and faster anyway.Last edited by aww; 06-06-2011 at 07:39 PM.
-
06-06-2011, 10:38 PM #256WHT Addict
- Join Date
- Apr 2009
- Location
- Manila
- Posts
- 115
This is cool! Thanks for sharing!
██ Jolly Works Hosting • Your Affordable Web Hosting since 2009.
██ Shared | Reseller| Wordpress | VPS | Domains
██ NVMe SSD, AMD Ryzen, 99.9% Uptime, Proven Filipino Customer Service, USA & Singapore
-
06-07-2011, 12:48 AM #257Web Hosting Evangelist
- Join Date
- Feb 2004
- Posts
- 491
Hot damn, I got the CSF ui working through nginx finally.
Was super rusty on perl from my nightmare movabletype days so it took awhile.
All it takes is adding one perl module for fcgi, copying a little perl cgi wrapper script into /usr/bin and putting the directives for the cgi wrapper into the nginx conf file - as well as locking down that directory of course!
also a symlink to the csf images so they can be shown on the web
Then you run this, modified from the webmin interface and boom it works:
Code:#!/usr/bin/perl use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); use File::Find; use Fcntl qw(:DEFAULT :flock); use Sys::Hostname qw(hostname); use IPC::Open3; open (IN, "</etc/csf/version.txt") or die $!; $myv = <IN>; close (IN); chomp $myv; $script = "csf"; $images = "csf/images"; %FORM = %in; $dns = 0 ; print "Content-type: text/html\n\n"; print "<img src='images/csf_small.png' align='absmiddle' /> <b style='font-size: 14px'>ConfigServer Security & Firewall - csf v$myv$ do "/etc/csf/csfui.pl";
I'm still having trouble with POST and GET data but that's the wrapper's fault and I have to find a newer/better mod out there or fix it myself. Also want to use unix sockets instead of localhost ports.
More tomorrow after some sleep!Last edited by aww; 06-07-2011 at 12:54 AM.
-
06-07-2011, 06:09 AM #258Newbie
- Join Date
- Apr 2011
- Posts
- 28
Hi eva2000, thank you for sharing this setup script. I have some question about the meaning of some line of code, hope you can answer for a new beginer like me
1.Code:cd libunwind-${LIBUNWIND_VERSION} ./configure make make install
2.Code:echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf /sbin/ldconfig
3. Does google perftool actually improve the performance of nginx?
4. Does MariaDB work well (or even better) like MySQL with PHP, nothing need to be changed with old php code?
Thanks for your help
-
06-07-2011, 11:24 AM #259Web Hosting Evangelist
- Join Date
- Feb 2004
- Posts
- 491
@newcome11, MariaDB is basically the new unofficial open-source version of mysql since it moved over to oracle - plus they made some nice feature/performance improvements, though the speed increase is subtle in smaller environments like you'd find on a vps.
It's essentially a drop in replacement for now, though in the future they may start to diverge and mysql 5.5 seems to be determined to improve performance nicely.
Read more here from the guy who forked it http://kb.askmonty.org/v/mariadb-versus-mysql
-
06-07-2011, 11:53 AM #260Newbie
- Join Date
- Apr 2011
- Posts
- 28
-
06-07-2011, 02:10 PM #261Web Hosting Evangelist
- Join Date
- Feb 2004
- Posts
- 491
I had some time to work on the csf ui after lunch and I figured it out completely.
CSF UI is now 100% working under nginx - it's awesome.
I really hope this increases the donations to him, it's a fantastic program.
-
06-07-2011, 02:44 PM #262Web Hosting Evangelist
- Join Date
- Feb 2004
- Posts
- 491
Darn I hate that 15 minute edit rule, even just 25 minutes instead would be so much better around here.
Anyway, EVERYTHING seems to work in the CSF UI, it's fantastic.
The awesome security check, changing settings, even UPGRADING from the web works properly.
main check upgrade
By the way, the centmin script leaves CSF in testing mode with the default settings which means it's clearing out any blocking rules like every 10 minutes. But that's easily fixed from the UI.
Give me a day and I'll figure out the minimum changes needed to enable this on the automated centmin install.Last edited by aww; 06-07-2011 at 02:51 PM.
-
06-07-2011, 08:07 PM #263[ VPS Enthusiast ]
- Join Date
- Nov 2009
- Location
- Cheltenham, UK
- Posts
- 1,416
Sounds good, that would be a very useful feature to implement
Our version or eva2000's? Ours should disable testing mode, because I noticed ava2000's did not.
Assuming it is eva2000's, all you have to add is:
Code:sed -i 's/TESTING = "1"/TESTING = "0"/g' /etc/csf/csf.conf
Last edited by BTCentral - Ben; 06-07-2011 at 08:11 PM.
-
06-08-2011, 12:51 PM #264Web Hosting Evangelist
- Join Date
- Feb 2004
- Posts
- 491
Another nice thing about this CSF web UI solution is that since it uses the perl fastcgi wrapper anyway, you could make an option to install awstats too.
Or is there a more lightweight local stats solution these days?
Changelog for awstats seems to have stopped in August of last year (2010). That's troublesome.
-
06-08-2011, 08:46 PM #265Web Hosting Evangelist
- Join Date
- Feb 2004
- Posts
- 491
Another idea for this script:
On my cpanel setups I install a server-wide, generic shared ssl cert for easy, safer https into software control panels (you just obviously have to bypass the warnings in your browser).
You can create a blank, 10 year cert like this, I just don't know how to apply it to the nginx web root for the server
openssl genrsa -des3 -out server.key 4096
openssl req -new -x509 -key server.key -out server.crt -days 3650
set Private Key File to server.key
set Certificate File to server.crt
Oh apparently it's this easy to make it work on nginx http://wiki.nginx.org/HttpSslModuleLast edited by aww; 06-08-2011 at 08:55 PM.
-
06-08-2011, 09:21 PM #266Web Hosting Evangelist
- Join Date
- Feb 2004
- Posts
- 491
Looks like it's as simple as first generating the server.key and server.crt
Code:cd /usr/local/nginx/conf openssl genrsa -des3 -out server.key 4096 openssl req -new -key server.key -out server.csr cp server.key server.key.org openssl rsa -in server.key.org -out server.key openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
and changing it from the start like this
Code:ssl_certificate /usr/local/nginx/conf/server.crt; ssl_certificate_key /usr/local/nginx/conf/server.key; server { listen 80; listen 443 default ssl; server_name localhost; root html; etc...
Definitely should consider adding this option to the script.Last edited by aww; 06-08-2011 at 09:24 PM.
-
06-08-2011, 10:10 PM #267Web Hosting Evangelist
- Join Date
- Feb 2004
- Posts
- 491
I am running into a conceptual problem with the csf ui process and privileges.
Apparently the "nginx" user that is used to run nginx and php-fpm doesn't actually have root privileges. Which is fine and understandable logic.
But this means that when I run the fastcgi wrapper also under the "nginx" user to keep it consistent, it is unable to run the csfui.pl file which is created by default as root when CSF installs (and upgrades, sometimes daily).
Both solutions I have seem "wrong" IMHO - either running the wrapper as root or changing directory user group to nginx.
Can the experts weigh in on alternatives, if there are any?Last edited by aww; 06-08-2011 at 10:16 PM.
-
06-09-2011, 06:14 AM #268Web Hosting Master
- Join Date
- Apr 2000
- Location
- Brisbane, Australia
- Posts
- 2,602
newcome11, libunwind is needed as per google perftool's install readme instructions so hence why i added it. ldconfig stuff to ensure shared libraries are properly linked and cached for apps which use them. I hope you are testing install on a test server so can retest to find that make error.
Google perftool bundles a supposedly better improved and faster memory allocator in the form of tcmalloc compared to the default bundled with system glibc malloc. MySQL versiosn 5.5.x come with an older version of Google perftool's tcmalloc as alternative option to system default memory allocator as well. It also has tools for developers to use such as for cpu profiling.
see
http://code.google.com/p/google-perf...rformanceTools
http://google-perftools.googlecode.c.../tcmalloc.html
http://google-perftools.googlecode.c...puprofile.html
http://wiki.nginx.org/GooglePerftoolsModule
To be honest I don't know the technical details completely only what I have read. So if anyone else has a better understanding chime in
Yeah i left it in testing mode, in case someone screws up an locks themselves out of the server. I assume if they're installing CSF, they have some understanding to check for this. But I guess enabling it is fine too.
aww, interesting developments on CSF side don't understand it all myself
Anyway, first Centmin v1.2.0 base modifications done myself have been tested and uploaded for public release http://vbtechsupport.com/920/
change log:
v1.2.0-eva2000.01 - 09/06/2011
- - Set MariaDB 5.2.x as default MySQL server installation
- - Updated mysqltuner.pl download link
- - Added Memcached server, libevent
- - Added Memcache PHP extension - please leave at v3.0.5, v3.0.6 doesn't seem to work
- - Added Python 2.7.1 installed /opt/python2.7.1 leaving CentOS Python 2.4.3-43 intact
- - Updated Nginx FancyIndex module download link to Gitorious archive tarball
- - Changed APC Cache from YUM based install to compiled from source
- - Added APC cache myapc.php admin page at /usr/local/nginx/html/myapc.php
- - Added config/apc/apc.ini APC cache settings file
- - Added xcache admin directory to /usr/local/nginx/html/myxcacheadmin/ you need to read config/xcache/xcache_admin_setup_instructions.txt for xcache admin user/pass changes procedure
- - Added xcache admin password setup routine
- - Added memcache.php admin login setup routine
- - Fixed PHP configure error: Cannot find OpenSSL's libraries
- - Fixed Xcache compile error: Cannot find autoconf
- - Fixed Extras/nginx-update.sh nginx version read variable ${ngver}
: CentminMod.com Nginx Installer Nginx 1.25, PHP-FPM, MariaDB 10 CentOS (AlmaLinux/Rocky testing)
: Centmin Mod Latest Beta Nginx HTTP/2 HTTPS & HTTP/3 QUIC HTTPS supports TLS 1.3 via OpenSSL 1.1.1/3.0/3.1 or BoringSSL or QuicTLS OpenSSL
: Nginx & PHP-FPM Benchmarks: Centmin Mod vs EasyEngine vs Webinoly vs VestaCP vs OneInStack
-
06-09-2011, 09:02 AM #269Web Hosting Evangelist
- Join Date
- Feb 2004
- Posts
- 491
More research last night showed me that the privilege problem wasn't that csfui.pl is written by root but that it's in another directory.
When the wrapper is run as user "nginx" it cannot execute a file outside of the current web directory. This is typically a feature for security but in this case it's a problem. What I need is open_basedir.
So I don't understand yet how to do the equivalent of open_basedir with nginx and perl, but that's basically what has to be done.
The web directory that's being used to run CSF needs open_basedir rights to /etc/csf
Once I figure that out, we're set, I have all the other parts ready.
-
06-09-2011, 09:40 AM #270Newbie
- Join Date
- Apr 2011
- Posts
- 28
Thanks eva2000, you're rock!!
-
06-11-2011, 10:03 AM #271Web Hosting Master
- Join Date
- Apr 2000
- Location
- Brisbane, Australia
- Posts
- 2,602
Glad you like, 3rd version of my modified centmin v1.20-eva2000.03 has been released
v1.2.0-eva2000.03 – 11/06/2011
- Added yum.conf check routine after MariaDB and PHP installs to add mysql* and php* exclusion for default mysql and php during yum updates
- Updated apc.ini
- Fixed APC autoconf errors
- Add centmin-experimental.sh version which adds additional routines to be able to: centmin install, php upgrade, xcache upgrade, apc upgrade, nginx upgrade, standalone xcache or apc installations. Not fully tested yet. So do not use on live production servers.
v1.2.0-eva2000.02 – 10/06/2011
- Improved various Nginx and php-fpm config settings i.e. for correctly working $_SERVER['PATH_INFO'], $_PATH['PATH_TRANSLATED'] and $_SERVER['PHP_SELF'] php environment variables
: CentminMod.com Nginx Installer Nginx 1.25, PHP-FPM, MariaDB 10 CentOS (AlmaLinux/Rocky testing)
: Centmin Mod Latest Beta Nginx HTTP/2 HTTPS & HTTP/3 QUIC HTTPS supports TLS 1.3 via OpenSSL 1.1.1/3.0/3.1 or BoringSSL or QuicTLS OpenSSL
: Nginx & PHP-FPM Benchmarks: Centmin Mod vs EasyEngine vs Webinoly vs VestaCP vs OneInStack
-
06-12-2011, 03:01 PM #272Junior Guru
- Join Date
- Aug 2010
- Location
- Bien Hoa, VN
- Posts
- 246
-
06-12-2011, 03:28 PM #273Web Hosting Master
- Join Date
- Apr 2000
- Location
- Brisbane, Australia
- Posts
- 2,602
which version of mysql you installed?
mysqlstart was setup for mariadb mysql in mind not mysql default version so you will need to edit /usr/bin/mysqlstop, mysqlstart, and mysqlrestart and change service from
service mysql start
to
service mysqld start
Will have to correct that in next version: CentminMod.com Nginx Installer Nginx 1.25, PHP-FPM, MariaDB 10 CentOS (AlmaLinux/Rocky testing)
: Centmin Mod Latest Beta Nginx HTTP/2 HTTPS & HTTP/3 QUIC HTTPS supports TLS 1.3 via OpenSSL 1.1.1/3.0/3.1 or BoringSSL or QuicTLS OpenSSL
: Nginx & PHP-FPM Benchmarks: Centmin Mod vs EasyEngine vs Webinoly vs VestaCP vs OneInStack
-
06-12-2011, 04:16 PM #274Web Hosting Master
- Join Date
- Apr 2000
- Location
- Brisbane, Australia
- Posts
- 2,602
v1.2.0-eva2000.04 released
v1.2.0-eva2000.04 – 13/06/2011
- Additional php-fpm optimisations
- Fixed command shortcuts for mysqlstop, mysqlstart, mysqlrestart to take into account MySQL community versions chosen during install instead of MariaDB MySQL
- Updated MySQL Community default server & MariaDB MySQL my.cnf settings
: CentminMod.com Nginx Installer Nginx 1.25, PHP-FPM, MariaDB 10 CentOS (AlmaLinux/Rocky testing)
: Centmin Mod Latest Beta Nginx HTTP/2 HTTPS & HTTP/3 QUIC HTTPS supports TLS 1.3 via OpenSSL 1.1.1/3.0/3.1 or BoringSSL or QuicTLS OpenSSL
: Nginx & PHP-FPM Benchmarks: Centmin Mod vs EasyEngine vs Webinoly vs VestaCP vs OneInStack
-
06-12-2011, 10:11 PM #275Junior Guru
- Join Date
- Aug 2010
- Location
- Bien Hoa, VN
- Posts
- 246
Similar Threads
-
Perfect CentOs Server Setup (Low Memory)
By skoobi2 in forum VPS HostingReplies: 9Last Post: 07-20-2010, 10:16 AM -
Looking for a sysadmin - install debian/centos + dtc-xen + dtc/images (centos etc)
By Ron D in forum Employment / Job OffersReplies: 2Last Post: 06-12-2009, 11:31 PM -
Script Install service, very low rates!
By Justin in forum Employment / Job OffersReplies: 0Last Post: 12-17-2006, 07:10 PM -
centos:apache,php, yum install or source install?
By cchere in forum Hosting Security and TechnologyReplies: 2Last Post: 08-29-2006, 05:14 PM -
How do I install GD on a default CentOS 4.x install?
By Fabalo.com in forum Hosting Security and TechnologyReplies: 3Last Post: 02-12-2006, 11:43 AM