Answer the question
In order to leave comments, you need to log in
Problem installing SAMS, what is the reason?
Debian 7 server amd64
I install all necessary packages:
#apt-get install apache2 php5 phpmyadmin mysql squid I
download and install SAMS
In /etc/sams.conf I correct MYSQLUSER and MYSQLPASSWORD values to my own.
Next, I create and import mysql database under Sams.
#mysql -u root -p squidctrl < sams_db.sql
#mysql -u root -p squidlog < squid_db.sql
Setting up Apache2.
#nano /etc/php5/apache2/php.ini
Enable
safe mod
safe_mode = On
safe_mode_exec_dir = "/usr/share/sams/bin"
by the same type I prescribe and
mysql.safe_mode_exec_dir = "/usr/share/sams/bin". The bundle specified in the instruction does not give any effect)
Next, I install the web interface:
sams-web and sams-doc
I create a link to the Sams directory.
#ln -s /usr/share/sams /var/www/sams
I edit the GetHostName function in the Sams web form sources.
When updating the php engine, the function of the same name was used so that I replace GetHostName with GetName.
Files where this replacement was made:
#nano /usr/share/sams/src/configtray.php
#nano
/usr/share/sams/src/webconfigtray.php
“The requested URL /sams/data/xxxxxxxxxxxxxx.sql.gz was not found on this server”
saving the configuration in it or an error in import / export of black / white lists, I change the owner to the /usr/share/sams directory.
and access rights to /usr/share/sams/data
#chown www-data:www-data /usr/share/sams
#chmod 775 -R /usr/share/sams/data
I go to the web interface, it works fine. As soon as I restart the server, the web interface becomes unavailable and claims that Access is denied for user [email protected] to MySQL, although the rights are registered in the database.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question