I Installed Xampp on Windows XP but I'm Having Trouble, Plz

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

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby youradrenalinefix » 09. January 2013 13:28

Hi Guys,

I wanted to write to say Thanks for the help... I'm finally up and running and you guys ROCK!!

(I just don't understand why the system wont pickup <?php include ?> tags within an html page but I can live with that I guess ;) )

BTW, If anyone ever comes up with a solution for this, please do let me know...

Until then I thank you all for your EXCELLENT HELP!!

Take Care,

Stuart K
youradrenalinefix
 
Posts: 17
Joined: 03. January 2013 13:16
Operating System: Windows Home XP

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby Altrea » 09. January 2013 18:19

youradrenalinefix wrote:I wanted to write to say Thanks for the help... I'm finally up and running and you guys ROCK!!

Thank you very much :D

youradrenalinefix wrote:(I just don't understand why the system wont pickup <?php include ?> tags within an html page but I can live with that I guess ;) )

BTW, If anyone ever comes up with a solution for this, please do let me know...

As i said, .html files are plain text. Apache can't guess in which files php blocks are and in which not (Someone maybe put php blocks in .jpg graphic files too, who knows :shock: )
But XAMPP Apache is configurated, that just .php files contain php code so that this are the only files sended through the php interpreter.

As i said too, there is a not recommend way to teach Apache to send even all .html files through the php interpreter too.
I have described it here for example: viewtopic.php?f=16&t=48838&p=187993

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby youradrenalinefix » 26. September 2013 16:30

Hello again to everyone,

I recently replaced the HD on the computer which I had XAMPP installed on so I lost all configurations and such. (I know I coulda saved all this but I wanted to start fresh)

I re-reviewed all the posts in this thread (including my own) to set things back up but I've hit a problem.

I have a website and a subdomain that looks like so. (on my local machine)

Website:c:/Folder/Folder 2/Website Data

Which I created an alias for and which works that looks like this;

ALIAS /Website "c:/Folder/Folder 2/Website Data"
<Directory "C:/Folder/Folder 2/Website Data">
Require all granted
</Directory>

All that works, My Problem begins here;

I also have a subdomain on the www but on my folder structure, it looks like this;

c:/Folder/Folder 2/Website Data/Sub_domain (It just struck me that the underscore may be the problem??)

and I have an alias for this that looks like;

ALIAS /sub "c:/Folder/Folder 2/Website Data/Sub_domain"
<Directory "C:/Folder/Folder 2/Website Data/Sub_domain">
Require all granted
</Directory>

but when I try to access this (which is all php files) via localhost/sub I get a blank screen.

Not a 404, just blank.

I've tried all kinds of things and read & re-read all the posts in this thread but still just get a blank page when accessing http://localhost/sub/ or even http://localhost/sub/index.php and if anyone wouldn't mind showing me what's wrong I'd be most appreciative and I thank you all once more. (In advance)

Thanks,

Stuart K
youradrenalinefix
 
Posts: 17
Joined: 03. January 2013 13:16
Operating System: Windows Home XP

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby JJ_Tagy » 26. September 2013 17:46

I usually see blank when someone uses pure php with short tags but fails to allow short tag usage in php.ini. Perhaps you can view source of index or post it?
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby youradrenalinefix » 26. September 2013 18:01

Hi JJ_Tagy,

I didn't post the code because there's not much to see out of the ordinary and pretty much everything is in include files but I can assure you that I am using full tags (ie: <?php ... ?> vs <? ... ?> and I don't know much of anything about the php.ini


I've been hoping for some input from @Altrea on this one as he was very helpful in getting me running the 1st time around


AS always, I welcome everyone's comments and I thank you all
youradrenalinefix
 
Posts: 17
Joined: 03. January 2013 13:16
Operating System: Windows Home XP

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby Altrea » 26. September 2013 18:59

Hi youradrenalinefix,

youradrenalinefix wrote:I've been hoping for some input from @Altrea on this one as he was very helpful in getting me running the 1st time around

Well, JJ_Tagy and other members here are providing good help too. The hint with short tags was a good one.

Helpful information would be the entries of your \xampp\apache\logs\access.log of that single request
and the sourcecode view your browser shows of that page request.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby youradrenalinefix » 26. September 2013 20:05

Hi again everyone,

Thanks for the help Altrea, Good to hear from you.

Here are the last two attempts

::1 - - [26/Sep/2013:15:03:20 -0400] "GET /cla/ HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36"
::1 - - [26/Sep/2013:15:06:03 -0400] "GET /cla/ HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36"

Also, When viewing source of http://localhost/sub/ or http://localhost/sub/index.php reveals nothing. Not even a single line of anything.

Any ideas?
youradrenalinefix
 
Posts: 17
Joined: 03. January 2013 13:16
Operating System: Windows Home XP

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby Altrea » 26. September 2013 20:12

::1 - - [26/Sep/2013:15:03:20 -0400] "GET /cla/ HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36"
::1 - - [26/Sep/2013:15:06:03 -0400] "GET /cla/ HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36"


Both requests responsed with a HTTP Status 200 which means everything "okay". So a ressource (page) could be found and is transported back to the requester.
Without knowing the browser sourcecode of that "white page" it is difficult to say whats wrong.

What i could also see from that log is, that you don't requested a specific file just the location /cla/.
So it could be that there is a page in it which gets processed with a higher priority then the file you would like to request.
The default priority (starting with the highest one) would normally be index.php index.pl index.cgi index.asp index.shtml index.html index.htm
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby youradrenalinefix » 27. September 2013 01:34

HI Altrea,

I thank you immensely for your assistance. Where are you BTW?? (state or country). I'm saying hello from Florida USA.

Anyways... After reading and pondering on what you last wrote regarding another file taking priority I went and looked through the directory for any other variations of index.anything and dont see anything besides a "memberindex.php"



I've also tried cla/index.php, yet still a blank screen.

As always Im up for suggestions and I do appreciate everyone's assistance on this.

Here is a snippet from the very FIRST LINE of index.php

Code: Select all
<?php
 $PageTitle = 'lorem ipsum  jhsdglfsjgdlf gjsdhsd';
 $metadescription ='lorem ipsum  jhsdglfsjgdlf gjsdhsd';
 include('BeginningofPage.php');
?>

Followed by content...

BeginningofPage.php starts with PHP logic, then fleshes out the top half of the page and all this works when viewed online yet it's bright and blank on XAMPP.

Update:

I learned if I attempt to reach any inner pages it gives back a mysql connect error

Warning: mysql_connect(): Access denied for user 'OBSCURED'@'localhost' (using password: YES) in C:\SameFolderStructureasAbove\mysql_initialization.php on line 286

I guess it's trying to connect to the DB that serves the content to my live site??

ANy ideas are appreciated
youradrenalinefix
 
Posts: 17
Joined: 03. January 2013 13:16
Operating System: Windows Home XP

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby Altrea » 27. September 2013 05:11

Hi youradrenalinefix,

youradrenalinefix wrote:Where are you BTW?? (state or country). I'm saying hello from Florida USA.

Then good morning from good old Germany to the beautiful East Coast :D It's 6 a.m. at the time here.

youradrenalinefix wrote:I learned if I attempt to reach any inner pages it gives back a mysql connect error

Warning: mysql_connect(): Access denied for user 'OBSCURED'@'localhost' (using password: YES) in C:\SameFolderStructureasAbove\mysql_initialization.php on line 286

I guess it's trying to connect to the DB that serves the content to my live site??

That would be the part where the sourcecode view from your browser would be very helpful, so please request the page again and search for the sourcecode view of your favorite browser (ctrl-U is a common short cut for it, or rightclick context menu anywhere on the browsers page)

Your inner page is trying to connect to a database on your local webserver. If it is a live database on the real page or not i can't say.

Another helpful ressource could be your \xampp\php\logs\php_error_log where your php errors where logged.

youradrenalinefix wrote:Here is a snippet from the very FIRST LINE of index.php

Code: Select all
<?php
 $PageTitle = 'lorem ipsum  jhsdglfsjgdlf gjsdhsd';
 $metadescription ='lorem ipsum  jhsdglfsjgdlf gjsdhsd';
 include('BeginningofPage.php');
?>


Please add another three lines of code at the very top of that page to enable error reporting like so:
Code: Select all
<?php
// enable error reporting
 ini_set('display_errors',1);
 ini_set('display_startup_errors',1);
 error_reporting(-1);

 $PageTitle = 'lorem ipsum  jhsdglfsjgdlf gjsdhsd';
 $metadescription ='lorem ipsum  jhsdglfsjgdlf gjsdhsd';
 include('BeginningofPage.php');
?>

Errors should not be displayed on live pages, but for debugging this is very helpful.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby youradrenalinefix » 27. September 2013 13:17

Hello to Germany from Florida,

@Altrea, I tried the error reporting you suggested but was still left with a blank screen. However, after thinking about it, I imported my DB from a live server to my XAMPP localhost PHP MyAdmin and Voila. I'm able to see the content which I'm baffled over because NOT ALL of the page's content is served from a DB but it works. Although I still have one last problem. Even though all the pages are constructed as such: page.php I can't get it to pick up the CSS.

Having the site display on my local machine as it does on the web is very important as I am working on converting an existing site to a responsive design so changes in CSS are of utmost importance so I thought I'd ask you if there is a way of enabling the css to work locally?

As always, Your help is most appreciated and I thank you sincerely for your assistance.

BTW, @Altrea, Are you near Sachsenring?? The 2012 ISDE was held there last year.
http://www.youtube.com/watch?v=zV_A4obtwFs
youradrenalinefix
 
Posts: 17
Joined: 03. January 2013 13:16
Operating System: Windows Home XP

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby Altrea » 27. September 2013 17:36

youradrenalinefix wrote:However, after thinking about it, I imported my DB from a live server to my XAMPP localhost PHP MyAdmin and Voila. I'm able to see the content which I'm baffled over because NOT ALL of the page's content is served from a DB but it works.

That are great news :D

youradrenalinefix wrote:Even though all the pages are constructed as such: page.php I can't get it to pick up the CSS.
[...]
I thought I'd ask you if there is a way of enabling the css to work locally?

Have you saved asset files (images, css and js files) locally too?
If yes, then the problem must be a request issue. Asset files are requested in subrequests by the browser and the browser takes the top level url as base for these subrequests. So if your live server does have a top level domain mapped to the project folder but your xampp does not and you are requesting the project with a subfolder in the domain, requesting the asset files could fail if they are addressed relatively to your domain as base.
(Firebug is a great Firefox Plugin to debug such request issues).

It is recommend to get your local test environment as close as possible to your live server, including simulated domain name (key word: virtual hosts)

youradrenalinefix wrote:BTW, @Altrea, Are you near Sachsenring?? The 2012 ISDE was held there last year.

Badly the Sachsenring is more than 300 miles away from my home town :roll:
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: I Installed Xampp on Windows XP but I'm Having Trouble,

Postby youradrenalinefix » 28. September 2013 01:46

Hi Again Altrea,

As always, I thank you very much for your help.

All the other assests were local and had appeared to be working. Images were displaying, just without any CSS applied.

I don't know if it's the right way of fixing it but I put a dot before the file name as such. (ie; ./support_files/style.css vs /support_files/style.css)and now the css works but I'm not so keen on changing the site's files to accomodate XAMPP. I'd much rather have everything the way it was (/support_files/style.css) without the dot and modify XAMPP to use the css without the dot.

I don't know why the css wouldn't display with /support_files/style.css, yet images do / did as such /images/pic1.jpg with no dot.

If you have any idea how I could correct this from within XAMPP, I'd be most appreciative and I thank you immensely for helping me get setup Again :D

BTW, Germany won the 2012 MXoN and for 2013, the Motocross of Nations (MXoN) is being held in Germany. Not sure if it's near you but if so you should check it out. I think it's this Weekend!!
http://www.cyclenews.com/263/22364/Raci ... eview.aspx
youradrenalinefix
 
Posts: 17
Joined: 03. January 2013 13:16
Operating System: Windows Home XP

Previous

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 99 guests