Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is XAMPP's Shell?

I am using the latest version of XAMPP with XAMPP control panel v2.5 (9 May 2007). I want to access the command line to run php -q htdocs\path\to\file.php.

Problem: On my XAMPP control panel, I do not see the Shell button that will bring up the command line interface. How can I access the shell, or is there another way to run the PHP file?

My XAMPP Control Panel

enter image description here

What I am finding: enter image description here

like image 753
Nyxynyx Avatar asked Nov 18 '11 17:11

Nyxynyx


People also ask

How do I start XAMPP from command line?

To start XAMPP simply call this command: /opt/lampp/lampp start Starting XAMPP for Linux 1.5.

How do I know if XAMPP is installed on Windows?

Making server request: Open your web browser and check whether the XAMPP service has properly installed or not. Type in the URL: http://localhost. If you are able to see the default page for XAMPP, you have successfully installed your XAMPP Server.

What is XAMPP MySQL?

XAMPP is a free and Open-source cross-platform Web Server Solution Stack built by Apache Friends, which consists mostly of the Apache HTTP Server, MariaDB/MySQL Database, and interpreters for PHP and Perl scripts.


2 Answers

If You need to access XAMPP shell to run i.e pear command You need to go to XAMPP installation directory and run xampp-control-3-beta.exe (XAMPP version 1.7.7). After clicking xampp shell button it prompt pops up asking if You want to create shell.bat say Yes and You are good to go.

like image 168
Mihkel Selgal Avatar answered Oct 18 '22 03:10

Mihkel Selgal


If you have php.exe's directory in your PATH environment variable, you can simply open a command line window (Start > Run > cmd), go in your PHP script directory and launch it with php yourscript.php.

like image 36
Frosty Z Avatar answered Oct 18 '22 03:10

Frosty Z