Install iwisp on centos howto
Installation Troubleshooting , Application setup, Tips n Tricks

zunder1990
Posts: 8
Joined: Sat Jul 18, 2015 3:46 pm
Has thanked: 1 time
Been thanked: 1 time

Install iwisp on centos howto

by zunder1990 » Thu Jul 23, 2015 7:29 pm

#Baseline
You have a centos 6.6x64bit server that is fully patched and on the network.

#Installing base repos and programs
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
yum install yum-plugin-replace
yum replace php-common --replace-with=php54w-common
yum install php54w nano wget httpd mysql-server mysql php54w-mysqli php54w-mcrypt
#enabling services on boot
chkconfig httpd on
chkconfig mysqld on
#diabling selinux
nano /etc/selinux/config and set SELINUX=permissive
setenforce 0
#setting mysql root password
service mysqld start
/usr/bin/mysqladmin -u root password 'changepasswordhere'
#making the iwisp database and user
mysql -u root -p
create database iwisp;
grant usage on *.* to iwispdbuser@localhost identified by 'changepasswordhere';
grant all privileges on iwisp.* to iwispdbuser@localhost;
quit;
service mysqld restart
#installing ioncube
cd /root/
64bit
wget http://downloads3.ioncube.com/loader_do ... -64.tar.gz
tar -xzf ioncube_loaders_lin_x86-64.tar.gz
32bit
wget http://downloads3.ioncube.com/loader_do ... x86.tar.gz
tar -xzf ioncube_loaders_lin_x86.tar.gz
mv ioncube /usr/local/
nano /etc/php.ini
ctrl+w and enter “Dynamic Extensions” to locate the location for the next line
add this “zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.4.so”
and save exit
#enabling mod_rewrite
nano /etc/httpd/conf/httpd.conf
Look for "AllowOverride controls what directives may be placed in .htaccess files"
Then replace "AllowOverride None" with "AllowOverride All"
service httpd restart
#uploading iwisp files and setting file permissions
upload everything under iwisp-application to /var/www/html
chmod -R 777 /var/www/html/application/cache/
chmod -R 777 /var/www/html/system/cache/
chown -R apache:apache /var/www/html/
chmod 777 /var/www/html/application/config/database.php
#clearing iptables firewall rules
iptables -F
service iptables save
#installing iwisp software and install lic file
http://server-ip/install fill that out
http://server-ip/ copy data in box and send it to http://www.iwisp.gr/request-license/
When you get the RAR back unrar file and upload lic.txt to /var/www/html
Now you are ready to get to http://server-ip/
#Clean up
rm -fr /var/www/html/install
#cron job setup
crontab -e then hit i
enter "* * * * * php /var/www/html/index.php cron"
then hit esc then type ":wq"
Last edited by zunder1990 on Mon Aug 10, 2015 7:14 pm, edited 8 times in total.
http://zachunderwood.me
Zach Underwood (RHCE, RHCSA, RHCT, UACA)
https://advance-networking.com

User avatar
IWISP-Mike
iWisp Stuff
Posts: 198
Joined: Thu Jun 11, 2015 8:09 am
Has thanked: 6 times
Been thanked: 9 times

Re: Install iwisp on centos howto

by IWISP-Mike » Thu Jul 23, 2015 8:08 pm

Thank you for this great Guide,
i ve created a new forum and moved this topic here to be easy reachable by users.

Thank you again

treichhart
Posts: 16
Joined: Mon Jul 27, 2015 3:52 am
Been thanked: 1 time

Re: Install iwisp on centos howto

by treichhart » Mon Aug 10, 2015 1:50 am

This how to guide goes not work on cents 6.7 i386 FYI.

zunder1990
Posts: 8
Joined: Sat Jul 18, 2015 3:46 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Install iwisp on centos howto

by zunder1990 » Mon Aug 10, 2015 2:14 am

Yes this guild does not work on 32bit but only a few changes would need to be made to make it work on 32bit.

See the section about
#installing ioncube
change the download url to http://downloads3.ioncube.com/loader_do ... x86.tar.gz
and change the tar -xzf ioncube_loaders_lin_x86.tar.gz
http://zachunderwood.me
Zach Underwood (RHCE, RHCSA, RHCT, UACA)
https://advance-networking.com

treichhart
Posts: 16
Joined: Mon Jul 27, 2015 3:52 am
Been thanked: 1 time

Re: Install iwisp on centos howto

by treichhart » Mon Aug 10, 2015 2:30 am

This is also not in there on i386nano /etc/php.ini
ctrl+w and enter “Dynamic Extensions” to locate the location for the next line
Also php54w not on i386 build

zunder1990
Posts: 8
Joined: Sat Jul 18, 2015 3:46 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Install iwisp on centos howto

by zunder1990 » Mon Aug 10, 2015 2:34 am

I will setup a test box tomorrow and test what is going on.
http://zachunderwood.me
Zach Underwood (RHCE, RHCSA, RHCT, UACA)
https://advance-networking.com

treichhart
Posts: 16
Joined: Mon Jul 27, 2015 3:52 am
Been thanked: 1 time

Re: Install iwisp on centos howto

by treichhart » Mon Aug 10, 2015 5:38 pm

I would like to say if your doing i386 install you will get this error when trying to install:

yum install php54w nano wget httpd mysql-server mysql php54w-mysqli php54w-mcrypt
--> Processing Conflict: php54w-common-5.4.43-1.w6.i386 conflicts php-common < 5.4.0
--> Finished Dependency Resolution
Error: php54w-common conflicts with php-common-5.3.3-46.el6_6.i686
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

From zach he told me to do "yum remove php" then retry to install it.

update I tried do that yum remove php and tried to install yum install php54w nano wget httpd mysql-server mysql php54w-mysqli php54w-mcrypt still getting same error message.

User avatar
IWISP-Mike
iWisp Stuff
Posts: 198
Joined: Thu Jun 11, 2015 8:09 am
Has thanked: 6 times
Been thanked: 9 times

Re: Install iwisp on centos howto

by IWISP-Mike » Mon Aug 10, 2015 6:31 pm

Try this

Code: Select all

yum install yum-plugin-replace yum replace php-common --replace-with=php54w-common
and after that run again

Code: Select all

yum install php54w nano wget httpd mysql-server mysql php54w-mysqli php54w-mcrypt
and please report if it worked

You had already php on your system so it was conflicting, the TO suggested php 5.4 so you can use the ioncube 5.4
Try to see what version of php you have in your system by issuing

Code: Select all

php -v
command and then install the appropriate ioncube loader.

zunder1990
Posts: 8
Joined: Sat Jul 18, 2015 3:46 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Install iwisp on centos howto

by zunder1990 » Mon Aug 10, 2015 6:52 pm

I have updated the main post with the updated info.
http://zachunderwood.me
Zach Underwood (RHCE, RHCSA, RHCT, UACA)
https://advance-networking.com

treichhart
Posts: 16
Joined: Mon Jul 27, 2015 3:52 am
Been thanked: 1 time

Re: Install iwisp on centos howto

by treichhart » Mon Aug 10, 2015 6:55 pm

Zach
I noticed something with this part
64bit
wget http://downloads3.ioncube.com/loader_do ... -64.tar.gz
tar -xzf ioncube_loaders_lin_x86-64.tar.gz
32bit
http://downloads3.ioncube.com/loader_do ... x86.tar.gz
ioncube_loaders_lin_x86.tar.gz

the 32bit section should be:
tar -xzf ioncube_loaders_lin_x86.tar.gz

It is currently Tue May 11, 2021 2:11 pm