Page 1 of 1

Xampp shell

PostPosted: 14. February 2015 11:57
by Chikwado
Some one help please: what do I have to type in xampp shell command, And after typing where do I have to click to save what I have type. I am using window 7, xampp version: 5.6 Some one help please.

Re: Xampp shell

PostPosted: 14. February 2015 16:10
by Altrea
The XAMPP shell is a custom command line (cmd). The difference to the default windows command line is that the path variable is extended by the xampp folders so that you can call the httpd.exe, mysql.exe, php.exe, etc from the xampp shell independend from the directory you are currently in.

Re: Xampp shell

PostPosted: 17. February 2015 09:37
by Chikwado
Thanks for help, but what does this means: "Object not found 404 error" my php files is inside htdocs, when I type http://localhost/test.php I get "object not found" After saving my php file I drag it by pressing "ctrl" and it appear in htdocs but generate extension like this: test.php.lnk and it makes my php file unvailable. How to solve that problem please. I am using window 7 starter.

Re: Xampp shell

PostPosted: 17. February 2015 11:11
by Nobbie
Chikwado wrote:How to solve that problem please. I am using window 7 starter.


You should read some Windows tutorials about Drag&Drop, about Copy&paste, about moving files and about creating links. This is not a Xampp Problem, it is a problem of your Windows skills.

Re: Xampp shell

PostPosted: 17. February 2015 13:39
by Chikwado
Thank you.

Re: Xampp shell

PostPosted: 08. April 2015 22:56
by esqado
Hello all!
I think powershell more useful than cmd and looks good.
I suggest you evaluate version xampp-shell thought powershell.
Code: Select all
@ECHO off
SET xampp-ps= ^
$host.ui.RawUI.WindowTitle = 'XAMPP for Windows'; ^
$MIBDIRS = $pwd.path + '\php\extras\mibs'; ^
$MIBDIRS = $MIBDIRS.Replace('\','/'); ^
$MYSQL_HOME = $pwd.path + '\mysql\bin'; ^
$OPENSSL_CONF = $pwd.path + '\apache\bin\openssl.cnf'; ^
$OPENSSL_CONF = $OPENSSL_CONF.Replace('\','/'); ^
$PHP_PEAR_SYSCONF_DIR = $pwd.path + '\php'; ^
$PHP_PEAR_BIN_DIR = $pwd.path + '\php'; ^
$PHP_PEAR_TEST_DIR = $pwd.path + '\php\tests'; ^
$PHP_PEAR_WWW_DIR = $pwd.path + '\php\www'; ^
$PHP_PEAR_CFG_DIR = $pwd.path + '\php\cfg'; ^
$PHP_PEAR_DATA_DIR = $pwd.path + '\php\data'; ^
$PHP_PEAR_DOC_DIR = $pwd.path + '\php\docs'; ^
$PHP_PEAR_PHP_BIN = $pwd.path + '\php\php.exe'; ^
$PHP_PEAR_INSTALL_DIR = $pwd.path + '\php\pear'; ^
$PHPRC = $pwd.path + '\php'; ^
$TMP = $pwd.path + '\tmp'; ^
$PERL5LIB = ''; ^
$pwdPath = $pwd.path; ^
$env:Path += """";$pwdPath;$pwdPath\php;$pwdPath\perl\site\bin;$pwdPath\perl\bin;$pwdPath\apache\bin;$pwdPath\mysql\bin;$pwdPath\FileZillaFTP;$pwdPath\MercuryMail;$pwdPath\sendmail;$pwdPath\webalizer;$pwdPath\tomcat\bin""""; ^
function Prompt ^
{ ^
    $env:USERNAME + '@' + $env:COMPUTERNAME + ' ' + $(Get-Location) + """"`n"""" + '# '; ^
} ^
Write-Host -f green 'Setting environment for using XAMPP for Windows.';
START Powershell -noexit -command %xampp-ps%


To check system environment variables type:
Code: Select all
$env:Path.Split(";")

Variables changes just for current session.
After closing the window changes will not be saved.


Before edit - backup your xampp-shell.bat file.
If you loose original xampp-shell.bat file - look here:
https://searchcode.com/codesearch/view/14149767/
Sorry for my english