Hello, I just received my free hosting. I had been putting the final touches on a PHP Advanced Transfer Manager system yesterday and everything was going fine. Today, I got back on and tried to log in and immediately encountered a problem after using login.php:
So I went to the server error log in CPanel and got these logged as the last errors:
It seems that the server is automatically CHMODing my index.php files and login.php files to 755...but for Advanced Transfer Manager to work they must be CHMODed to 777 (only the ones for Advanced Transfer Manager). I'm almost certain that's the problem. It wasn't doing this yesterday...any ideas? I would really appreciate some help since this is making my site useless
Update
I let the server do the auto CHMODing and tried to login. I got this.
Here are the lines referenced:
| Quote: |
| Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@progman89.frihost.net and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. |
So I went to the server error log in CPanel and got these logged as the last errors:
| Quote: |
|
[2005-09-05 03:02:30]: error: file is writable by others: (/home/progman8/public_html/phpATM/index.php) [2005-09-05 03:01:05]: error: file is writable by others: (/home/progman8/public_html/phpATM/login.php) |
It seems that the server is automatically CHMODing my index.php files and login.php files to 755...but for Advanced Transfer Manager to work they must be CHMODed to 777 (only the ones for Advanced Transfer Manager). I'm almost certain that's the problem. It wasn't doing this yesterday...any ideas? I would really appreciate some help since this is making my site useless
Update
I let the server do the auto CHMODing and tried to login. I got this.
| Quote: |
| Warning: fopen(pool_users/progman89): failed to open stream: Permission denied in /home/progman8/public_html/phpATM/include/functions.php on line 616
Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 617 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 618 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 619 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 620 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 621 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 622 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 623 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 624 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 625 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 626 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 627 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 628 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 629 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 630 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 631 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 632 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 633 Warning: fwrite(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 634 Warning: fclose(): supplied argument is not a valid stream resource in /home/progman8/public_html/phpATM/include/functions.php on line 635 Warning: Cannot modify header information - headers already sent by (output started at /home/progman8/public_html/phpATM/include/functions.php:616) in /home/progman8/public_html/phpATM/login.php on line 395 |
Here are the lines referenced:
| lines 616-635 from functions.php wrote: |
| $fp = fopen($userfilename, "w+"); // File named as User Name
fwrite($fp, $enc_user_pass); // 1st line: Encrypted user password fwrite($fp, "\n"); fwrite($fp, $enc_logged_user_id); // 2nd line: Encrypted user session ID, 0 - if user logged out fwrite($fp, "\n"); fwrite($fp, $user_email); // 3rd line: User E-Mail address fwrite($fp, "\n"); fwrite($fp, $user_status); // 4 line: account status: 0 - Administrator, 1 - Power User, 2 - Normal User, 3 - Viewer (view only), 4 - Uploader (upload only) fwrite($fp, "\n"); fwrite($fp, $activationcode); // 5 line: 1 - if account active, 0 - if disabled, other value - activation code fwrite($fp, "\n"); fwrite($fp, $user_temp_info); // 6 line: any temporary information fwrite($fp, "\n"); fwrite($fp, $user_wish_receive_digest); // 7 line: User wish to receive files digest via e-mail fwrite($fp, "\n"); fwrite($fp, $user_account_creation_time); // 8 line: The time when user account created fwrite($fp, "\n"); fwrite($fp, $language); // 9 line: Lingua selezionata fwrite($fp, "\n"); fclose($fp); |
| line 395 from login.php wrote: |
| header($header_location.'index.'.$phpExt.'?'.SID); |
