Dolke Posted June 18, 2013 Share Posted June 18, 2013 Hi to all, I just made a full backup of my prestashop files and DB and imported both on 2 new hosting environment for testing. This clone of my actual website is located in the MS Azure cloud. I changed all information regarding new DB and URls in both DB tables as well as in config file. My clone website shoul run on: dekom.cloudapp.net/prestashop but it is loading very strange. Any suggestions? Ty Dean Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 18, 2013 Share Posted June 18, 2013 Try deleting cache files, it currently is looking for your CSS here, prestashopthemes/default/cache/e1fe17c110c5ecc222263c713dfb56e7_all.css Also try turning off CCC. Link to comment Share on other sites More sharing options...
Dolke Posted June 18, 2013 Author Share Posted June 18, 2013 (edited) What is CCC exactly? P.S. I deleted all contents of cache folder but problem is still there. hm and it is strange that it pulls CSS from that path, when the whole PS is located in: http://dekom.cloudapp.net/prestashop Edited June 18, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 18, 2013 Share Posted June 18, 2013 CCC (Combine, Compress and Cache) See it here, Advanced Parameters > Performance Link to comment Share on other sites More sharing options...
Dolke Posted June 18, 2013 Author Share Posted June 18, 2013 (edited) Yes, thanks. I tried that also but it is still not working ok... Im able to enter my backend, all seems to be ok but not on the front end as well. Also what ever link I hit it gives me object not found... http://dekom.cloudapp.net/prestashopsr/[spam-filter]rezervni-delovi-za-klima-i-rashladne-uredjaje-u-kuci maybe this has something to do with it? It is extension for Serbian language... Edited June 18, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 18, 2013 Share Posted June 18, 2013 It is looking for files in /prestashopimg But your new directory is called prestashopsr/ Link to comment Share on other sites More sharing options...
Dolke Posted June 18, 2013 Author Share Posted June 18, 2013 My prestashop website is in the folder called prestashop. When ever I click on some link im getting prestashopsr which isn't ok. It would be ok something like prestashop/sr. Also, image search path should look like /prestashop/img What can I do? Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 18, 2013 Share Posted June 18, 2013 Your current code is looking for your theme here, prestashopthemes/default It's looking for modules here, prestashopmodules/ Images here, /prestashopimg/ And it thinks it is in a directory called prestashopsr/ Do you have friendly URLS on ? If so please turn off friendly URLS. 1 Link to comment Share on other sites More sharing options...
benjamin utterback Posted June 18, 2013 Share Posted June 18, 2013 Hi Dolke, In your database, what are the values under ps_configuration and ps_shop_url? and regenerating htaccess may help too. [not applicable to ms azure] 1 Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 18, 2013 Share Posted June 18, 2013 Good stuff Benjamin, I'd like to know that as well. Interesting to know what tools Microsoft Azure would have to access MySQL. Also I don't think htaccess is working in a windows platform. Link to comment Share on other sites More sharing options...
benjamin utterback Posted June 18, 2013 Share Posted June 18, 2013 That's strange because as you say, Friendly URL toggling (off) may solve the problem. It also forces a regeneration of the htaccess but you're right, standard windows platforms have nothing to do with htaccess. Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 18, 2013 Share Posted June 18, 2013 I do use htaccess in Windows, but I had to install, http://www.isapirewrite.com/ (Highly recommended and they have a free version too) Without that, Prestshop friendly URLS isn't going to work until setup with an alternative rewrite tool. Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 18, 2013 Share Posted June 18, 2013 I see, you are using XAMPP for windows. So you are using Apache web server and yes Ben, it does come with the power of htaccess. Dolke, next I'd take a look at, xampp\apache\conf\extra\httpd-vhosts.conf 1 Link to comment Share on other sites More sharing options...
Dolke Posted June 18, 2013 Author Share Posted June 18, 2013 Thank you for the suggestion Bill. Ill look at this file and get back here with the resuilts. Yes, I'm using xampp for windows as this website clone is now hosted in the Windows Azure Cloud. I'm not familiar with this environment at all .This is just what my friend offered me to test my Prestashop website behavior as he has some good package purchased from Microsoft and hes familiar with the windows platforms instead of Linux. The main reason for this testing is CSV import option and some other advanced Prestashop features that are not working well on my shared hosting with HostGator nor with their VPS plans (I tried them both). I want to see if I will have same issues now when the website is in the cloud. I will write soon. Dean Link to comment Share on other sites More sharing options...
Dolke Posted June 21, 2013 Author Share Posted June 21, 2013 This is the contents of the file Bill: # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # <URL:http://httpd.apache.org/docs/2.2/vhosts/> # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # # Use name-based virtual hosting. # ##NameVirtualHost *:80 # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for all requests that do not # match a ServerName or ServerAlias in any <VirtualHost> block. # ##<VirtualHost *:80> ##ServerAdmin [email protected] ##DocumentRoot "C:/xampp/htdocs/dummy-host.localhost" ##ServerName dummy-host.localhost ##ServerAlias www.dummy-host.localhost ##ErrorLog "logs/dummy-host.localhost-error.log" ##CustomLog "logs/dummy-host.localhost-access.log" combined ##</VirtualHost> ##<VirtualHost *:80> ##ServerAdmin [email protected] ##DocumentRoot "C:/xampp/htdocs/dummy-host2.localhost" ##ServerName dummy-host2.localhost ##ServerAlias www.dummy-host2.localhost ##ErrorLog "logs/dummy-host2.localhost-error.log" ##CustomLog "logs/dummy-host2.localhost-access.log" combined ##</VirtualHost> Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 22, 2013 Share Posted June 22, 2013 Dolke, I use IIS 8. Sorry I can't help. Hopefully someone else that uses WAMP can help. That said, I'm still not sure if you copied a previously installed version of prestashop from another box or if you installed a fresh copy of PS? If you did just upload a previously installed version of PS, I recommend you try installing a new installation with a new database. Also, I removed your post #13, it contained data that could potentially give access to your server. Link to comment Share on other sites More sharing options...
yaniv14 Posted June 22, 2013 Share Posted June 22, 2013 It seems like you are missing a closing slash (/), you can update in BO or in DB. DB - ps_shop_url -> physical uri = '/prestashop/' BO - performances -> seo & url -> set shop url -> base uri = '/prestashop/' Link to comment Share on other sites More sharing options...
Dolke Posted June 24, 2013 Author Share Posted June 24, 2013 (edited) Thanks Bill. @yaniv14 I updated this value as you suggested but when I'm going to my front end it redirect me to prestashop/sr/ and gives me 404, object not found. I also tried to add prestashop/sr/ as my base URL and when I do that it loads the page as shown on the printscreen below. Any suggestions? Edited June 24, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
yaniv14 Posted June 24, 2013 Share Posted June 24, 2013 can you get me ftp access and BO or DB (phpmyadmin) as well? Link to comment Share on other sites More sharing options...
Dolke Posted June 24, 2013 Author Share Posted June 24, 2013 Please check your PM. Do you need anything else? Link to comment Share on other sites More sharing options...
Dolke Posted June 27, 2013 Author Share Posted June 27, 2013 (edited) Thank you. With the help from @yaniv14 I managed to make my clone website work on the MS Azure Cloud virtual machine. I must say that it is working slower (not to much though) then on the HostGator shared server. Problems with the CSV import functionality, image rebuilding, index rebuilding are also present, so changing the hosting environment in order to fix this issue hasn't been successful. Also I would like to thank Mr. Bill Dalton for noticing some vulnerable info that I have left in the posts and for clearing them from the topic. Thanks Bill. Edited June 27, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 27, 2013 Share Posted June 27, 2013 Dolke, most of the problems you describe can be related to your PHP environment. Great article on this here, http://blog.dh42.com...tashop-php-ini/ Link to comment Share on other sites More sharing options...
Dolke Posted June 27, 2013 Author Share Posted June 27, 2013 (edited) Bill, I was using these setting from Dh42s blog for the php while I was on the HostGator VPS. Behavior of the website was the same, no progress what so ever Edited June 27, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts