php - Cannot create local copy of Magento -


i'm trying create copy of existing magento website on localhost developing purposes.

i followed steps listed here: copy ec2 files local

i created fake domain localhost there’s “.” in read somewhere required magento. localhost fake url like: www.mysite.local

i have xampp installed on os x 10.9.1 , placed magento filesystem follows: /applications/xampp/xamppfiles/htdocs/magento/

in database added local url follows:

update core_config_data  set value = ‘http://www.mysite.local/’  config_id = 6; 

and on local.xml entered following parameters:

<host><![cdata[localhost]]></host>  <username><![cdata[myusername]]></username>  <password><![cdata[mypassword]]></password>  <dbname><![cdata[mydatabase]]></dbname> 

where localhost localhost, myusername username db restored on local xampp server, mypassword password same db, mydatabase name of same db.

still, when browse www.mysite.local/magento/ or www.mysite.local don’t see appear.

what doing wrong?

thank much!

if you're using local server, here's basic trouble shooting debug:

firstly, local server active? can visit http://localhost without displaying server not found? if can't, local server not running. try firing xampp , launching apache.

secondly, seems you're trying create virtual host local server. that's great! virtual hosts allow create individual urls projects on same server. e.g. http://myproject.dev. however, first need make sure server understands you're doing.

you need create virtual host in server if haven't already.

i see you're using xampp. need navigate xampp install, , edit apache/conf/extra/httpd-vhosts.conf file, file xampp recommends use solely virtual hosts.

reading: setting virtual hosts xampp

for example, in apache, hosts config file may this:

# base <virtualhost *:80>     documentroot "x:/"     servername localhost </virtualhost>  # project - project of mine <virtualhost *:80>     documentroot "x:/projects/myproject/public"     servername myproject.dev     errorlog x:/projects/myproject/logs/apache.error.log     customlog x:/projects/myproject/logs/apache.access.log common     php_value error_log x:/projects/myproject/logs/php.error.log </virtualhost> 

(navigating myproject.dev displays files in x:/projects/myproject/public directory)

this answer not explain virtual hosts however. there plenty of amazing resources online started setting own.

don't forget restart server when add virtual host!

if set up, computer's hosts file set point server?

your hosts file on computer used tell actions when enter matching url in browser.

reading: hosts file , can you

reading: how edit hosts file

for example, using apache conf file settings above, hosts file must include:

# project - localhost 127.0.0.1    myproject.dev 

it tells computer send request local server (at localhost) when use url myproject.dev. local server picks request, sees you're accessing myproject.dev , checks if has virtual hosts matching name. well, whaddya know, does! looks @ documentroot setting location of server files, , continues process. think of hosts file local dns of sorts.

if you've added site hosts file, may take few minutes start resolving correctly. wait little, clear browser cache , try again.

finally, if these steps done, , you're receiving nothing, may server configuration problem, or .htaccess issue.

if you're running on windows, can check event log apache server errors. if have set logging on virtual host, can check files see if it's picking requests, , it's doing them if is.

most issues after point @ least yield visible error in browser (or blank page).

i hope helps!


Comments

  1. Wonderful information! I admire the finished concept with the quality of the projects to be delivered. I agree that quality is the utmost priority in the tech world for clients. A month ago, I also persuaded the stage to hire a professional Python games developer substituting my previous developers, which helped me enhance the quality of my projects. The credit goes to Eiliana.com, which lets me get the right experts to execute my approach.

    ReplyDelete

Post a Comment

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -