LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-26-2007, 09:26 AM   #1
sundancekidster
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Rep: Reputation: 0
Bash Question


What does it mean if there is a "*" after a file name in Bash?

I just uploaded a php script into the web root of my server. When I try and access the the index.php file with my browser I get a permission denied error.

When I ssh into the server the index.php file has a asterik on the end: "index.php*"
 
Old 09-26-2007, 09:57 AM   #2
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
maybe you should check the file permissions and the permissions on the directory the file is stored in? Apache canīt read the file.
 
Old 09-26-2007, 09:58 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
When ls is called with the -F option, * is appended to files which are executable. Probably you don't explicitly use -F, but it is likely aliased.
 
Old 09-26-2007, 12:46 PM   #4
sundancekidster
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by matthewg42 View Post
When ls is called with the -F option, * is appended to files which are executable. Probably you don't explicitly use -F, but it is likely aliased.
Thanks. Is there a reason that one php file would have the * while all the rest don't? Aren't all php files executable?
 
Old 09-26-2007, 12:49 PM   #5
sundancekidster
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pk21 View Post
maybe you should check the file permissions and the permissions on the directory the file is stored in? Apache canīt read the file.
I did and even set the directory and file to 777. I just upgraded to Apache 2 and I'm not sure if that is causing the problem.
 
Old 09-26-2007, 01:20 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by sundancekidster View Post
Thanks. Is there a reason that one php file would have the * while all the rest don't? Aren't all php files executable?
the type of file does not make it executable--only the content and the permissions. ie you could rename the file "fred.xyz" and it would still run--assuming it contains executable code and that the "execute" permission bit is set.
 
Old 09-26-2007, 01:35 PM   #7
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
php files do not have to be executable when used with a web server - the web server process just has to have permissions to read the .php files.

Your problem could be that your Apache is not configured to use php for files with this extension. It's difficult to tell without more detailed information.

What is in the index.php file?

What do you see in your browser when you go to the page?

What do you see in the apache logs?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash question armandino101 Linux - General 6 04-24-2007 12:18 PM
Bash Question krock923 Programming 4 06-28-2006 10:16 AM
Yet another bash question. pete1234 Programming 3 09-25-2005 03:22 PM
a bash question about while jiawj Linux - Newbie 3 07-14-2005 11:45 AM
Bash question Warmduvet Programming 4 09-24-2004 08:19 PM


All times are GMT -5. The time now is 07:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration