Jump to content
php.lv forumi

Ar php taisiit mapes


Recommended Posts

Posted (edited)

a tu php.ini nevari labot?

 

php.ini failaa:

safe_mode = false

 

tas gan nav prātīgākais variants, labāk pakonfigurēt tur konkrētus parametrus, bet labāk vispār orentēties uz kautkādām standarta konfigurācijām, lai ietu lielākoties uz visām mašīnām tavs skripts.

Edited by рпр
  • Replies 35
  • Created
  • Last Reply

Top Posters In This Topic

Posted

par to augstāk arī bija rakstīts - sudo ļauj palaist procesus ķipa ar cita ūsera loginu,

Sudo (superuser do) allows a system administrator to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while logging the commands and arguments.
sudo.ws
Posted

Jā un ja es vēl kautko mācētu no linux komandām....

 

exec, passthru,proc_open, shell_exec, system, exit, show_source, curl_init, curl_exec() has been disabled for security reasons

:D :D :D

Posted

Kāpēc man strādā rmdir, bet nestrādā mkdir ar mapēm kurām ir apache useris, ja manuālī abiem rakstīts:

 

When safe mode is enabled, PHP checks whether the directory in which you are about to operate has the same UID (owner) as the script that is being executed.

 

Abas komandas tiek izpildītas vienā un tajā pašā failā.

Posted

ini_get_all():

 

 

[safe_mode]=> Array

        (

            [global_value] => 1

            [local_value] => 1

            [access] => 4

        )

 

    [safe_mode_allowed_env_vars] => Array

        (

            [global_value] => PHP_

            [local_value] => PHP_

            [access] => 4

        )

 

    [safe_mode_exec_dir] => Array

        (

            [global_value] =>

            [local_value] =>

            [access] => 4

        )

 

    [safe_mode_gid] => Array

        (

            [global_value] => 1

            [local_value] => 1

            [access] => 4

        )

 

    [safe_mode_include_dir] => Array

        (

            [global_value] => /home:/usr/share/pear:/var/www

            [local_value] => /home:/usr/share/pear:/var/www

            [access] => 4

        )

 

    [safe_mode_protected_env_vars] => Array

        (

            [global_value] => LD_LIBRARY_PATH

            [local_value] => LD_LIBRARY_PATH

            [access] => 4

        )


×
×
  • Create New...