How to install Wordpress next to existing CMS? - php

My client wants to experiment around with Wordpress on a server that they have currently a Typo3 CMS running on. I'm supposed to set it up, without making the old website unusable.
Current website is e.g. www.test.com and that shouldn't change -
It doesn't really matter how to get to that wordpress site but I guess something like www.test.com/test_wordpress would be nice.
The Server is running on Ubuntu 12.04.5 LTS (GNU/Linux 2.6.32-042stab120.6 i686) and the PHP Version is 5.3.10-1ubuntu3.25
I'm afraid the newest Wordpress can't run on this PHP Version.(?)
But if I update it I think the old Website would get a lot of problems.
Is there a way to run multiple PHP Versions on that Server?
If not and if there's no way to run Wordpress on the old PHP version I'd rather just get an older release because it should be done quickly and is just for playing around.
How should I install Wordpress (just the basic steps in order not to overwrite and break anything from the old website would be enough)?
I installed Wordpress on a virtual server (with Vagrant) before, but since the environment is different this time I'm asking here for help what I have to watch out for in order not to break any existing functionality of the main Typo3 CMS currently running on the server.

Wordpress will work with your PHP version
please check
https://wordpress.org/about/requirements/
Note: If you are in a legacy environment where you only have older PHP or MySQL versions, WordPress also works with PHP 5.2.4+ and MySQL 5.0+, but these versions have

Related

PHP and WordPress upgrade

I will be updating our WordPress sites this weekend and I was wondering what might be the best versions to go to. Of course, the latest would be best in theory but sometimes there are bugs that have not been worked out yet so we haven't always gone to the latest and greatest.
We host internally on IIS. I have 3 sites and need to upgrade WordPress (current version 5.7.6) and wasn't sure whether to go to 5.8, 5.9 or 6. I also need to upgrade PHP (current version 7.4.21) and thinking about 7.4.28 or 8.
I was just trying to get some thoughts. If the general consensus is 6.0 and 8.0 that's fine. I don't have any custom code or rely on a lot of plugins. The only plugins I'm concerned about are Subscribe2 and Active Directory Integration.
Thanks!
I think you need to try to update your PHP, WordPress, and plugins separately on Dev environment and test each stage manually or using utility as a screaming frog.
Also, you can use next instrument https://psalm.dev/ , that helps you to check the compatibility of your code with a concrete PHP version.

Multiple hosted websites, set PHP version in cPanel for all, override it for one website that requires earlier version, not working

We have an old legacy PHP website that won't run on PHP greater than 5.4. It's on a shared hosting server with GreenGeeks.com and we have a cPanel 11 to control all our hosted sites. We've had to keep the default PHP level at 5.4 purely to keep this one legacy site running (there are multiple errors with > 5.4), but that can't go on, we need to upgrade the default PHP to the latest version.
Rewriting the legacy site isn't really an option unfortunately. I thought that if we set PHP level up to latest and add a directive in the .htaccess then that would work, so I've tried adding this into the .htaccess for the legacy site at the top of the file:
AddHandler application/x-httpd-php54 .php
And a number of other variations (I don't know much about htaccess) and the site still runs okay with them added, but as soon as I change the default PHP level for the entire platform to something higher I get this:
So my question is, is it possible in such a setup to have one website running PHP 5.4 and all the others running, say 7.2? And if so, what am I doing wrong?
Edit
I contacted GreenGeeks support and they inform me that only one PHP version can run per cPanel account, so overrides in .htaccess simply don't work.
If anyone has any workarounds that would be great but I think this is simply not possible.
That setting is per account.
If you change to php 5.4 all website hosted on that account will use php 5.4.
My advice is to hire someone to update your code from that old website to be able to use php 7.0 or higher.

WordPress requirement

I'm newly use WordPress and want to install WordPress on web host.
But I'm confuse in version selection. My web server support PHP Version 5.4
Suggest me which version of WordPress can run on above php version.
According to this site, the minimum to run wordpress is PHP v 5.6 although you could run it on 5.5 but without support.
The website says that:
Note: If you are in a legacy environment where you only have older PHP or MySQL versions, WordPress also works with PHP 5.2.4+ and MySQL 5.0+, but these versions have reached official End Of Life and as such may expose your site to security vulnerabilities
So, I'm quite sure that PHP 5.5 and below may not supported and/or deprecated but still works!

Wordpress sometimes very slow, sometimes very fast

First time using Wordpress, I always used Drupal. I have installed WP on several VPS from several vendors. One with FreeBSD 10.1, 3 with Centos 7. All using MySQL and PHP 5.4 or PHP 5.6.
I'm using Xcache and mod_deflate. On the same VPS PHP apps like Drupal and ownCloud are running fine and responding very fast (<400ms), no matter how many times you load the page.
My problem with Wordpress is that the first time you load the website on a PC it takes about 20-30 seconds to load. After this it loads under 200ms. I'm using the default theme and no plugins, since I first want to solve the slowness.
IMO plugins like "WP Super Cache" won't help since it's a clean install on a clean VPS. Without content, without plugins etc.
I have tried many things which doesn't work. Directly accessing the VPS by IP doesn't change anything.
Check the page speed from: http://tools.pingdom.com/fpt/
To be sure its not your connection / computer
If its still that slow:
Try using an Ubuntu 14.04, then install Sentora as your host panel.
From there do all the necessary configurations (edit DNS records at your registrar etc)
Then install wordpress with remote.softaculous.com, then you should be good to go.

Apache service refuse to start on wamp 2.5

This is my issue and it has given me sleepless night.
I have been working on the wamp 2.1 server environment for the past 3 years and now i want to upgrade. I finally installed wamp 2.5 and would be willing to keep my previous wamp 2.1 version. everything looks good, because after installation, i did the following after:
Copied ?:\wamp_old\bin\apache to ?:\wamp\bin
Copied ?:\wamp_old\bin\mysql to ?:\wamp\bin
Copied ?:\wamp_old\bin\php to ?:\wamp\bin
Now, the issue is this:
Whenever i start the wamp server with the latest version, it works and the icon turns green. but whenever i try changing/switching back to the old version, all the services starts except the Apache. the icon stays orange and never turns green. whenever i click test port, it tells me your port 80 is not actually used. when i click on install service, i get this message: your port 80 is available, install will proceed. when i select remove service, it removes immediately. when i click start/resume service, nothing happens and it never starts.
What I want to achieve is this:
Some old joomla site were developed on the former wamp 2.1 and each time i tried accessing them via the new wamp 2.5, i see some deprecated functions and it display some chunks of codes. meanwhile, i have two projects that refuse to run on the old wamp 2.1, so i decided to run the 2.5. Presently, the system has wamp 2.5 running.
For 5 days now, i have been cracking my head and i have been stucked.. someone out there should please help me with a solution to run wamp 2.1 and wamp 2.5 together so i can switch version easily. or a probably solution will be appreciated.
Kind Regards !
You were on the right track copying the old Apache MySQL and PHP folders into the new 2.5 version.
Unfortunately switching to very old versions from the new ones is now a bit more hassle than it used to be because of the changes made in the version of compiler used to compile Apache and PHP.
Your old versions of Apache and PHP were compiled with MSVC6 and the new versions with MSVC11 and the 2 are not compatible i.e. an Apache compiled with VC11 wont run with a PHP compiled with VC6 etc.
So try this :-
Switch from Apache 2.4.9 to your old version, it wont start because the PHP version will still be 5.5.12.
Ignore the problem.
Now switch to an old version of PHP, thats compatible with the old Apache.
With luck it will now work.
Check you have the correct version by looking at phpinfo
If it does not come up re-do the switch to the old apache and then again to the old PHP by just re-clicking the version numbers on the relevant switch menu.
To be honest I don't know if it would be possible to restore everything to work fine. I had once similar problems - I had Wampserver and installed new PHP version for WAMP and switched to new PHP version and eveything stopped to work. I tried to change PHP version to the previous one but I had info it's not compatible with Apache and I couldn't change PHP version because of chosen PHP version.
Now I moved to easyPHP and it's much more easier, you can have many PHP versions, there's no problem with changing them.
Probably in your case the problem was not WAMP itself but PHP versions. That's why when you launched your older code you have many warnings. You should simple select older PHP version to do that or you simple have to turn off warning (maybe for other PHP version you had turned off displaying warnings by default?).
If I were you, I would move to easyPHP, dump your databases (if any) and move everything to easyPHP. Probably you won't make your installation of WAMPserver work so the other option is backup everything, dump your databases and reinstall WAMPserver but you can be almost sure similar problem occurs sooner or later when you will be switching between PHP versions.
After alot of brainstorming, I finally resolved the issue all by myself.
Though it may not look wise, but i believe it could go a long way to help others who are stucked in situations like this.
First, I started the wamp 2.5, changed all the versions to the latest ones, which is Apache, Mysql and Php... when the icon turned green, I decided to stop all services, uninstalled the services one after the other. (Apache and mysql) and exit the application by right clicking.
Secondly, I renamed the wamp which encapsulates the 2.5 version to wamp_2.5old and renamed the 2.1 folder back to wamp. i launched the wamp and installed the services back again..this time, it was a lower version. both php and apache had just one version while my sql had two. I made sure the right version of sql was selected and i installed it. I restarted all the services, the icon turned green and all my old website worked.
I tried the method vice-versa and all my latest projects worked. it might look challenging but thats my own way of discovering running multiple version of wamp.
Lastly, thanks to Özgür Eroğlu and Marcin Nabiałek.. they have been of helped.
Pleas help me flag this as useful for research..
vielen gluck.. good luck guys !

Categories