Fix php script - safe mode Restriction

I have a php script that creates new sub directories and creates, and adds generated php files to them.

When I run it, it produces this error:

Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid is 10026 is not allowed to access /var/www/vhosts/[url removed, login to view] owned by uid 48 in /var/www/vhosts/[url removed, login to view] on line 34

I need you to recode this so it can work, even with SAFE MODE ON in PHP.

I'm pretty sure the current method can be changed. If the script is installed as say user 123 , it should be able to run as user 123.

Currently, when the script runs, the owner folder becomes owned by 'apache', if SAFE MODE is ON in PHP, then the script fails because wrong file ownership.

Re-write this so it works on most any unix based server with typical php settings.

2nd, There are 6 steps to running this script for the user, I need a "NEXT" button to goto the next step, so the user does not have to go back to the main admin page after each step. Easy!!

I need this within 3-4 days. Thanks for your bid!

Beceriler: PHP

Daha fazlasını gör: fix safe mode restriction effect, cakephp safe mode, fix safe mode, php safe mode restriction, script safe, safe mode fix, safe mode restriction effect fix, php owner, php main functions, new line in php, fix page, error on page fix, a new mode, fix safe mode script, script whose uid 10026 allowed access, script php safing data user post, script access safe mode, free safe mode fix, safe php scripts, handle safe mode php code, script fix apache ownership, warning mkdir safe mode restriction effect cake php, php safe mode restriction effect, cake safe mode, cakephp unix permission timestamp

İşveren Hakkında:
( 13 değerlendirme ) Los Angeles, United States

Proje NO: #184214



Piece of cake!

%selectedBids___i_period_sub_7% gün içinde 30%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(79 Değerlendirme)

Bu iş için 5 freelancer ortalamada $66 teklif veriyor


I can do it, it needs write permissions.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(124 Değerlendirme)

Ready to start now.

in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(80 Değerlendirme)

We can do it

in %bids___i_period_sub_35% gün içinde100%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(97 Değerlendirme)

ready to start

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(3 Değerlendirme)