Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/124936-cant-run-php-scrip/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/124936-cant-run-php-scrip/#findComment-645536
Share on other sites

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

 

Link to comment
https://forums.phpfreaks.com/topic/124936-cant-run-php-scrip/#findComment-645544
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.