Weird issue with file upload after moving site between servers
Permalink
Hi everyone, I moved a site from my own hosting where it was located for build out and approval to the clients host for go live.
Site went up OK and is displaying fine and I can log in etc. correctly but I'mm getting this message when I try and upload a file:
Now what I find weird is that my files, config & packages folders are all set to 777 and all the folders within files are too so I don't know why it's telling me my permissions are off.
The server is running Plesk as it's control panel and I am more familiar with cPanel but I don't think that has anything to do with it. Can anyone help me out with this?
Thanks,
Steve
C5ThemeTeam
Site went up OK and is displaying fine and I can log in etc. correctly but I'mm getting this message when I try and upload a file:
Now what I find weird is that my files, config & packages folders are all set to 777 and all the folders within files are too so I don't know why it's telling me my permissions are off.
The server is running Plesk as it's control panel and I am more familiar with cPanel but I don't think that has anything to do with it. Can anyone help me out with this?
Thanks,
Steve
C5ThemeTeam
![C5ThemeTeam](/files/avatars/96103.jpg)
Bump!
It could be a couple of things. I did a quick search on the forums and there are many solutions.
Heres a few-
1. "I was just deploying a site for a client on their shared hosting environment and ran into the same message. One other thing to look at is to see if the server has PHP Safe mode enabled. After disabling this everything went back to normal for me :)" triplei
2. robi replied on Jun 15, 2011 at 4:07 am
Hi, i was able to solve my problem.
First i created a dbtest.php file and placed it next to the index.php file so i can get more information of what is going wrong.
This is the code i used in the file:
So then i saw that i couldn't connect to mysql. I tried reconfiguring mysql but i ended up breaking it because of Plesk - If you have plesk installed you should not try to reconfigure your mysql db!
Now i had 2 options - call my hosting provider and ask for a format of my server, or install a parallel version of mysql myself.
So i ended up doing the second option and just installed another version of mysql on my server.
Now i just had to create a new empty schema for plesk, and then the installation worked! :)
I would suggest you first try creating the dbtest.php file and tell us what error you are getting.
3. Tommiiee replied on Oct 24, 2011 at 7:10 am
Found the solution.
My /folder directory was CHMODded 777 by DirectAdmin, but not recursively. I re-CHMODded /files to 777 and checked the 'recursive' checkbox.
Everything's working fine now.
4. Mnkras replied on Mar 31, 2010 at 8:04 am
make sure /files is 777 recursive
-----
Instead of me copying and pasting all the solutions here, you may be better off having a look through these options - http://www.concrete5.org/community/forums/-/view/?sort=relevance&am...
Hope this helps.
P.S- If you find an answer, it would be great if you could post it here so others may benefit in the future.
Heres a few-
1. "I was just deploying a site for a client on their shared hosting environment and ran into the same message. One other thing to look at is to see if the server has PHP Safe mode enabled. After disabling this everything went back to normal for me :)" triplei
2. robi replied on Jun 15, 2011 at 4:07 am
Hi, i was able to solve my problem.
First i created a dbtest.php file and placed it next to the index.php file so i can get more information of what is going wrong.
This is the code i used in the file:
<?php mysql_connect("localhost", "root", "<my pass here>") or die(mysql_error()); echo "Connected to MySQL<br />"; mysql_select_db("<my db name here>") or die(mysql_error()); echo "Connected to Database"; ?>
So then i saw that i couldn't connect to mysql. I tried reconfiguring mysql but i ended up breaking it because of Plesk - If you have plesk installed you should not try to reconfigure your mysql db!
Now i had 2 options - call my hosting provider and ask for a format of my server, or install a parallel version of mysql myself.
So i ended up doing the second option and just installed another version of mysql on my server.
Now i just had to create a new empty schema for plesk, and then the installation worked! :)
I would suggest you first try creating the dbtest.php file and tell us what error you are getting.
3. Tommiiee replied on Oct 24, 2011 at 7:10 am
Found the solution.
My /folder directory was CHMODded 777 by DirectAdmin, but not recursively. I re-CHMODded /files to 777 and checked the 'recursive' checkbox.
Everything's working fine now.
4. Mnkras replied on Mar 31, 2010 at 8:04 am
make sure /files is 777 recursive
-----
Instead of me copying and pasting all the solutions here, you may be better off having a look through these options - http://www.concrete5.org/community/forums/-/view/?sort=relevance&am...
Hope this helps.
P.S- If you find an answer, it would be great if you could post it here so others may benefit in the future.