-
PHP5 Migration
First, Happy Thanksgiving to all! :liplick:
Second, thank you again to Alexander S and Sergey for getting my PHPMotion back up and running, great job guys. Now to my question; The package for my install of PHPMotion was specifically for PHP4. On the PHPmotion website it says to download the PHP4 installer if the hosting company is running PHP4 which I did because GlowHost was running PHP4 by default. There is also a PHP5 installer to user if the hosting company was using PHP5 by default.
Now that Glowhost is migrating to PHP5 in January and I am running PHPMotion as PHP4 will I have to change and reinstall using the PHP5 installer? I read in another forum that all I should have to do is modify my .htaccess file to accomodate PHP5, is this correct? I won't have to reinstall using the PHP5 installer, (I hope)?
QHF
-
My guess is, it is the installer that needs php4 or php5 and not the script, but yes, modify your .htaccess to verify that.
Please note:
If you reinstall your app, the patch that we wrote will most likely have to be reapplied.
The file that we patch is convertor.php, so you might want to hold on to that. The mods are clearly marked in the file.
-
John-Marc,
I'm in cPanel now but can't seem to find the .htaccess file to modify and test PHPMotion. Can you give me a path?
QHF
-
Hello,
you should find your .htaccess in your Cpanel>File manager
It must be in public_html folder. Also, you can do it via you ftp client.
-
If it is not there, you need to create it.
-
Thanks for the reply Alex. I found 3 .htaccess files under public_html, two only reference FronPage and look like duplicates, the third is empty. Do I have to create one or can I modify the empty one?
QHF
-
There can be only one file with the name .htaccess, you need to modify exactly this file in such a way:
http://www.glowhost.com/forums/knowl...bsite-751.html
-
AlexS,
As stated before, I have 3 different .htaccess files in public_html. Before I go and do something I will regret, perhaps you can help.
The first .htaccess files under public_html is contain the following script:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
The second is called .htaccess.xxxxxxx where x is a series of numbers and contains the same script as above.
The third file is .htaccess.xxxxxxxxx where x is again a different number and is empty. Would you know if it's safe to remove these three .htaccess files and only have the one with the PHP5 modifications from the link you provided? Any help is greatly appreciated.
QHF
-
there is only one .htaccess file. The others that START with .htaccess are backups most likely. It is best to add your php stuff unless you know what it is you are removing by starting from scratch! (G)
-
Thanks for the information. By the way, I just noticed my last post has server information that I think should be removed. Can you delete everything from AuthName on down from the .htaccess script I posted?
Thanks
QHF
-
-
OK everyone, I added the following to my .htaccess file:
- AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml
I now get the following error when I try to access phpmotion from the Internet:
- Fatal error: phpSHIELD Loader - script was encoded for another version of zend engine in /somelocation/mydomain/subdirectory/subdirectory/config.php on line 2It
Does it looks like I need to download PHPMotion for PHP5 after all or is something else going on?
QHF
-
It means that you should download PHPMotion for PHP5 because PHPMotion for PHP4 will not work with PHP5 enabled.
-
Sergey,
I've downloaded PHPMotion for PHP5 to my PC.
I'm not sure how to proceed form here, should I just upload the entire Zip file as a zip file or upload the zip file in binary, or should I unzip PHPMotion 5 on my workstation and upload only the contents in binary.
Where should I upload either the zip file or the binary contents of the zip file too, and will this overwrite the existing config files ( I think it will).
Would it be best to open a support ticket to have this done. Either way, I would like to know the procedure so I can do it myself if this kind of situation ever comes up again.
Thank you,
QHF
-
You can upload the entire Zip file into your public_html directory as a zip file. Once it's done, you need to backup the existing phpmotion files so you can use configuration settings from them. Then extract the files from the zip archive and proceed with the PHPMOTION installation. If you have any questions, please submit a trouble ticket and we will guide you further.
-
Thanks for the information Sergey. I will try this in the morning. Goodnight.
QHF
-
PHPMotion for PHP5
I so love this place! My installation of PHPMotion for PHP4 is now ready for the January migration to PHP5 and is tested and back up and running. I downloaded PHPMotion for PHP5 then uploaded the update and backed up the current PHP4 settings to copy over. Uploaded PHPMotion for PHP5, copied files and folders into the correct locations, made the necessary changes in the .htaccess file and everything came back up.
I did hit two minor snags:
- I got this server error "Error: returned status code 500 Internal Server Error". Thanks to Sergey it was a quick fix to set the correct paths to FFMpeg tools in classes/settings.php.
- When I tried to upload a video file, I got an error about a 20MB upload size limit. I did some checking and found the problem in the cgi-bin folder with a file called uu_default_config.pm. A simple edit to increase the upload file size limit. I tested and verified by successfully uploaded a 39.4mpeg file and all is well with the world. :thumbsup: Again, thanks to all!
QHF
-
Thanks for your kind words ;)