Find the answer to your Linux question:
Results 1 to 5 of 5
Hi everybody, I am new to Linux , I have installed Suse 10.2 . my problem is that I don't know how I can execute Php files. I don't know ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    3

    how to run PHP on linux

    Hi everybody,
    I am new to Linux , I have installed Suse 10.2 .
    my problem is that I don't know how I can execute Php files.
    I don't know where I should copy those files, and how I should change their permission.
    Would you please help me.
    Thank you.

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    You can put the files in /srv/www/htdocs or ~/public_html (I use this for development purposes but move the files to /srv/www/htdocs when the site is live). You change their permissions using chmod (usually to 755).

  3. #3
    Just Joined!
    Join Date
    Oct 2007
    Posts
    3

    Thanks

    What's the comment that is used to change the permission?
    (in console )

  4. #4
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Code:
    chmod 755 /path/to/yourfile
    You will need to have Apache and the Apache PHP modules installed.

  5. #5
    Just Joined!
    Join Date
    Oct 2007
    Posts
    3
    Thank you very much , you really helped me a lot.
    I love this Forum , members answer questions very fast.
    thank you.

    I will have more questions in future, Actually I have never worked with Linux and PHP , I am ASP.NET developer but my company received an unfinished project, we have to finish that. it is very tough, imagine you don't know anything about Linux and PHP ,and you have to finish an unfinished project.

    However, Thank you again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...