Setting up pyrocms/codeigniter on localhost - php

I am having trouble getting a project to work that I have inherited and not setup myself. I install the DB and make sure the file/folder permissions are correct -- but I am getting this error when I try to get to the local site -
This domain is not set up correctly. Please go to http://localhost/myproject/sites and log in to add this site.
I get that error again when I go to that URL... so not exactly helpful on 'adding sites'.
Is there any way to setup a local site in the database manually without using the installer?

Check the field "domain" in the table "core_sites" in your PyroCMS DB.
This field should be set to the domain you're open the website on.
This is usually caused if you're installing PyroCMS through a different URL, than you use to open the website.
e. g.
install through http://dev-server/website/pyrocms/installer, but call the website on http://pyrodev.local because you've set up a virtual host and corresponding DNS entries.

Related

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

Magento 302 when accesing installation

I've installed magento countless times and been getting the same error. When trying to access the installation, magento sends a 302 redirect to the first ip it got installed in ( 192.168.10.144 ). I feel like I tried every trick in the book.
there is no /tmp/magento folder on my machine.
deleted several times /var/www/html/magento/var/cache and /var/www/html/magento/var/session
Magento has a default behaviour to auto redirects you to his Base URL.
If you want to change it, open up your Magento DB and in the table core_config_data your old IP 192.168.10.144 should appear as value for the path web/unsecure/base_url and web/secure/base_url.
Just change it to the new IP or URL you want there, then clean your caches again, and voila.
If you just want to reinstall it, just delete all the table and the file app/etc/local.xml and you should be able to run through the install process again.

How to remove https from admin panel in magento database as getting 403 error

I have wrongly activate secure web config and written 'https' where it
is 'http'. I have checked database table : core_config_data.
web/secure/use_in_frontend and web/secure/use_in_adminhtml is '0' and
web/secure/offloader_header is SSL_OFFLOADED.
Also remove cache and session data. Still I didn't get any solution.
Please do the needfull as admin panel is redirecting to 'https' instead
of 'http'
Reset “Use Secure in Front End or Admin” in Database – Magento
I ran into an issue this week where I switched on SSL on a development site and then realized the SSL cert was not installed correctly. This is a big issue in Magento because there is no way to get back to the admin to switch it back off.
If this ever happens do the following to switch back:
Open up your admin panel (cPanel or other)
Go to phpMyAdmin (if MySql)
Find your Magento Database
Find table “core_config_data”
Look for the columns “web/secure/use_in_frontend” and “web/secure/use_in_adminhtml”
Edit both values, make them equal to “0”
After this is done you will be back in action.
See more at: https://mrumair.com
AFter making the above changes delete your website cache, Either FTP to your public directory or use your file manager from your hosting agreement and delete the contents of the /var/cache folder. I had this exact issue and as soon as i deleted my cache it resolved the issue.
Check the value of web/secure/base_url path in core_config_data.
You can change this from https to http.

ExpressionEngine 2.1 re-install admin login failure

I replaced a working ExpressionEngine 2.1 install with a reworked one that replaced all templates and so on. I made a backup of the WORKING database and WORKING DIRECTORY. I failed to remember to clear the cache beforehand.
I've tried to reinstall the original WORKING EE on a new dev server to be able to compare some pages and so on. I have run the ee_wizard and the environment is good. I can almost get the site up, but it has some references to the production domain i can't track down. The biggest problem is the admin cp login. I put in the correct login, but the page only refreshes (clears the name and password fields). If i put in an incorrect login, i get an error.
I've tried
-- delete from exp_sessions;
-- delete from exp_security_hashes;
-- incognito window
-- modifying expressionengine/config/config.php values for cookie prefix, domain
anything else i can try?
I really need to get in to check some things
thanks
Have you tried dumping/searching the DB for references to the old domain and doing a find/replace? Also I would do a grep of the config files, htaccess, etc... for instances of the old domain name and change them.

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