C5 migrate to OVH hosting
Permalink 1 user found helpfulI have a problem after migrate to OVH hosting. At the old hosting I exported MySQL base via phpMyAdmin and I made copy of my site. Afterward I transferred copied files to OVH hosting via FTP and I created database and I imported SQL base from file via phpMyAdmin. For next I changed privileges for /config /files /packages /updates and htmldiff.py and they been set to 777 mask. Apart from that I deleted all files in /files/cache folder. Lastly, I edited the site.php. So, when I started my site at OVH I saw some like this:
Notice: Undefined index: SCRIPT_FILENAME in /www/concrete/config/base_pre.php on line 4.
My website not displaying and I see install page with errors:
concrete5 cannot parse the PATH_INFO or ORIG_PATH_INFO information provided by your server.
and
concrete5 cannot parse the PATH_INFO or ORIG_PATH_INFO information provided by your server.
What did I do wrong?
Anyone have idea?
Thank in advance
Thanks for your help but the problem still persists. I created php5.ini file with appropriate entry though it didn't work.
Any other solution?
Is it possible that it is hosting problem? Something like incorrect php config?
Kindest regards,
You should do a phpinfo() and check if it returns the path to your script for SCRIPT_FILENAME or another value.
That might help find out about the source of the problem
I wrote to OVH technical service and I received information that php.ini is disabled for users. The OVH offer for free complete Concrete 5 as module. I installed that module (from OVH manager panel) and fresh Concrete 5 works properly. But it is default empty website. I am trying to migrate from my old hosting and I do not known why it not works. I have found some significant differences at folders. In my website the /updates folder is empty but in OVH default website the /updates folder includes subfolder concrete. I do not have any idea what is wrong. I attach the phpinfo() results.
Regards,
Don't worry about the update folder. As its name shows, it is for updating purposes.
What you have to do is copy all the folders at the root of your original website (EXCEPT the concrete folder) and put them at the root of your new install. Don't delete the ones they already have in place (like the update folder), just add the content of your folders to theirs.
Then, import your original database into the database that their module created.
Technically it should do the trick.
You said you installed concrete5 again using OVH's module and the empty install works.
Then I asked you to copy the folders from your original install and replace the ones in the new fresh working install. You said you did and you still have problems.
However the pic you sent me shows errors before the installation process even starts.
What I'd like to know is what problems you had after installing from the OVH module and pasting your folders in.
Eventually, if you're not sure you can contact me by pm and let me access your website account to check myself. However that's a matter of trust so it's up to you.
I'll wait for your message
Meanwhile, if you copied the folders and concrete is presenting you with the install then it's probably because it can't find the right database.
1- check that you have imported the database of your original website correctly (check the name of the db, login and password)
2- in the folder config at the root of your website, check in the file site.php that all the information is correct. Server, Name of the Database, login and password
OVH seems to have some weird configuration things going on.
So here's what I had to do:
modify the .htaccess
this: RewriteRule ^(.*)$ index.php/$1 [L] creates problems and you end up at the install screen as if c5 wasn't installed and you get a whole bunch of error messages and problems
I had to replace it with RewriteRule .* index.php/$1 [L]
Also in the file concrete/libraries/3rdparty/Zend/Cache/Backend/File.php I located
class Zend_Cache_Backend_File extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface { <--- snip comments ---> protected $_options = array( 'cache_dir' => null, 'file_locking' => true, 'read_control' => true, 'read_control_type' => 'crc32', 'hashed_directory_level' => 0, 'hashed_directory_umask' => 0700, 'file_name_prefix' => 'zend_cache', 'cache_file_umask' => 0600, 'metadatas_array_max_size' => 100 );
and changed 'cache_dir' => null to the /tmp directory (name might vary on different servers) 'cache_dir' => '/tmp',
If you install C5 from OVH modules, it will have the file in the updates directory so that's where you'll have to make the modifications.
So yes I know, modifying a core file is nasty but I didn't see how else to do it.
Good luck
Thank you so much for your help.
Kindest regards,
you can try to add a file php5.ini at the root of your website (if it doesn't already exist)
Add the following line to it and save
cgi.fix_pathinfo=1
see if it makes a difference
Good luck