1
1
1ot2014-01-10 14:18:43
linux
1ot, 2014-01-10 14:18:43

How to install php-5.2.17 on CentOS 6.5?

Hello. I was going to set up a gateway on CentOS, since the Windows user himself found a manual on Habré "Installing squid + sams + ntlm on centos 6.4 in steps" . But, as it turned out, you need php 5.2.17. The atomic repository used to support it, but now it doesn't. Can someone tell me how to install php-5.2.17 php-mcrypt-5.2.17 php-gd-5.2.17 php-mbstring-5.2.17 php-pdo-5.2.17 php-mysql-5.2.17 on CentOS 6.5?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Ars1s, 2014-01-10
@Ars1s

Connect the epel repository

wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

I
Ilya Evseev, 2014-01-11
@IlyaEvseev

We search in Google:
"centos 6 php 5.2 -atomicorp"
Here we find:
jammarra.ru/comments.php?y=13&m=08&entry=entry1308...

P
Puma Thailand, 2014-01-10
@opium

Do not worry, everything will start there on 5.3.

Y
Yuri Yusupbaev, 2015-08-25
@hostraid

I also recently wanted to do as in the article. here is my instruction (I didn't configure iptables in this case):
yum install mc nano wget ntp –y
service iptables stop
chkconfig iptables off
vi /etc/sysconfig/selinux
SELINUX=disabled
Reboot the server with the command:
shutdown -r now
Install Squid:
yum install squid -y
Allow it to run at system startup:
chkconfig squid on Start the
Squid daemon:
service squid start
yum install php mysql httpd php-mysql mysql-server php-gd php-ldap
–y database creation script conflict) and php 5.3 version.
We start the MySQL DBMS server and the Apache web server and at the same time set them to autoload:
service mysqld start && service httpd start
chkconfig mysqld on && chkconfig httpd on
Set the password on the muscle
mysqladmin -u root password 'secret_password'
Remember its secret_password
Now it's the turn to install Sams:
wget repo.webtatic.com/yum/centos/5/i386/libmysqlclient...
yum install libmysqlclient15-5.0.95-5.w5.i386.rpm openssl098e-0.9.8e -y
wget www.nixdev.net/release/ sams/packages/CentOS_5/i386...
yum install sams-1.0.5-91.1.i386.rpm -y
chkconfig sams on
Turn off Safe_Mode to allow SAMS access to system functions:
nano /etc/php.ini ------------------> change the line in it: safe_mode = on
Reboot Apache
service httpd reload
It is possible that the buttons in the web face will not work " Web Interface Settings" and "SAMS Administration". This problem occurs on php version 5.3 and can be solved by commenting out the #GetHostName() function in the /usr/share/sams/src/configtray.php and /usr/share/sams/src/webconfigtray.php files.
do this in BOTH files:
#function GetHostName()
#{
# if(!($value=getenv('SERVER_NAME')))
# { $value="NA"; }
# return($value);
#}
Let's create a base for Sams, open a web browser and enter
127.0.0.1/sams there or
http://ip_server/sams
In the window that opens, enter passwords for the MySQL console (password secret_password) and any password, for example mypassword.
Note: The default database creation script creates two databases, and the user sams with the password samspasswd.
In addition to passwords, you can not touch anything, as soon as you have filled in the fields for passwords, click the button to create the Create Database database. We change the password for access to the squidctrl and squidlog databases, the user sams with the password mypassword. The bases are created by the Sams installation script, the sams user is the default, the password is set to your mypassword.
Note: If the passwords entered are not correct, delete the squidctrl and squidlog databases using the MySQL command -
DROP DATABASE squidctrl; and
DROP DATABASE squidlog;.
And then visit
127.0.0.1/sams page again to create the base.
/usr/share/sams/data
Note: If you are not satisfied with creating a database in the web interface, you can create them manually using the commands:
# mysql -uroot -psecret_password
> CREATE DATABASE squidctrl;
> CREATE DATABASE squidlog;
> GRANT ALL ON squidctrl.* TO [email protected] IDENTIFIED BY "mypassword";
> GRANT ALL ON squidlog.* TO [email protected] IDENTIFIED BY "mypassword";
> quit
# mysql -u sams -pmypassword < /usr/share/sams/data/sams_db.sql
# mysql -u sams -pmypassword < /usr/share/sams/data/squid_db.sql
Next, open the /etc/sams.
MYSQLPASSWORD=mypassword Start the
Sams daemon:
service sams start
Enter the administrator login / password - admin / qwerty

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question