I seriously need help

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

I seriously need help

Postby TheOneAndOnly » 18. October 2009 06:44

Ok this is probably going to sound stupid, and I don't care cause I'm a total noob and I know it. I need help using XAMPP. I've been trying to create a website, and I heard that you can use XAMPP to create a free server on your PC to view and work on the site script. From what I've gathered from online discussions is that you're supposed to put the script into the htdocs file then go to http://localhost/nameoffile/, and you should be able to see the site. I've downloaded a few already made scripts online and tried doing this, but it never works. For example, lets say I download the Dolphin script, which is supposed to be a social networking script, after I put it into the htdocs file and try viewing it, I get this screen- http://i611.photobucket.com/albums/tt19 ... 89/web.jpg For other scripts, sometims I get another screen that shows the site folders, but when I click on them, it take me to a blank page. Either I'm doing something wrong and I'm retarded, or online tutorials fail at helping out beginners. So can someone please explain to me in simple step by step terms what I have to do once I download a script in order to see what it actually looks like on XAMPP? Thanks in advance
TheOneAndOnly
 
Posts: 9
Joined: 18. October 2009 06:30

Re: I seriously need help

Postby Izzy » 18. October 2009 07:42

When posting in here please try and break up your lines into easier to read paragraphs, as when it is all together in one paragraph it is very hard to read and understand, thanks.


Type here exactly what you type in your browser to access your files in the htdocs folder?


To troubleshoot this, first remove any files you added to the htdocs folder so it is just as it was when you Installed XAMPP - in the default state.

Tell me what version of XAMPP?
Tell me which Windows OS?

Did you start the Apache and the MySQL servers using the XAMPP Control Panel and are they showing a green running indication?

What do you see when you type http://localhost in your browser after making sure Apache and MySQL are running and after removing your own files?

What do you see when you type http://127.0.0.1 in your browser after making sure Apache and MySQL are running and after removing your own files?

Your screen-cap is telling me that the server is not running and so is not parsing your php files but showing the raw php code.

Read the \xampp\apache\logs\error.log file for any clues.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: I seriously need help

Postby TheOneAndOnly » 18. October 2009 08:38

Izzy wrote:When posting in here please try and break up your lines into easier to read paragraphs, as when it is all together in one paragraph it is very hard to read and understand, thanks.


Type here exactly what you type in your browser to access your files in the htdocs folder?


To troubleshoot this, first remove any files you added to the htdocs folder so it is just as it was when you Installed XAMPP - in the default state.

Tell me what version of XAMPP?
Tell me which Windows OS?

Did you start the Apache and the MySQL servers using the XAMPP Control Panel and are they showing a green running indication?

What do you see when you type http://localhost in your browser after making sure Apache and MySQL are running and after removing your own files?

What do you see when you type http://127.0.0.1 in your browser after making sure Apache and MySQL are running and after removing your own files?

Your screen-cap is telling me that the server is not running and so is not parsing your php files but showing the raw php code.

Read the \xampp\apache\logs\error.log file for any clues.


-To access the file in my htdocs i just type in http://localhost/ and then what ever the name of the file is. For example I usually name it test.php, so I type in http://localhost/test.php

- I have XAMPP Version 1.7.2

- I am running Windows Vista Home Premium 32 bit

- Yes, Apache and MySQL are running

- When I tyoe http://127.0.0.1 into my browser, I get the XAMPP Homepage which tells me "Congratulations:
You have successfully installed XAMPP on this system!"
TheOneAndOnly
 
Posts: 9
Joined: 18. October 2009 06:30

Re: I seriously need help

Postby Izzy » 18. October 2009 08:42

What about this one:
What do you see when you type http://localhost in your browser after making sure Apache and MySQL are running and after removing your own files?
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: I seriously need help

Postby TheOneAndOnly » 18. October 2009 08:46

Oops somehow missed that one. I see the same screen with the same "Congratulations: You have successfully installed XAMPP on this system!" message.
TheOneAndOnly
 
Posts: 9
Joined: 18. October 2009 06:30

Re: I seriously need help

Postby Izzy » 18. October 2009 08:53

OK, thats fine and eliminated a common IPv6 issue.

To make sure that XAMPP is working as it should click on a few demos and the phpMyAdmin link etc. in the Welcome page.

All should give good results as the Welcome page is basically all php scripts.

Once you are happy that XAMPP is working as it should by running the demos then you can delete the index.php and the index.html in the htdocs folder, then you are ready to add your own files.

If you want to access the Welcome page after deleting the index.php file in the htdocs folder you only need to go to http://localhost/xampp/index.php


Now, add your test.php file into the htdocs folder but If you like paste your test.php code if you feel it is at fault.

Then type http://localhost/test.php and see what the result is.

BTW in Vista you should be logged in as an administrator and have UAC disabled to get the most out of your system and the servers.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: I seriously need help

Postby TheOneAndOnly » 18. October 2009 18:27

I clicked on all the demos and the MyPhpAdmin link and evrything was working fine.

I removed the index.php and index.html from the htdocs folder, and added the test.php. I downloaded another script cause I though that maybe the script I was using was just not working. After going to http://localhost/test.php I get that screen that I mentioned in my first post that shows the site folders. I'm not sure if it's supposed to be like this, or what I should do next. Here's a screengrab- http://i611.photobucket.com/albums/tt19 ... 9/web2.jpg

And yes I am logged in as the administrator.
TheOneAndOnly
 
Posts: 9
Joined: 18. October 2009 06:30

Re: I seriously need help

Postby Izzy » 18. October 2009 23:08

TheOneAndOnly wrote:I clicked on all the demos and the MyPhpAdmin link and evrything was working fine.
That's very good and shows that XAMPP is fully functional.

TheOneAndOnly wrote:I removed the index.php and index.html from the htdocs folder, and added the test.php.
You removed what is called the index files and put a folder called test.php instead of a file called test.php which contains php code.

You should put your own index.php or index.html file in the htdocs folder, one perhaps that came with your set of scripts.


TheOneAndOnly wrote:I downloaded another script cause I though that maybe the script I was using was just not working. After going to http://localhost/test.php I get that screen that I mentioned in my first post that shows the site folders.
You are not currently loading a script in your browser when you go to http://localhost/test.php but rather a folder containing lots of other folders that may well contain scripts or html files.

Clearly what is happening in your browser is supposed to happen until you replace those index files for XAMPP you deleted with one of your own or at the very least a file that you can call in your browser.

So to test out what I have said above first rename the folder you have called test.php to simply test then open your text editor (notepad for example) and copy and paste this code, exactly as I have posted it in the code section below, into a blank page:
Code: Select all
<?php
    phpinfo();
?>
Save the file as test.php into the htdocs folder and then in your browser type http://localhost/test.php

You should now see your php settings.

Now you are getting the idea, create an index.html or an index.php file in your text editor or load one from your downloaded scripts and put that in your htdocs folder then type http://localhost and it should then give you the contents of the index file not a list of other folders.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: I seriously need help

Postby TheOneAndOnly » 19. October 2009 03:48

Ok, I did what you said and entered in that code you posted, and indeed get the php settings page.

After renaming the downloaded script's folder to "Test" and then putting the index.php that came with the script into the htdocs, I get this page http://i611.photobucket.com/albums/tt19 ... 9/web3.jpg I seriously don't know why this is being so hard lol. If it's not too much to ask, do you think maybe you, or anyone else reading this right now, could make a tutorial for me and post it on youtube. Maybe by watching someone else do it, I can pin point the exact step I am doing wrong.
TheOneAndOnly
 
Posts: 9
Joined: 18. October 2009 06:30

Re: I seriously need help

Postby Izzy » 19. October 2009 05:40

OK, this appears to be an issue of misunderstanding what is written on the XAMPP for Windows Home Page - the page you downloaded XAMPP from - which after I read it I can see where you are coming from.



Move all the files and folders from the folder you called Test into the htdocs folder and then delete the Test folder, you don't need it and you can also delete the test.php file you created in the htdocs folder as you no longer need that.

You already have the index.php file that came with the script in the htdocs folder and now you will have all the other files and folders that came with script in the htdocs folder.

Now just type http://localhost in your browser and you will be just fine as the index.php code should now find all the files and folders it needs.

You see, the index.php code new nothing about the script's other folders and files being in the Test folder, so the server could not find them and chucked a wobbly - Object not found!.


If you get any errors again read the xampp\apache\logs\error.log file in a text editor like notepad and it will tell you what is wrong - if you don't understand the error messages then post the relevant message here, not the whole file as by now it will be getting huge.

When next you stop the Apache server running then you can delete the error.log file completely, to clean it up, as Apache will create it again the next time you start the Apache server.

Good luck and I seriously expect that by moving the folders and files out of the Test folder and into the htdocs folder then deleting that Test folder that you will be able to move forward.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: I seriously need help

Postby TheOneAndOnly » 20. October 2009 01:32

I moved all the files and folders from the Test folder into the htdocs, including the index.php, but when I go to http://localhost, I get a page telling me-

"Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\xampp\htdocs\inc\config.php on line 554

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\inc\config_packageaccess.php:9) in C:\xampp\htdocs\index.php on line 39"

I've checked the error log and it says as follow-

[Mon Oct 19 20:23:05 2009] [notice] Digest: generating secret for digest authentication ...
[Mon Oct 19 20:23:05 2009] [notice] Digest: done
[Mon Oct 19 20:23:06 2009] [notice] Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Mon Oct 19 20:23:06 2009] [notice] Server built: Jul 22 2009 11:35:54
[Mon Oct 19 20:23:06 2009] [notice] Parent: Created child process 7556
[Mon Oct 19 20:23:07 2009] [notice] Digest: generating secret for digest authentication ...
[Mon Oct 19 20:23:07 2009] [notice] Digest: done
[Mon Oct 19 20:23:08 2009] [notice] Child 7556: Child process is running
[Mon Oct 19 20:23:08 2009] [notice] Child 7556: Acquired the start mutex.
[Mon Oct 19 20:23:08 2009] [notice] Child 7556: Starting 150 worker threads.
[Mon Oct 19 20:23:08 2009] [notice] Child 7556: Starting thread to listen on port 443.
[Mon Oct 19 20:23:08 2009] [notice] Child 7556: Starting thread to listen on port 443.
[Mon Oct 19 20:23:08 2009] [notice] Child 7556: Starting thread to listen on port 80.
[Mon Oct 19 20:23:08 2009] [notice] Child 7556: Starting thread to listen on port 80.
[Mon Oct 19 20:23:12 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
[Mon Oct 19 20:23:12 2009] [warn] RewriteCond: NoCase option for non-regex pattern '-d' is not supported and will be ignored.

Just wanted to add that I was trying a different script this time around than the one I tried last time, not sure if that is of any importance. Also thanks for the help so far.
TheOneAndOnly
 
Posts: 9
Joined: 18. October 2009 06:30

Re: I seriously need help

Postby Izzy » 20. October 2009 02:15

TheOneAndOnly wrote:...but when I go to http://localhost, I get a page telling me-

"Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\xampp\htdocs\inc\config.php on line 554

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\inc\config_packageaccess.php:9) in C:\xampp\htdocs\index.php on line 39"
The scripts you downloaded are not compatible with the latest version of PHP 5.3 included in 1.7.2 of XAMPP.

I suggest you check with the site that you acquired the scripts from and see if and when they will be upgrading their scripts.

Alternatively, perhaps you could uninstall XAMPP 1.7.2 and install an older version that has PHP 5.2 - XAMPP 1.7.1 comes to mind - you will find a link to older XAMPP versions on the XAMPP for Windows home page.

These advanced forum search results for deprecated may give you an insight into this issue.

The second error relates to an issue with the script that may have resulted if you edited or altered it in some way - if you did not alter the scripts in any way by editing then there is also an error in the code of your downloaded script, so see the recommendations for the first script error.


TheOneAndOnly wrote:I've checked the error log and it says as follow-
There are no errors now just notices and warnings - the warnings may be related to the script being out of date perhaps - you can ignore those entries but when you see [error] messages then they are the ones you need to take notice of.

TheOneAndOnly wrote:Just wanted to add that I was trying a different script this time around than the one I tried last time, not sure if that is of any importance.
Before downloading a script again find out the system requirements, or in Dolphin they call them Technical Requirements, for running the script.
http://www.boonex.com/trac/dolphin/wiki/DolTech
IMHO you should start with a much simpler script than Dolphin which requires many additional server configurations before it can be installed in XAMPP.

You will find the current versions of all XAMPP components in the readme_en.txt file in the xampp folder.

Perhaps you can tell me what script you are downloading so I can take a look at by trying to replicate your issues with it on XAMPP 1.7.2 and XAMPP 1.7.1 that I have installed for this very purpose.


At least you are now moving forward, you now have to make sure your scripts are compatible with the versions of components contained in the XAMPP version your have installed.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: I seriously need help

Postby TheOneAndOnly » 20. October 2009 19:27

Even after installing an older version of XAMPP, I still can't get them to work. How about this, could you give me the link to a script that you have used and are 100% sure it works. That way I can know for sure if the problem is with the scripts I'm downloading (maybe I have really bad luck), or if the problem is something I'm doing wrong. Also, let me know what version of XAMPP to use with that particular script.
Edit: Forgot to ask, is it possible to run a different version of XAMPP without having to unsintall the currently installed one?
TheOneAndOnly
 
Posts: 9
Joined: 18. October 2009 06:30

Re: I seriously need help

Postby Izzy » 20. October 2009 23:53

This is a very simple gallery of images script that works fine in XAMPP 1.7.2
http://www.og9.co.uk/?s=page&id=2

Download then extract the contents of the zip file into the htdocs folder so you have index.php and 2 empty folders gallery and source then follow the instructions on the above page by adding some images into the source folder and then start Apache and MySQL.

Next type http://localhost in your browser.

You should now see a page with thumbnails of all the images that you copied into the source folder and if you click on a thumbnail it will load the full image - your browser's back button will return you to the thumbnail page.

Tested and works fine in a clean fresh unaltered "out of the box" XAMPP 1.7.2 version.

Here are a couple of free script links to wet your appetite:
http://www.scriptdungeon.com/
http://www.hotscripts.com/category/php/
(the above is where I download the gallery script from under the tab New Listings)


See this topic re more than 1 instance of XAMPP:
viewtopic.php?f=16&t=37546
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: I seriously need help

Postby TheOneAndOnly » 21. October 2009 16:13

Ok the image gallery worked fine. Atleast now I know that I'm not completely mentally impaired. Now I just gotta find out what I'm doing wrong with the other scripts.

Edit- I downloaded the phpizabi script, and so far everything seems to be working, problem is its asking me for my mysql database info and I'm not really sure where to get it from. Here's a screen grab http://i611.photobucket.com/albums/tt19 ... 9/web4.jpg Where do I go to get this info?
TheOneAndOnly
 
Posts: 9
Joined: 18. October 2009 06:30

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 136 guests