Jump to content

Can't run php scrip


samona

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.