I have a three year old or so MAMP install (a copy of the application folder and all its contents, databases, etc.) with a three year old MediWiki (version 1.19) installed on it, several pages, and a few images. I would like to know how I can access those pages (or at least the content on them) and import them or copy them over to a fresh install I made today with the latest versions of MAMP and MediaWiki.
I already tried copying the database folder (MAMP/db/mysql/my_database; contains .frm files) from the old install to the same location in the new install but it doesn't seem to have changed anything. I even looked at the contents of the tables with phpMyAdmin but I didn't find any of the old content. Where do I go from here?
I installed MAMP on my MacBook Pro running OSX Yosemite. I'm hosting locally (e.g. using localhost). I am able to install a fresh MediaWiki on my localhost MAMP server and it works fine (there's just no content).
UPDATE: After seeing this I changed $wgMainCacheType = CACHE_ACCEL to $wgMainCacheType = CACHE_ANYTHING in the MediaWiki local settings file and now I get an error page that looks like this:
Do I need to somehow upgrade my databases? They are old after all. How should I go about doing this?
Shutdown mysql
Just copying the MAMP/db/mysql/my_database is not enough
Copy the contents of your db folder and below to the new
MAMP db folder
Note i assume your new MAMP is pretty virgin
Poached it from here :
http://joejoomla.com/sound-off/157-how-to-upgrade-mamp.html
Start new mysql
Will incl necessary config files
It is not as if you should have expected MAMP to recurse directories
It needs config files from old and you don't have them yet
I have never done it on MAMP
Edit:
Concerning warning that resulted
Make sure that XCache is installed with the new version of PHP. The most likely cause is the new version of PHP simply doesn't have xcache installed. You can do this by creating a php file with just the code
<?php phpinfo(); ?>
and then viewing it in a web browser.
Setting $wgMainCacheType = CACHE_NONE; will disable all caching, which would prevent the error, but make things slow.
From: http://m.mediawiki.org/wiki/Thread:Project:Support_desk/%22CACHE_ACCEL_requested_but_no_suitable_object_cache_is_present.%22
Advice : for this kind of software, use a Virtual Machine, it will save your time : my own mediawiki is running for 8 years under debian, hosted on a several different Apple machines.
But for now, if you still have the former stack running :
0 . (always) save your database content + files
for the database :
https://www.youtube.com/watch?v=NnOE0KWHGkY
for the files :
tar cfvz my-old-mediawiki.tar.gz path-to-mediawiki-directory
This will allow you to rollback if something goes wrong
Export your content and history
go to the special page : "Export pages", list your pages.
if needed, use the special page : "List all pages".
this will produce an xml file.
Save your images somewhere on your file system
use the special page : "List all files".
you now have exported your pages and files
3) Switch stack
check that the new virgin mediawiki is working well
import your pages
go to the special page : "import pages", upload the xml file produced in step 1
you now have a similar wiki, minus the files
import your images :
after the step 4, each file page has been created without its content.
you can upload manually each image exported at step 2) if you have only some of them,
if that is too much files (>30), you can use this procedure : https://www.mediawiki.org/wiki/Manual:ImportImages.php
keep in mind also to reinstall any extensions installed previously.
Related
I have my site up and running, but because of number of changes, i decided to publish an updated version. Before doing so i have made backup of my files and databases on the host, just in case.
Now this is what i did: Publish Nop.Web used FTP, configuration is set to release and from file publish options checked Delete all existing files prior to publish, as i was publishing to the same folder wwwroot. After publish was completed NopCommerce installation appeared (btw i would like to use the same db i used before) even tho settings.txt from the project I was publishing had the correct string path. I tried 2-3 times to pass the installation with no success (error: One or more sequence... something like that), checked settings.txt on the host and it was empty (no idea why), but i just edited it with the string path.
Now installation is gone i have my site running again with all the products and user information (i assume that means string path to db is good), but my theme is reseted to default, like all my changes to it (footer links, background, logo, favicon..etc etc) only thing that stayed as it should was the nivo slider widget that has the correct pictures displaying on this 'reseted' theme.
Checked General settings for theme settings if its the correct theme selected.
Also i have noticed this, i assume with those 2-3 unsuccesful install tried i have made some changes in db
http://i.imgur.com/wfXQYj6.png
Any suggestions how to sort this whole thing, before publishing i was running my site locally and it was good, i have backups of db and files(ones that i used before this publish)
I am using Nop version 3.4 and arvixe hosting. Sorry for my long post but i wanted to describe my steps and error as detailed as possible.
Thanks for reading and looking forward for your suggestions about this.
I haven't tried publishing features of NopCommerce version > 3.10, but you can try a more "manual" approach to make sure that files are properly updated on the server.
In short, you get files from your local machine which are needed for the built website and you upload them to your website folder on the server. You can make a backup and empty the server website folder first.
I presented that approach in this answer:
How to deploy nopCommerce 3.5 to new server from source?
You can check this batch script to see which files need to be sent to the server. The script also includes some suggestions about what else you may need to do to update the website on the server: https://gist.github.com/dan-mirescu/c14cc72e3f8ecca988b7
For Publishing the NopCommerce Application website below is the step:
Step : 1 - Publish the Nop.Web project.
Step : 2 - Publish the Nop.Admin project.
Go to the publish folder where your publish created
Step : 3 - Cut all dll from the Administration and Paste all dll to bin folder which in main bin folder for whole project
Step : 4 - Copy two things from your source project and in App_Data folder Settings.txt and InstalledPlugins.txt which is not published in your publish file so paste this two files in your publish folder in App_Data. (You need to change the connection string in Setting.txt as per your database host).
Step : 5 - Now you need to copy whole plugins folder from your source folder (but remember this plugins folder you need to copy from the Presentation folder not from the main source where the solution file are there.).
Step : 6 - Now your publish have been ready.(now you can deploy on hosting server)
I'm experiencing strange PHPStorm 7 behavior - I'm using SVN, I have working copy on my HDD and I'm uploading data to mapped Drive in Windows 7 (when I update any directory, PhpStorm is not uploading files automatically to my network location (that's mapped drive in windows).
Also, sometimes it looks that I must upload same files manually twice to have it uploaded on my server. That's quite annoying.
Of course I've looked for some options, plugins or help on Jetbrains webpages, without success.
So the question is, why files are not uploading automatically and how to achieve it?
ver: 7.0, build: PS-131.374, JRE 1.7.0_10; VM: HotSpot srv; Windows 7 Pro SP1; 8 GB Ram PC;
Network is working fine.
**EDIT: I have automatic upload enabled. **
Thanks!
go to Tools -> Deployment -> Options and check the checkbox 'Upload external changes'.
Tada :)
1. Latest stable version is 7.1.3 -- consider upgrading from your 7.0
2. VCS changes are considered external changes, so unless you edit those changed files .. or configured to automatically upload external changes as well, they will not be transferred.
http://youtrack.jetbrains.com/issue/WI-2171 -- subscribe to that ticket (vote/star/comment) to get notified on progress.
Also, sometimes it looks that I must upload same files manually twice to have it uploaded on my server. That's quite annoying.
No clue -- you should check your idea.log (Help | Show Log in...) for possible hints / exceptions. Quite likely it fails to upload those files for some reason.
I am running a fresh install of XAMPP 1.8.2 for OSX and am currently trying to upload an exported database that is 171kb in size.
Getting hit with this error
Warning: File upload error - unable to create a temporary file in Unknown on line 0
From what I have discovered it may have something to do with write permissions to a /tmp file which doesn't seem to exist on my system.
Trying to set this up so I can make changes locally on a clients website without breaking the live site.
Cheers and thanks for taking a look.
Solved
within the file uploads section of your php.ini there resides this:
;upload_tmp_dir =
To allow for uploads uncomment and give the tmp dir a home:
upload_tmp_dir = "/tmp"
The the most recent default installation of XAMPP on Lion has a couple of very important lines commented out (in regards to phpmyadmin/mysql). Not sure why, but I would love to learn the reasoning behind it.
I have developed a custom WordPress theme with custom woocommerce shop locally with MAMP. It works great.
I have uploaded all the files to the server, revised the config file for new database.
Created the database, exported it from my local with in the phpMyadmin and imported it to the online server database. The database was 16MB so it didn't import well as one file or as separate tables so I used bigdump to import it. and it looked like it worked.
after that I changed the URLs to the new ones from in wp_options table in phpMyadmin of the new db.
However the site now displays error lines and the WordPress Admin Bar is missing from the top.
In addition to that the Products tab of woocommerce is missing and the plugin admin area is empty. I also cannot install plugins. etc' It all doesn't function well.
I'm guessing this is a bad transfer of the database but I have no clue.
This is the website
Error lines examples:
Warning: array_merge(): Argument #2 is not an array in /usr/local/pem/vhosts/254369/webspace/httpsdocs/wp-content/plugins/wp-pagenavi/scb/Options.php on line 46
Also...
Warning: call_user_func_array(): First argument is expected to be a valid callback,
'woocommerce_demo_store' was given in /usr/local/pem/vhosts/254369/webspace/httpsdocs/wp-includes/plugin.php on line 405
Any advise on figuring out what the problem is?
You shouldn't import the data by exporting all tables through phpMyAdmin. In the process you will overwrite the tables that were created for the new wordpress installation, with its own values for options such as siteurl, bloginfo etc.
So re-install Wordpress on the new server, to start again clean. Don't overwrite the tables it auto-generates.
Login to your development wordpress dashboard, go to Tools > Export and select all content, including all linked files. Go to new Wordpress, go to tools > Import, select Wordpress, install the plugin, choose the file you exported and you should be all set.
You will need to update some URL's that might not get updated within your posts/pages. You might also need to update catid's in your code, as the imported categories will get assigned new values.
James - regarding the import error, this is because the server you are trying to import the file on has a limit on the size of files it can import.
Go into the root folder of your server (the one in which wp-content, wp-includes etc folders are in), and either edit the php.ini file currently there, or upload a new one. You can download this sample file: http://www.reallylinux.com/docs/php.ini and upload it. Edit the post_max_size and upload_max_filesize value to 50MB or something: post_max_size = 50M
This will fix the import problem.
For the plugin error, copy the plugin files from wp-content from your dev server and import them into the live server, it should work.
I am trying to get a simple phpinfo() to print out on my local server (using MAMP). I made a new directory in /Applications/MAMP/htdocs (php_sandbox) and put a file in there named my_phpinfo with only phpinfo() in it. How can I view the contents of this file in my web browser?
Is it also advisable if I set the Apache document root to be in my home directory/sites? I will be mainly using this local server to test/host some small sites.
Thanks!
visit in your browser localhost/my_phpinfo/index.php assuming you named the file with
<? phpinfo();?> is in index.php. Also, make sure you are editing the correct php.ini in your MAMP directory by checking your mamp prefs and seeing what version of php MAMP is using.
Your in the right folder by default from what I remember. MAMP runs apache on port 8888 by default. You should be able to go to http://localhost:8888/ You can also get to this page via the control panel (should have a button to open home page). This page will also show you've configured MAMP's Apache to run on a different port.
Whatever you name your file; you'll want to give it a .php extension, so if you file is named my_phpinfo, add a .php so it becomes my_phpinfo.php. Make sure you function called is wrapped in php tags like so
<?php phpinfo(); ?>
If this file is directory in the htdocs folder you should be able to go to http://localhost:8888/my_phpinfo.php and get the PHP Info page.
As far is moving the directory. I normally do. Especially b/c it makes upgrading MAMP a little easier (already have to worry about MySQL). You might have to tweak the file permissions just a bit to make sure it runs correctly. I believe though you should be okay since it is running as your User.