Xampp shell

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

Xampp shell

Postby Chikwado » 14. February 2015 11:57

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.
Window8.1 32bits, Code:Block/mingw, web, server, network and latest wine.
User avatar
Chikwado
 
Posts: 39
Joined: 16. July 2014 13:44
Location: Abuja, Nigeria.
XAMPP version: 3.2/php 7.2
Operating System: Window 8.1 32bits

Re: Xampp shell

Postby Altrea » 14. February 2015 16:10

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Xampp shell

Postby Chikwado » 17. February 2015 09:37

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.
Window8.1 32bits, Code:Block/mingw, web, server, network and latest wine.
User avatar
Chikwado
 
Posts: 39
Joined: 16. July 2014 13:44
Location: Abuja, Nigeria.
XAMPP version: 3.2/php 7.2
Operating System: Window 8.1 32bits

Re: Xampp shell

Postby Nobbie » 17. February 2015 11:11

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.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Xampp shell

Postby Chikwado » 17. February 2015 13:39

Thank you.
Window8.1 32bits, Code:Block/mingw, web, server, network and latest wine.
User avatar
Chikwado
 
Posts: 39
Joined: 16. July 2014 13:44
Location: Abuja, Nigeria.
XAMPP version: 3.2/php 7.2
Operating System: Window 8.1 32bits

Re: Xampp shell

Postby esqado » 08. April 2015 22:56

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
esqado
 
Posts: 1
Joined: 08. April 2015 22:38
Operating System: win8.1x64 for one language


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 126 guests