I have a wordpress project version 4.2 with php v5.5
I want to run this project in my localhost where I have php 7.0
How to do update?
Thanks in advance
Try setting up your local dev environment using Local by Flywheel. Local includes the option to choose which version of PHP to use when setting up a site. https://local.getflywheel.com/
Related
I'm trying to install WordPress on host with PHP version 7 but WordPress style and scripts seems not work properly and WP themes ruined ( even in WP installation steps ) .
It works fine on PHP 5.6
here's my server information :
PHP : 7.1.0
Apache : 2.2.29
MySQL Version : 5.5.52-cll
WordPress 4.6 isn't compatible with PHP 7.1 but WordPress 4.7 will be.
https://core.trac.wordpress.org/ticket/37772
I need to run the elgg 1.9.8 site in centos7 present in local environment. What are the things to install in local environment to run the elgg 1.9.8 site. Can you please help me. Thank you advance.
Apache (with mod_rewrite enabled), PHP and MySQL are required to install an Elgg site.
I recently had to move a heavily modified wordpress project to a bare bones server. Which I had to install everything from scratch. I tried both ubuntu 14.04 and centos 7. Ubuntu came with php 5.5 and centos with 5.4
My script used to work very well on hostgator. Which was a shared host and fastCGI was enabled there with php 5.4
However when I moved this to the new server any function that used wp-redirect() stopped working. But when I install fastCGI it suddenly starts to work. Never came across this before. DO you have any idea of why this is happening?
This is happening beacuse of the way WordPress is setting header statuses. See the implementation of wp_redirect here https://core.trac.wordpress.org/browser/tags/4.1/src/wp-includes/pluggable.php#L1147
See the extracted code here:
if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
status_header($status); // This causes problems on IIS and some FastCGI setups
You can examine the status_header function here status_header definition.
A possible fix would be to amend the function or since PHP 5.4 you can use http_response_code.
Working on a MacbookPro OS 10.6.6 , using MAMP Pro 1.9.4.
I'm attempting to install Acquia's Drupal Commons locally. The installation progress bar goes all the way, I can check in phpMyadmin that the database has been populated, but before the site configuration screen , I get a 500 Server Error!
Standard Drupal 6 or 7 install without any problem & I was able to install Drupal Commons on my web server. So it seems that some form of conflicts happens between my server configuration ( Mamp Pro ) and Drupal Commons.
Thanks in advance for any suggestions!
Did you check that your sites/default/default.settings.php file was copied to settings.php and not just renamed?
I remember having problems setting up Drupal when I just renamed it, both files need to be there.
I solved the issue by raising the PHP limit in Mamp to 96M.
File > Edit Template > PHP > PHP Version
//Search for 'memory_limit' & edit the value
memory_limit = '96M';
then restart the server.
After dong this Drupal Commons should install without any problems.
I just installed WAMP on my new eeePC and I am trying to install Drupal, I unzipped the drupal file in the www directory and went to localhost/drupal-x.xx
I get the following error for a couple hundred lines :
Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal-6.15\includes\file.inc on line 902
then the regular drupal install interface appears at the bottom of the page, I tryed to go through with the installation but the problem remains, I looked through google and the drupal web site and I can find no answer (I found similar problem (in french), but no answer).
I have installed wamp and drupal on other computers (win XP and Mac OS) and it seems to work all right so it makes me think it might be related to the eeePC or windows 7 (running on windows 7 starter edition). Any idea ?
Thx
Ok it just seems that Drupal does not support PHP 5.3, which was installed in the latest version of WAMP, which I did not have on my other computers. I have to go back to 5.2, which you can do by installing a php 5.2.x addon from the wampserver website
If phpmyadmin doesn't work after installing your add, you will have to modify the php.ini file with the right path
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:/wamp/bin/php/php5.x.x/ext/"
replace php5.x.x by the version of php you downloaded and installed
My bad :)
Please try with PHP 5.6 or PHP7 installtion,otherwise it will put depcrated notice on header area.