C5 migrate to OVH hosting

Permalink 1 user found helpful
Hi,

I 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

 
mnakalay replied on at Permalink Reply
mnakalay
Hello,
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
Seti replied on at Permalink Reply
Hi,
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,
mnakalay replied on at Permalink Reply
mnakalay
Depending on your server the SCRIPT_FILENAME reserved variable might not be set
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
Seti replied on at Permalink Reply 1 Attachment
Hello,

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,
mnakalay replied on at Permalink Reply
mnakalay
If you don't have access to the php.ini your best bet is probably to use their module.
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.
Seti replied on at Permalink Reply
I did all what you suggest. Still not working. I see the same installation screen and errors. I copied files and folders without concrete folder and I imported sql base. I am trying to find a reasons. There are two possibilities. Wrong files or wrong database. Which way is correct?
mnakalay replied on at Permalink Reply
mnakalay
Could you copy and paste here all the error messages you are getting?
Seti replied on at Permalink Reply 1 Attachment
Of course. I attach screen shot.
mnakalay replied on at Permalink Reply
mnakalay
Sorry I think there is a misunderstanding.
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.
Seti replied on at Permalink Reply 1 Attachment
When I installed OVH module all worked properly (it is default concrete website, I attach preview). Then I copied files from my old hosting to OVH hosting except concrete folder. After, I saw install page with errors instead of my website content. I will contact you by pm. Thank you for taking your time to help me.
mnakalay replied on at Permalink Reply
mnakalay
You are welcome.
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
mnakalay replied on at Permalink Best Answer Reply
mnakalay
I finally solved the problem.
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
Seti replied on at Permalink Reply
Great work. The website is working properly and it looks good. I'd never have guessed it.
Thank you so much for your help.

Kindest regards,