Jump to content
php.lv forumi

Ar php taisiit mapes


Jee

Recommended Posts

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 рпр
Link to comment
Share on other sites

  • Replies 35
  • Created
  • Last Reply

Top Posters In This Topic

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
Link to comment
Share on other sites

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ā.

Link to comment
Share on other sites

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

        )

Link to comment
Share on other sites


×
×
  • Create New...