Newbe, move old site into xampp 1.7.2

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Newbe, move old site into xampp 1.7.2

Postby jackb123 » 21. November 2009 21:37

Downloaded old site, + did a mysqldump of db files.

person who created site, left town. I would like to start revamping my old site, off line thru xampp.
( created in 2003, has html, php, mysql, and I believe css.

Installed xampp 1.7.2 32 bit ver.

Opened firefox3.5, and go to htdoc's\ newfolder, then open: home index page, but can only see the text, NO headers, footer,
side nav, etc.

how do I get it all working together so I can make a copy, THEN start trying to mess with changing things.

Any help is appreciated.

Jack
jackb123
 
Posts: 13
Joined: 21. November 2009 21:06

Re: Newbe, move old site into xampp 1.7.2

Postby Wiedmann » 21. November 2009 21:51

Opened firefox3.5, and go to htdoc's\ newfolder, then open: home index page,

How did you open the home page exactly?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Newbe, move old site into xampp 1.7.2

Postby jackb123 » 21. November 2009 22:12

firefox, open file under htdocs\ Mysite, index
jackb123
 
Posts: 13
Joined: 21. November 2009 21:06

Re: Newbe, move old site into xampp 1.7.2

Postby Brabax » 21. November 2009 22:19

If I understand correctly you want to view these files through the server software instead of viewing 'em "raw".
If you want to do so you'll need to address these files via http://localhost/_PATH_TO_FILE_

Brabax
We've already reached tomorrow's yesterday but we're still far away from yesterday's tomorrow.
User avatar
Brabax
 
Posts: 30
Joined: 04. April 2003 18:37
Location: Espelkam*

Re: Newbe, move old site into xampp 1.7.2

Postby jackb123 » 21. November 2009 22:26

jackb123
 
Posts: 13
Joined: 21. November 2009 21:06

Re: Newbe, move old site into xampp 1.7.2

Postby Brabax » 21. November 2009 23:00

Yes and no :)

If you look into your xampp dir (probably C:\xampp) there is a directory called "htdocs" that is your document root respective your dir of which you can see the content when you open "http://localhost".
If htdocs contains a dir called "www" and this dir contains a dir called mysite and if mysite contains your data (the website) then yes, http://localshost/www/mysite would be correct.

Brabax
We've already reached tomorrow's yesterday but we're still far away from yesterday's tomorrow.
User avatar
Brabax
 
Posts: 30
Joined: 04. April 2003 18:37
Location: Espelkam*

Re: Newbe, move old site into xampp 1.7.2

Postby jackb123 » 21. November 2009 23:10

Ok, then we are back to org. problem as it only shows the text, not showing my header, sidenav, or any images.

Do I need to point the php or db any thing?

Thanks
jackb123
 
Posts: 13
Joined: 21. November 2009 21:06

Re: Newbe, move old site into xampp 1.7.2

Postby Izzy » 21. November 2009 23:22

A correctly installed XAMPP should run "out of the box" with no additional settings.

Is Apache and MySQL showing a green running indication in the XAMPP Control Panel?

What do you see when you type only http://localhost in your browser?
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Newbe, move old site into xampp 1.7.2

Postby jackb123 » 21. November 2009 23:34

Did uninstall / install

c:\zampp

Yes, Apache and MySQL are showing a green running indication in the XAMPP Control Panel. ( like before)

http://localhost in your browser brings up xampp.

Status shows green for the following mysql,php,perl, apache, https, cgi, ssi, and IPv4.

I'll await an answer before moving old site, into htdocs, or importing my sql db.

Thanks,
jackb123
 
Posts: 13
Joined: 21. November 2009 21:06

Re: Newbe, move old site into xampp 1.7.2

Postby Brabax » 21. November 2009 23:39

There seems to be a problem with the script/site.

Could you give any information, what this script does when the site is loaded (meaning either one of these: index.php, start.php, index.htm)?

Brabax
We've already reached tomorrow's yesterday but we're still far away from yesterday's tomorrow.
User avatar
Brabax
 
Posts: 30
Joined: 04. April 2003 18:37
Location: Espelkam*

Re: Newbe, move old site into xampp 1.7.2

Postby Izzy » 21. November 2009 23:45

jackb123 wrote:Yes, Apache and MySQL are showing a green running indication in the XAMPP Control Panel. ( like before)
That's as it should be.

jackb123 wrote:http://localhost in your browser brings up xampp.
Then XAMPP is installed correctly as the XAMPP Welcome pages are mostly PHP scripts.

jackb123 wrote:Status shows green for the following mysql,php,perl, apache, https, cgi, ssi, and IPv4.
Another indication that XAMPP is installed correctly.

jackb123 wrote:I'll await an answer before moving old site, into htdocs, or importing my sql db.
To what question exactly?

There seems to be a problem with the script/site.
What script?

Remember that we here have no idea what you see or what you do on your PC unless you give accurate detailed information including all error messages.

Look in the \xampp\apache\logs\error.log file for clues.
Last edited by Izzy on 21. November 2009 23:48, edited 1 time in total.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Newbe, move old site into xampp 1.7.2

Postby jackb123 » 21. November 2009 23:47

if you go to htdocs, click index, It works, does come up.
As to my real site on isp,all works as it should.

Maybe I'm not following right steps, copy files to new subfolder of htdocs (mysite) ; go to phpadmin, import the mysqldump file i made. Not sure.

Thanks
jackb123
 
Posts: 13
Joined: 21. November 2009 21:06

Re: Newbe, move old site into xampp 1.7.2

Postby Izzy » 21. November 2009 23:52

You must type for example http://localhost/mysite/myscript.php in your browser for php scripts to be parsed by the web server.

You can't simply click on a php file or you will only see text.

HTML files are rendered by your browser so clicking on an index.html file should show the rendered content in the browser and that is why you can see "It Works" when you clicked on the index.html file in the htdocs folder.

Try clicking on the index.php file in the same folder and you will see what I mean.
You have already tested this index.php file in the correct manner by typing http://localhost in your browser and seeing the XAMPP Welcome Page.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Newbe, move old site into xampp 1.7.2

Postby Brabax » 22. November 2009 00:12

Izzy wrote:
Brabax wrote:There seems to be a problem with the script/site.

What script?

Remember that we here have no idea what you see or what you do on your PC unless you give accurate detailed information including all error messages.


That'S why I asked him to give some information about the script *grin*.

Brabax
User avatar
Brabax
 
Posts: 30
Joined: 04. April 2003 18:37
Location: Espelkam*

Re: Newbe, move old site into xampp 1.7.2

Postby jackb123 » 23. November 2009 22:49

I hope this is what you mean.

this is from the main page, when site is opened;

<?
include './config/config.php';
include './libraries/output.php';
include './libraries/siteDB.php';
include './libraries/session.php';

$dbConn = new siteDB;

print_header("Home");
?>
<BR>
<BLOCKQUOTE>
<B><U>Our Info Text</U></B><BR>
More Info Text.<BR>
<BR>
Additional, More Info Text.<BR>

<td>
<img src="/images/sample.jpg"
align ="bottom" width="200" height="275">
</td>

</BLOCKQUOTE>
<?
print_footer();

?>

Any help is appreciated.

Thanks
jackb123
 
Posts: 13
Joined: 21. November 2009 21:06

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 132 guests