This topic is locked

can't login on remote (hosted version) get error type 2

5/17/2007 09:46:02
PHPRunner General questions
B
bowmansam author

I have a PHP/MySQL database driven website which is hosted online. For development purposes I have a copy on my windows laptop which runs in a XAMPP (apache/mysql/php) environment.
I have developed a project to display recordsets from the "local" MySQL database using PHPRunner3.1 and it works fine on my local machine.
But if I upload all the files to my webserver using a FTP program, as soon as I try to login the login page produces an error (type 2):
rename(C:\WINNT\TEMP\wrtC69.tmp,templates_c\%%6C^6C0^6C04D25E%%login.htm.php) [function.rename]: Permission denied
Not quite sure what is happening, also not quite sure why a file on a windows c drive is being referred to.
How can I develop a project on a local machine and then get the same project working remotely?

J
Jane 5/17/2007

Hi,
it's a permission error.

You need to make sure templates_c directory on the server is writable by the web server user.

Usually you can assign correct permissions using your control panel. Also you may ask your webshoting company to help you with this.

B
bowmansam author 5/17/2007

Hi,

it's a permission error.

You need to make sure templates_c directory on the server is writable by the web server user.

Usually you can assign correct permissions using your control panel. Also you may ask your webshoting company to help you with this.


Are there any other folders/files I am going to need write permission on? becuase the site is hosted on a windows server and the web hosts do not provide the facility to change this myself. Each time I need to change file permissions I need to contact them.

Sergey Kornilov admin 5/17/2007

Besides templates_c directory WRITE permissions needs to be set on directory where you like to upload files (if you use this option in your project).