samona Posted September 19, 2008 Share Posted September 19, 2008 Hi, I'm trying to run a php script located in /var/www/website/index.php however, i can't do that from the command line. I do have a .htaccess file requiring a username and password, but I have made myself the owner of all the folders in that path. It was working before, but i restarted the server and now it's not working anymore. Please advise. Thanks. As a note, It does work when I'm in the /var/www directory. Just doesn't work anymore from my home directory or /var. And I have put myself as the owner of /var and of /var/www Quote Link to comment https://forums.phpfreaks.com/topic/124936-cant-run-php-scrip/ Share on other sites More sharing options...
aschk Posted September 19, 2008 Share Posted September 19, 2008 What error are you getting? Are you viewing this in a browser, or are you attempting to run in from a shell prompt? Quote Link to comment https://forums.phpfreaks.com/topic/124936-cant-run-php-scrip/#findComment-645533 Share on other sites More sharing options...
samona Posted September 19, 2008 Author Share Posted September 19, 2008 i'm getting a Username for 'Limited!' at server 'classroom': I believe this is because I have put a .htaccess file, but it was there before and I was able to execute the script from my home directory. I'm trying to execute from command line as I did before. This is because i had it also set up as a cron. Now I can't execute any scripts outside the home directory. Quote Link to comment https://forums.phpfreaks.com/topic/124936-cant-run-php-scrip/#findComment-645536 Share on other sites More sharing options...
aschk Posted September 19, 2008 Share Posted September 19, 2008 If you remove the .htaccess file does it stop the problem? Quote Link to comment https://forums.phpfreaks.com/topic/124936-cant-run-php-scrip/#findComment-645539 Share on other sites More sharing options...
samona Posted September 19, 2008 Author Share Posted September 19, 2008 Wow, no it didn't work. I took out all the .htaccess files and I was able to view the pages without having to type in a password, but still the script outputed blank values for the script. I also see this sent to my email Your Terminal type is unknown! Enter a terminal type: [vt100] TERMINAL TYPE IS SET TO vt100 Quote Link to comment https://forums.phpfreaks.com/topic/124936-cant-run-php-scrip/#findComment-645544 Share on other sites More sharing options...
samona Posted September 19, 2008 Author Share Posted September 19, 2008 Trying to research it, but i still can't find any solution. Anyone got any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/124936-cant-run-php-scrip/#findComment-645637 Share on other sites More sharing options...
Minase Posted September 19, 2008 Share Posted September 19, 2008 you must allow apache user to access var folder not yourself.... Quote Link to comment https://forums.phpfreaks.com/topic/124936-cant-run-php-scrip/#findComment-645640 Share on other sites More sharing options...
samona Posted September 19, 2008 Author Share Posted September 19, 2008 It's still not working. What I have to do in the command is include cd /var/www/class; and then the other command. Quote Link to comment https://forums.phpfreaks.com/topic/124936-cant-run-php-scrip/#findComment-645781 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.