ELS - Easy Linux Security script

Here's the section of my php.ini:
Code:
[APC]
extension="apc/apc.so"
apc.enabled=1
apc.shm_segments=1
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1

[suhosin]
extension="/usr/lib/php/suhosin/suhosin.so"
;suhosin.version=0.9.16

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
 
Change extension_dir to: extension_dir = "/usr/local/lib/php/" and extension="/usr/lib/php/suhosin/suhosin.so" to extension="suhosin/suhosin.so"
 
I'm too lazy to check everypage but if you tipe "els --help" the output contains the following:

Code:
  --disablephpfunc    : Disable dangerous PHP functions
  --enablephpsafe     : Enable PHP safe_mode
  --disabletelnet     : Disable telnet
  --distrocheck       : Check your OS version
  --eaccelerator      : Install/Update eAccelerator
  --enablephpsafe     : Enable PHP safe_mode
  --forcessh2         : Force SSH protocol 2

Well --enablephpsafe is showed twice =) little insugnificant cosmetic bug =)

Thanks for the script =D
 
Just noticed Squirrelmail and Uebaiu are not working - the latter because it can't write to the /tmp partition?

Thanks
 
jca, thank you, fixed in 2.0.5.5.

Bloory, have you enabled safe_mode?
 
crea, have you changed the ssh port? Could you explain your problem?
 
jca, thank you, fixed in 2.0.5.5.

Bloory, have you enabled safe_mode?

No problem glad to help. I have the same problem as Bloory...

Webmiau shows:
Code:
ERROR (512): Smarty error: problem creating directory "tmp/_cached_templates" (/var/www/html/webmail/smarty/Smarty.class.php:589)

And in Squirrelmail shows (after trying to login):
Code:
Error opening ../data/default_pref
Default preference file not found or not readable!
Please contact your system administrator and report this error.

Thank for the wonderful script!!!
 
jca, you're welcome. Are you trying to login as [email protected] or as user? Try this for SquirrelMail:
Code:
# chown -R apache /var/www/html/squirrelmail/data
 
You should be able to login as [email protected]. Just for xxx try to edit your /etc/httpd/conf/httpd.conf. Replace:

Code:
        AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
        DocumentRoot /var/www/html
        ServerName localhost
        ScriptAlias /cgi-bin/ /var/www/cgi-bin/

With:
Code:
        <Directory /var/www/html/webmail>
            php_admin_flag safe_mode off
        </Directory>
        <Directory /var/www/html/squirrelmail>
            php_admin_flag safe_mode off
        </Directory>
        AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
        DocumentRoot /var/www/html
        ServerName localhost
        ScriptAlias /cgi-bin/ /var/www/cgi-bin/

After the changes restart the apache service.
 
You should be able to login as [email protected]. Just for xxx try to edit your /etc/httpd/conf/httpd.conf. Replace:

After the changes restart the apache service.



Same error....
Code:
Error opening ../data/default_pref
Default preference file not found or not readable!
Please contact your system administrator and report this error.
 
How about:
Code:
chmod 777 /var/www/html/squirrelmail/data/default_pref
 
If you're still having problems - contact me. I'll fix your problem.
 
crea, have you changed the ssh port? Could you explain your problem?

no script ask to change but i choose no, i mean dont change any port
anyway when i connect on 22 port it gives error and i install apf
 
What error? You can restart the sshd daemon via DirectAdmin service manager.
 
Back
Top