Page 1 of 2

Easy XAMMP question

PostPosted: 04. July 2009 15:36
by teh-gamer
Hey all, I am new to using XAMMP and was wondering if some kind person would be willing to help me sort out a problem I am having, I want to view php scripts I write but I cannot how do I edit php ini so that I can and which php ini is the correct one? Also when editing php ini do I need the full folder destination for example "C:xammp/htdocs/xampp/foo"?
Thanks in advance

Re: Easy XAMMP question

PostPosted: 04. July 2009 15:43
by glitzi85
If you have the latest XAMPP, there is only one php.ini left (in the php folder AFAIK). In older installations the right one resides in xampp\apache\bin.

May I ask what you need to change in the php.ini?

glitzi

Re: Easy XAMMP question

PostPosted: 04. July 2009 17:19
by teh-gamer
Because I dont know how to see my test scripts on my browser window and would like a seperate folder for my test scripts

Re: Easy XAMMP question

PostPosted: 04. July 2009 17:32
by glitzi85
Then the php.ini is absolutely the wrong place to change something. It is the configuration file for the PHP parser, it has nothing to do with the Webserver Apache, where the paths can be set.

Just create in the folder xampp\htdocs another folder (eg. mytest) and put your php file (index.php) inside this folder. Then point your Browser to http://localhost/mytest
That's the easiest way of separating your Projects.

glitzi

Re: Easy XAMMP question

PostPosted: 05. July 2009 01:15
by twidlar
I have very simple questions too.

1. I installed XAMPP on WinXP GISKARD without problems. All the services are running.
2. On GISKARD, I go to localhost/ in Firefox. http://localhost/xampp (XAMPP for Windows) comes right up.
3. On WinXP GORT in the LAN I tried localhost/. Nothing. Firefox doesn't complain.
4. I turned off the WinXP firewall on GORT and GISKARD. /localhost on GORT still nothing,

What have I done wrong or left out?

Thanks

Re: Easy XAMMP question

PostPosted: 05. July 2009 09:40
by Wiedmann
"localhost" is always and only the own pc.
..> On another pc, e.g. GORT, you must use "http://GISKARD/".

Re: Easy XAMMP question

PostPosted: 05. July 2009 16:41
by twidlar
1. That brought up http://www.giskard.com/ BAD
2. I turned off both WinXP firewalls and /giskard/xampp/ came up. GOOD
3. What do I have to change in the firewalls to let GORT and GISKARD talk?
4. How do I bring XAMPP up automatically at bootup?

Thanks.

Re: Easy XAMMP question

PostPosted: 05. July 2009 17:20
by twidlar
I figured out how GORT can talk to GISKARD through the WinXP firewall. I went to the WinXP Control Panel => Firewall => Exception => Settings and turned on the FTP, SMTP, HTTP and HTTPS ports and said they were hosted on GISKARD.

So what remains right now is how to bring up XAMPP at boottime.

What I am trying to do over all is

1. A website with PHP scripts which I have debugged with brute force echo statements. It uses MYSQL and autoresponder software which I have modified. DONE.
2. Debug single PHP page a local copy of the website with the Eclipse PDT IDE. DONE
3. Debug page to page on remote website with Eclipse PDT. CAN'T CONNECT TO ZEND DEBUGGER
4. Debug locally but connect to remote MySQL Server. CAN'T CONNECT.
5. So I installed XAMPP.
6. I will install XDEBUG
7. Then debug pape to page with Eclipse PDT
8. +
9. I will install other small websites on GISKARD (so I need to learn virtual hosting)
10. I will use no-ip.com to get a fake static IP number for these sites.

Thanks

Re: Easy XAMMP question

PostPosted: 05. July 2009 17:48
by Wiedmann
So what remains right now is how to bring up XAMPP at boottime.

Install Apache, MySQL, ... as Windows service (SVC).
(see readme_en.txt)

Re: Easy XAMMP question

PostPosted: 05. July 2009 18:23
by twidlar
Thanks.

Re: Easy XAMMP question

PostPosted: 05. July 2009 21:35
by twidlar
So I gather I put the start BAT commands I want into
\WINDOWS\System32\autoexec.nt, right?

In the past year I've watched several opera DVDs from Stuttgart.
The orchestra is very good (except for the long horn call in Wagner's
Siegfried) as is the singing.

Re: Easy XAMMP question

PostPosted: 06. July 2009 04:51
by glitzi85
twidlar wrote:So I gather I put the start BAT commands I want into
\WINDOWS\System32\autoexec.nt, right?

No. Open the Control Panel (with Administrative Rights) and tick the Checkboxes (SVC) on the left side. This will start up the according program (Apache, MySQL...) directly after boot time before you log in. Adding the programs to the autostart will start the programs after login.

glitzi

Re: Easy XAMMP question

PostPosted: 06. July 2009 16:21
by twidlar
You mean the XAMPP Control Panel, not WinXP, right?

The SVC boxes had been checked on previous bootups. When we booted GISKARD today, we had to click the desktop icon to get it running. The SVC boxes were still checked when it came up. Might I have something else wrong?

Re: Easy XAMMP question

PostPosted: 06. July 2009 16:56
by glitzi85
Then log in to GISKARD as Administrator, click Start -> Run -> enter services.msc in the field and click OK. Now the service Window will open. Double click on the entry Apache2.2. What's in the startup type selected? If Manual or Disabled set the startup type to Automatic.

BTW: Yes, i meant the XAMPP Control Panel. Didn't realize that Windows also has a Control Panel ;-)

glitzi

Re: Easy XAMMP question

PostPosted: 06. July 2009 18:05
by twidlar
Thanks. Apache2.2 and MySQL were already marked Automatic in services.msc. Filezilla was Manual although the SVC box in XAMPP was checked.

Maybe I am asking the wrong question. After bootup I didn't see the XAMPP icon in the task bar. Could it be that Apache and MySQL were already running after bootup and the XAMPP icon is only for the Control Panel, not Apache or MySQL?