Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : GEOIP Module NGINX

1


Threaded Mode | Print  

 GEOIP Module NGINX (15 Replies, Read 29043 times)
sopedro
Group: Member
Post Group: Newbie
Posts: 24
Status:
Hi I have a magento store that I migrate from a shared host to my own dedicated server with Webuzo.I'm running my server with Nginx, Mariadb, Solr,HHVM and PHP5.5.The issue is that i create some scripts that call MAxmind GEOIP variables, and Nginx installed by webuzo doesn't have the geoip module and all tutorial in the NET tolds me that i have to compile nginx with de desired modules.
How can i do this in webuzo?
I have to install Nginx outsider webuzo?
Regards,
Pedro
IP: --   

GEOIP Module NGINX
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
You can certainly install GeoIP by a click using Webuzo

It is available with NGINX
http://www.webuzo.com/sysapps/utilities/GeoIP

Hope this helps :)

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

GEOIP Module NGINX
sopedro
Group: Member
Post Group: Newbie
Posts: 24
Status:
Hi,
But i instale GeoIP and not works. It shows me Fatal error:  Call to undefined function geoip_country_name_by_name() in
But my code works fine in my old shared hosting with apache.
I  think i have to install too the php extension for geoip.
Any suggestions?
Regards,
Pedro
IP: --   

GEOIP Module NGINX
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Please check the output of "php - m" command

What is the php version that you are using ?

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

GEOIP Module NGINX
sopedro
Group: Member
Post Group: Newbie
Posts: 24
Status:
Hi Valley, I'm usingo php 5.5
This is the output:
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
date
dba
dom
ereg
exif
fileinfo
filter
ftp
geoip
gettext
hash
iconv
json
libxml
mbstring
mhash
openssl
pcntl
pcre
PDO
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib[Zend Modules]
Zend OPcache
IP: --   

GEOIP Module NGINX
sopedro
Group: Member
Post Group: Newbie
Posts: 24
Status:
Hi
IP: --   

GEOIP Module NGINX
sopedro
Group: Member
Post Group: Newbie
Posts: 24
Status:
HiAs you can see the list shows modules that i don't have in webuzo extension list.
Sorry but i0m still learning Linux and some things i don't know how to do it..

Regards,
Pedro
IP: --   

GEOIP Module NGINX
sopedro
Group: Member
Post Group: Newbie
Posts: 24
Status:
Hi Valley,I think i found something about that list.The list is loaded by HHVM ( i manually installed and configure HHVM), so the php is served by hhvm( sorry, but at this time, i'm very, very, very confused).
I install hhvm in my dedicated server for the performance, and my magento enterprise loads every page in 0,35s, the site flies, but my site uses in the whole site geoip to redirect customer by contry to correct site and to show customers what's the last country who bought that product, so, i really need geoip working.
I want to use the php and nginx installation by webuzo, because is fast and easy, but it seems that i will use webuzo just to create domains and restart services . LOL (kidding)

Valley, your system is amazing, but i don't understand why i can't get things working out of the box, i have to install a lot of things manually.
Regards,
Pedro
IP: --   

GEOIP Module NGINX
sopedro
Group: Member
Post Group: Newbie
Posts: 24
Status:
Hi , Big updates here.
Now i have all modules to nginx installed and i'm using version 1.7.9 of nginx.
It's very simple, just install nginx from source and pass to ./configure the paths of all directories of nginx installed by webuzo( ex --sbin-path=/usr/local/apps/nginx/sbin/nginx) and all the modules too.Now i can stop/start and restart de nginx from webuzo panel and the webuzoVH.conf is generated normally.I will try to do this to all of system that i want.
Very cool
IP: --   

GEOIP Module NGINX
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Hope this does not lead to other issues.
You can possibly write a tutorial which could help others.

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

GEOIP Module NGINX
sopedro
Group: Member
Post Group: Newbie
Posts: 24
Status:
Hi
IP: --   

GEOIP Module NGINX
sopedro
Group: Member
Post Group: Newbie
Posts: 24
Status:
Hi
IP: --   

GEOIP Module NGINX
sopedro
Group: Member
Post Group: Newbie
Posts: 24
Status:
Hi,
Ok, i will try to explain in simple manner what i've done.First i install normally nginx with webuzo just to let webuzo create all the folders, after this i stop nginx and remove the nginx command from /etc/init.d/
I download nginx 1.7.9 and extract  and compile from source ( there is a lot of tutorials explaining how to do this), but the only thing i do was in ./configure command pass all the changes i want i like this ./configure --sbin-path=/usr/local/apps/nginx/sbin --conf-path=/usr/local/nginx/etc/nginx.conf    --pid-path=/usr/local/nginx/var/run/nginx.pid  with all module that i want like this --with-http_ssl_module --with-http-geoip-module and so on and start the installation process.After this i just go to webuzo panel and start nginx and "voilá" the new nginx 1.7.9 is working as expected with the autogeneration of the webuzoVH.conf and all the stuff. when i run nginx -v its show nginx 1.7.9 that is pretty stable too, i run a webstore magento enterprise with three websites.

Sorry, it's a little bit confusion but was what i've done.
Regards,
Pedro
IP: --   

GEOIP Module NGINX
sopedro
Group: Member
Post Group: Newbie
Posts: 24
Status:
Hi,
when we start to undestand how webuzo works it's all easy, i installed spamassassin working with the default exim installation and works good too...
Systems that i use that there is no need to change in webuzo is Exim, Dovecot, Percona-Server,  php, bind, perl and geoip database.

IP: --   

GEOIP Module NGINX
sopedro
Group: Member
Post Group: Newbie
Posts: 24
Status:
Oh! Just a very important thing. Turn off the auto update of scripts.... :P
IP: --   

« Previous    Next »

Threaded Mode | Print  

1


Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 6:18 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.020