Shallot icon indicating copy to clipboard operation
Shallot copied to clipboard

Run through the PHP

Open bananarussa opened this issue 10 years ago • 4 comments

$output"; ?>

Unfortunately PHP does not return anything, no error, someone could help me?

bananarussa avatar Nov 25 '13 19:11 bananarussa

Why are you running just shallot ^ ? Do you mean to have the onion URL start with some characters, like

<?php
$command = "Shallot/shallot ^my";
$output = shell_exec("$command");
echo "$output";
?>

misjoinder avatar Nov 26 '13 02:11 misjoinder

Yes, I am running only "^", was on purpose, I always get a random address, intend to create a hosting system onion but I don't know how to create onionhashs, that was the only solution that I found. On terminal works, but via PHP no.

exemple_hash

bananarussa avatar Nov 26 '13 12:11 bananarussa

I was able to run this from PHP without a problem, by using the exact path from where the script is being run to where Shallot is, noting any case-sensitive folders. My guess would be that you want "shallot/shallot" without the beginning slash, unless you have Shallot installed on a top level directory.

misjoinder avatar Nov 26 '13 14:11 misjoinder

tor will create a private key and .onion hostname in the directory you specify with the HiddenServiceDir in a torrc file (either the default one or the one you specify.) If you are trying to create a bunch of keys, you could just make a bunch of torrc files pointing to different directories, and repeatedly call tor with the -f option and each torrc filename.

ChrisCalderon avatar Nov 29 '13 06:11 ChrisCalderon