Upload opencart site to server - php

After uploading the opencart site from local machine to server I am unable to set the base url of the site.
I have uploaded all the files and database. Made changes to both the config.php and admin/config.php to reflect new domain path.
I have not done any hardcoding so there are no issues of absolute path in website.
However in all the menu items I still get the "localhost/Directory" path. Where should I make changes to update this base url path?
The change must be in database only but I dont know which table..there are hundreds of tables. :-(
Actually only the menu items are not linking properly. I am using the journal theme from themeforest if this matter.

You could possibly check for a path in PHPmyAdmin I had to update like this before using CMS's when transitioning from localhost to server and the config file didn't make the change to the database.

I solved the problem myself. I did a fresh install of opencart on the server. Uploaded and overwrite the files to the server from my machine. Deleted the fresh database and imported my database on it. Got it solved!!
Jonid Bendo's comment also work's !!
Sometimes clearing the themes cache also works.

Related

I want to restore wordpress site backup on local host xampp

I made a backup of site through cpanel-ftp and also made a backup of database through phpmyadmin.
Now I copied all site files in c:\xampp\htdocs and also imported database in localhost phpadmin ( changed site url\homepage url to local host as well)
I also rechecked my database name through wp-config.php file , everything is ok there.
whenever I try to access my site it gives me following errorError establishing a database connection
AND If i try to access installer.php then I get this error
[0B
The archive file size is currently 0B and its estimated file size should be around 142.6MB. The archive file may not have been fully downloaded to the server. If so please wait for the file to completely download and then refresh this page.
This warning is only shown when the file has more than a 10% size ratio difference from when it was originally built. Please review the file sizes to make sure the archive was downloaded to this server correctly if the download is complete.
Name: 20180403_defenceviewapartments_1ba487c8a8d788096778180403085830_archive.zip]2
Topic is quite old, but I have had the same problem, and none of the replys was right. I have solved the problem, which is actualy very easy when you know how :-)
If you have cPanel go to PHP selector --> Tab Options and set post_max_size to 512M .
Or in PHP.ini set post_max_size=512M
Thats solved my problem.
Download your website folder, export your database, Put the folder in xammp and import the database, in wp_config.php change the directory to the new database, user, password. In the database changes in the wp-options table the url and home site attributes for the new link. And its done
Ps: import the data base with phpmyadmin

Links not working after Drupal site migration

I moved a drupal installation from one server to localhost. Steps I followed:
Copied whole directory structure from old server.
Exported database from old server.
added files to newdomain/drupal
Imported database
edited settings.php with new database information.
As of right now the home page is working. But none of the links to any of the nodes or any of the admin paths I know seem to exist. I get the localhost home page.
Any ideas ?
do you have .htaccess file in the site folder?
please try with default .htaccees file for your Drupal version

Magento: Object not found in localhost

I'm trying to copy website made in Magento in my localhost and finished another steps:
downloaded whole website via ftp account,
import database from server,
change parameters for database in local.xml (post root for user and empty
field for password),
clear cache in Magento var folder,
change base_url value in database
When I try to open it in browser, Homepage looks ok, but any link in page give me Error 404 - Object not found. I can't access to admin panel. Anything what I type URL after localhost/nameOfMyProject, I get Error 404.
I have 2 other Magento projects in my localhost and they work correctly, but both of them I installed from fresh Magento installation and then add new themes for them.
Here is different situation. I need to add whole existing project from server in localhost. I can't add this website on same way, because developer who made it changed files into core section. Project is too big it's not possible at the moment to change that, so any way is to download whole project in localhost.
Does anyone has some suggestion what to do?
Best Regards,
Mladja
Check you also downloaded the .htaccess file and mod-rewrite is enabled in your apache conf.
To access to admin panel try: localhost/nameOfMyProject/index.php/admin

transfering wordpress site form one localhost to another localhost

I'm trying to move wp site from localhost on my work computer to my personal computer. I have followed these steps:
Copy wp-content folder
Export database
Import database
Paste wp-content folder
Configure config.php
It had copied all the themes and plugins, but content (images, text, pages etc) doesn't display. Did I skipped something?
You shouldn't transfer the wp-content folder as a whole, wordpress won't like it and wont find any of the posts/images within it.
If you transfer over just the theme and plugins first so all the files are in place and then do the import of the database you may have more luck.
The only problem will be the images, which may go missing due to the fact that they cannot be downloaded via localhost. Sadly the only way i can think of fixing that is through going through each page and re-adding them.
If the URL was changed:
http://codex.wordpress.org/Moving_WordPress
I would recommend to check wp_config table in the database for the following entries:
option_name=’siteurl‘ or option_name=’home‘
and check if the values are correct for the new installation.

Error when running WordPress on new server

I've just upload a WordPress project into a web server. Everything went fine with the exception of the User-Photo plugin. The problem I'm having is that its doesn't seems to find the basedir path. This is the error:
Upload error: Unable to place the user photo at: /var/www/clients/client2/web4/web/arsoblog/wp-content/uploads/userphoto/1.jpg
First of all, I don't know where this path is. Even on the local server, where the site is working good, is using the exact same path, which I can't find.
Maybe someone of you knows what could have changed from one server to the other. By the way, the blog is inside another site in the web server, which is developed using CakePHP.
EDIT --- I'm having the same problem with all the uploads!
The problem is in your upload directory. When we develop the WordPress site in localhost, the default upload directory will be point to your localhost only. When you move to online server, this directory path will not change.
To override this do the following steps:
Login to your cPanel/control Panel
Go to phpMyadmin
Select your database.
Go to wp_options table
On the second page (around 58th row) Edit 'upload_path'(For the first time this row may be blank).
Give your correct directory.Eg: /home/username/public_html/folder-name/wp-content/uploads
Change "username" and "folder-name". Username is usually the username you use to login to cPanel, or your domain’s control panel. Folder-name is used for the sites hosted in subfolders. If you hosted the site in root folder, remove it.
Here is a detailed tutorial How to move wordpress to a new server or host.
If you already used WordPress uploader in localhost, you need to do a search in wp_posts table and replace your localhost reference to your live site's reference. There are some plugin available to do these search and replace in database. Check this one
Hope this will solve your problem.
777 permissions are dangerous and not the correct fix for the issue. You will get hacked with 777 permissions. See Hardening WordPress « WordPress Codex
For solving this problem you have follow some step,
*Login to your cPanel/control Panel
*Go to phpMyadmin
*Select your database.
*Go to wp_options table
*On the second page (around 58th row) Edit 'upload_path'
*Give your correct directory.Eg: /home/username/public_html/folder-name/wp-content/uploads
then you shift your server See tutorial
for more
http://www.techyv.com/questions/error-when-running-wordpress-new-server

Categories