Okay so a few days ago I had my localhost running off of Wamp to where the files I was working on were connected to my server (through bitbucket to where I can use git in aptana) and everything was working fine (whatever displayed on my localhost off of Wamp server displayed on my bluehost server of course when everything was up to date).
I had to re-install Wamp and I cloned my project again from bitbuckit into my www directory (through aptana) to where my localhost would be connected to my server again and also imported the database to where the setup should be exactly as on the server.
This time when I go to my localhost on my computer to display the components/webpages it doesn't display everything. It only displays the background of my pages and components being used on all across the entire site.
Since everything on the localhost is exactly the same as server (code and database) it should display like it does on the server.
What could be causing this?
Are there configurations in Wamp that could be causing components to not display?
I have re-installed Wamp multiple times as well as trying this on Xampp and the same thing is happening.
Any help will be much appreciated!
So it turns out that the Wamp/Xampp version I was installing (which were the new versions) had php versions which wasn't compatible with the php version that is off of bluehost server (which is currently at 5.2.17).
So I installed Xampp version 1.7.1 (which supports php version 5.2.8).
And now my local is working exactly as my server...EVERYTHING is displaying as it should!
Related
I have a working wordpress site online, running on an Ubuntu 16.04 VPS. I've typically just edited the files via FTP, but I'm trying to get more organized. I'm setting up a development machine with VirtualBox running Ubuntu 16.04 (with Windows as the host OS) so I can experiment. I'm having trouble getting wordpress to load.
I've copied the website files into the VM. I have PHP 7.0.12 installed in the VM. I have the database copied over and it's running fine in the VM. I start the PHP server with
cd /path/to/website/public
php -S 0.0.0.0:8080
When I visit localhost:8080 from Chrome in Windows, I get a Page not found error in chrome. However, I create a public/info.php file with <?php phpinfo(); ?>, and then visit localhost:8080/info.php, I get the correct PHP info page.
I also tried configuring Nginx inside the VM like I have it on the real server. I get the exact same results as with the built in PHP server.
When I visit localhost:8080/wp-admin, I get redirected to the admin page of the live server.
Any idea on what I'm missing or how I might go about debugging the issue?
When move WordPress to another domain, Instead of directly copying Database, we have to use Database migration plugins or manually updating content on DB.
https://wordpress.org/plugins/wp-migrate-db/
https://codex.wordpress.org/Moving_WordPress#Changing_Your_Domain_Name_and_URLs
Then use this updated DB and copied files. That will solve your issue.
My localhost was running on wampserver 2.0 ( with php5.3.0 , mysql5.1.16 , Apache 2.2.11). I needed to upgrade php and mysql, so i downloaded php 5.6.16. and extracted in to directory "wamp/bin/php/php5.6.16" with 3 mandatory files ( php configuration file, phpForApache configuration file and wampserver.conf file) from existing php5.3.0 folder.
Then I got a mysql from my friend's (mysql5.6.12 64bit) wamp directory. didn't do any configurartion. I put it into my wamp/bin/mysql. then i exited from wamp and restart it again.
Then php and mysql versions look like this.
mysql version is not displayed here. and the existing version name is not selected. with these changes I executed the localhost on browser.
wamp server home page is displayed on the browser.
Then I could see this.
In above image, the updated Mysql version is displayed, but not displayed in wamp tray menu mentioned before.
After I tried to view phpmyadmin page. the page was not loaded.
When I'm trying to select mysql version5.1.36 from wamp tray menu, following error was occurred.
Special: after this error occurred, the wamp go offline and cannot open localhost.
And also when I select php version 5.6.16 from wamp tray menu and start localhost, but it goes for " unable to connect" page.
Then I removed the new mysql 5.6.12 folder from the wamp/bin/mysql directory. then restart services and try again.
Nothing changes happened. when start the localhost I could see mysql version again as before.(MySQL Version :
5.6.12 ). But I already removed it from the directory.
I explained everything that i faced.
I need to know what is going on here and how to fix these problems. and How do I install php and mysql versions in this wampserver 2.0.
A working WAMP install should come with included MySQL and PHP versions. That's the whole point of using a package such as WAMP instead of installing your own; you get a whole working stack with one installation instead of having to install each application individually and then configure them manually to work together. Therefore, I have no idea why you would want to copy a friend's MySQL application to your computer. Aside from the fact that you probably didn't copy all the system files (DLLs, library files, etc), you're probably introducing conflicts with the library files that PHP and WAMP use to access MySQL since it's expecting a particular version and now you're providing a different version.
Frankly, at this point it sounds like things are messed up enough that probably the only proper solution is to remove what you have and reinstall the WAMP package (or each individual component). Make sure you back up any relevant changes you've made (configuration, web files, and databases) first!
First of all take back up of all local website in WWW directory found in wamp folder.. This is a time consuming time as it has to back up and copy all files, so sit aside and be patient.
Now, the only solution for this error is to uninstall wamp from control panel and than get tne new version of wamp according to your needs wither from archive or directly the latest version with your preferred php, mysql and apache versions. Follow this steps for backing up and recovering your old projects.:-
Before uninstalling the crashed server copy the full folder as backup of all previous data. (Example: Take backup of "C:\wamp" folder)
Uninstall the Crashed server and install the new one.
Make sure your new server running and has no error.
If server is running make it Stop and Offline then close it.
Go to C:\wamp\bin\mysql\mysql5.0.45\data\
Its better to take a backup copy of this data folder.
Replace the files and folders with your previous server data.
Add your Previous Projects to the Root folder. (Example: "C:\wamp\www")
Restart the server and check whether your previous tables and data are reflecting in the new server. (Example: Check it Out here http://localhost/phpmyadmin/)
Enjoy with your Old Projects at new server.
Source:- mysql.com
From:- http://infinium-tech.com
iMac running Mavericks (10.9.5)
MAMP server (Version 3.2.1)
Installed MAMP about 2 months ago changed default root folder from 8888 (Applications folder/MAMP/ht_docs) to the Sites folder on my iMac. Installed WordPress and built a website. Deleted website and built another one.
When I tried to install WordPress the second time was only seeing the PHP raw page code and not the install page. I worked around this by altering the files but can't really remember what I did. Site was built and all running fine.
I learned now that I can have more than one WP site running on my iMac so have gone through the creation process (new database etc…) but once again am faced with the raw PHP code instead of the install.php.!
Can someone help me? I want to install through the WP installer page as normal.
PHP is ok as I have another site running from the Sites folder.
I recently downloaded WAMP server to get started developing a website locally on my Windows 7 32 bit computer. It was working fine.
Not long after, I downloaded a few different OSGeo4W packages mainly to use QGIS and develop plugins. This is when I began having issues accessing the phpmyadmin local host (page not found error).
I tried uninstalling WAMP in order to re-install it, and now it seems to be taking a very long time to extract files, blocking on the apache 2.4.9 files. Does anyone have any idea if this may be because OSGeo4 installed another version of Apache on my computer? How can I solve this issue?
This is because apache is already running via OSGeo4W application. You can turn it off by launching OSGeo4W-Apache-Monitor and stopping the services. (start/all programs/Apache/OSGEO4W-Apache-Monitor.
Then restart wamp and it should work fine.
I have installed wamp to my E drive. When I use projects in www directory the localhost disappears from addressbar and when I write localhost it works but I can't send data between pages (especially in dreamweaver(I defined site and testing server)) and I can't link pages(the links is not working).
what shoud I do?
I tried solutions in other answers like uninstall services but it doesn't work.
Thanks.
The same thing happened to me before, after installing newer version of wamp server, i suggest you install lower version of wamp server hope this help.