How to test my website in php - php

I have xampp but dont know how to test my website. the whole site is in C:\brutal doom\web Tester\Phoenix TKD. Do you know how to do this and if so how. Would be helped with pictures.

first coppy your site folder to your c:\xampp\htdocs
then open your xampp control panel and start the first two options
then go to http://localhost/your-site-folder-name-here
and you should see your website

1.First Create a folder in C:\xampp\htdocs\Phoenix
2.Copy your all website data & past to C:\xampp\htdocs\Phoenix folder.
3.Then go to http://127.0.0.1/Phoenix /index.php

Related

I have done my codes but the page not working

my web that I have coded not uploaded as I expected it show me the directory instead of my page.
when you work in Zamp software, you create a folder in the htdocs folder and then drop your projects in it. For example, if the folder name in the htdocs folder is test and the project name is one, you should go to localhost / test / one. php When you go to this path, the project runs directly. There is another way that you went this way. Write localhost / index, which you opened correctly. Now look for the name of your project in this section and click on it. But if there is no project or the project does not load, there is something wrong with your workplace. Example of code errors and your work path I hope this article has helped you

How to access cpanel hosted PHP file

I have uploaded my .php files into cPanel. lets say my main domain is abcde.com. Then I created a subdomain called gisWeb.
Now in file manager under /home/abcdec I can see a directory called gisWeb.abcde.com. I uploaded an index.html file into this directory and tried to run it by browsing http://gisWeb.abcde.com/index.htmlbut I'm getting site cant reach page. `
We can’t reach this page.
Try this
Make sure that you’ve got the right web address:`
How can I access my files.What should be the url?
Please help me.
Thanks
Problem could be one of these.
1. Sub-Domain you created may not have propagated.
2. You may need to put the files in public_html folder inside gisWeb.abcde.com

Magento 1.9.1.0 product images are not showing after migrating

I've migrated my magento website from demo to live server, imported database, same files and everything from demo version, and changed url's in database, but for some reason products images which have been working on demo site are not showing up on live.
Now, i've tried:
Delete /var/cache, /var/sessions
Delete /media/cache
Move /media/catalog/product to /media/import and import products through admin panel using csv
Import products using csv
Replace strings in database
[UPDATE]: Forgot to mention that i've tried to chmod /media and /var folders recursively with 777 rights
Also, i've tried removing .htaccess file from /media folder - didn't made any difference.
The interesting thing is that on demo website, when i open url like: http://mydemowebsite/magento_demo/media/catalog/product/i/m/img_1204_image_name_1_1_1_1_1_1_1_1_1_1.jpg
i can see the image BUT when i go to /media/catalog/product/i/m/ i can't find img_1204... file anywhere. Crazy, huh... ?
and when i open the same url but with my live websites domain name - i have blank page.
[UPDATE]: I've tried editing get.php file, and it seems that when i try to access image through url on my live site, if i'll add echo "something" - the text will appear in the browser.
If i edit get.php on my demo website - text doesn't appear at all. Even if i add die('something') at the beginning of the file.
Can anyone explain me what is happening and how can i fix this ?
Thanks in advance!
Found the problem myself.
Thanks to everyone who tried to help, but the problem was:
FTP client shows only up to 10k images per folder. That folder had more than 10k files, and when i downloaded website files from demo server - i've downloaded only those 10k images per folder.
And that's why they didn't show up on live website

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

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