Forum Moderators: mack
Am new to programming but vry interested to know more.
Basically hv volunteer myself to help maintain a new site. However the site was created in php and i cant run them on my Xp machine.
Got myself a php book and they recommended tht php best run on apache instead of IIS server.
So now i am stuck. Any suggestion pls?
Rgs
NOB
Installing PHP5 Under Windows XP and Apache [webmasterworld.com]
Installing a new web server: Apache2, PHP5, MySQL4 and PHPmyAdmin [webmasterworld.com]
English / Deutsch / Francais / Nederlands
You can also reach it by entering: [localhost...] in your browser.
For me, clicking on English does the trick - it points to this address: [localhost...] - which sets the language to use for this page: [localhost...]
The latter page has the same language options listed in the navigation panel on the left side.
I really don't know why English doesn't work for you. All four languages should really work out of the box. Perhaps your download was corrupted, so that you should try downloading another file and installing again? That's about all i can think of at the moment.
Think i didnt word myself correctly.
I got to the page tht shows the languages..but after i click the Enlish option, it report this error message:
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.
--------------------------------------------------------------------------------
Please try the following:
Open the localhost home page, and then look for links to the information you want.
Click the Refresh button, or try again later.
Click Search to look for information on the Internet.
You can also see a list of related sites.
HTTP 500 - Internal server error
Internet Explorer
Rgs
Nob
At least there's one good thing about this. It means that you have Apache running as a web server, so that part worked just like it should.
Is it the same if you try the other languages listed?
So, what does this mean?
An error 500 usually occurs when there's an error in the programming of the page you're trying to display. It can also occur if the server tries to include a file that isn't there (404 leading to 500), if there's somthing wrong with file permissions (eg. "read only" when "execute" was expected), and all kinds of stuff.
Here's a nice thing about Apache: It keeps an error log by default. Look in the directory
C:\apachefriends\xampp\apache\logs There you'll se a simple text file called "error.log". You can open it in notepad. Look at the entries for the time you tried to open that page and see what's causing the error. You can look at the same timestamp in the file "access.log" too, to find more information.
In my experience, the most usual thing giving this error is a missing semicolon (;) somewhere in the file - ie. a programming error. This is hard to track, however. Plus, you really shouldn't have to do that, as the files that come with xampp don't have errors like that. That's what led me to say that your download might have been corrupted.
---
Or, did you download the BETA version [apachefriends.org]?
If that is the case, try downloading version 1.4.10a [prdownloads.sourceforge.net] or version 1.4.11 [prdownloads.sourceforge.net] from sourceforge. If your problem is with 1.4.11, just "downgrade" to 1.4.10a - there'll be no loss of significant features, and it will be easy to upgrade later on, as there's an upgrade package [apachefriends.org] for that if you want to.
Here's the page with install info [apachefriends.org], it also details how to uninstall. Basically it's just selecting "uninstall" from your start menu, in the apachefriends/xampp folder.
I think it's the easiest option to just download and install one of the versions mentioned above.
Hope this helps.
Sry to trouble you agn.
Was doing nothing in the office and i d/l the wampp in my office. It works fine.Managed to get to the content in wampp folder.
My question is...sry it sounds stupid. Where shud we put the wrking files and folder? With IIS, we place them in the c:/Inetpub\Wwwroot\my folder right?
Thanks agn
Nob
The path could be something like: c:\apachefriends\xampp\htdocs
Youl'll see that there's a few sub folders already. You can just create new subfolders and they will show up in the browser as subfolders to localhost:
...\htdocs\myFolder\ on the PC becomes localhost/myFolder/ in the browser
The XAMPP site has very bad navigation, but there's some extra tips in the readme section (bottom) of this page [apachefriends.org] and also some extra information in the FAQ [apachefriends.org]
Thanks for the patience wit me.
Already got wampp installed and i can see the index.php when i click the English tab.
However, when i trace the file to C:\apachefriends\xampp\htdocs\xampp , i cant get it to show on the browser when i double click it.
That goes to the test files i tried to create myself.
Any suggestion pls?
Thanks.
Nob
You'll notice this in the address bar of your browser:
file:///C:/apachefriends/xampp/htdocs/xampp/some-file.php
Meaning that you've opened a local file. You need to use the "localhost" path in the browser, like this:
http://localhost/xampp/some-file.php
Note that "localhost" is equal to "C:\apachefriends\xampp\htdocs\".
Even though this is the same file, the Apache webserver doesn't "see" it unless you use the localhost name. Apache can't "see" your C drive as such, it only "knows" that some part of your file system is localhost, and it needs this part in the URL in order to process the files. You don't need to enter the "http-colon-slash-slash" part of the URL though.
When you browse via [localhost...] it's http protocol, meaning your browser asks the server on your own computer to deliver the file via web protocol - i.e., generate a webpage. If you have c:\xampp\htdocs\yourfile.php in the address bar, it's just going to try to open the file without the webserver, and php files are text files. Normally, you won't want to open php files this way with a browser; you'll use a text editor to look at the files themselves, and a browser to try them out to see how the webpage looks (using http protocol, [localhost)....] Try downloading jedit or some good editor with php highlighting to see the file itself.
XAMPP has already installed two databases for you. MySQL is one, the other is SQLite. If MySQL doesn't start automatically with XAMPP you can do one of these two things:
1) Install it as a Windows XP service:
Use the script "mysql_installservice.bat" in your folder "\xampp\mysql\" (just double click it). Then MySQL will start when you start Windows XP, so it's always running.
2) Start and stop it when you need it
Use the scripts "mysql_start.bat" and "mysql_stop.bat" - both are located in your "\xampp\" folder.
If you have done (1) you don't need to do (2). Personally i prefer method (2) but i have tried both and they work nicely. If you don't run Windows XP or Windows 2000 you cannot use method (1).
In the XAMPP right menu there's an item called PhpMyAdmin [phpmyadmin.net]. Basically this is a tool to edit and create databases. MySQL also comes with a few different tools [dev.mysql.com], some are commandline tools though. Also, the DMOZ has this list of MySQL tools [dmoz.org] - you can use any of these to admin your databases
You might also want to try the MySQL Administrator [mysql.com] and the MySQL Query Browser [mysql.com]. Both are free tools from MySQL.com - they do different things, though, but especially the Administrator is a very powerful tool.
There's a nice manual at MySQL.com: English [dev.mysql.com], Other languages [dev.mysql.com]. You might want to start with Chapter 3, the MySQL Tutorial [dev.mysql.com]