display page on web browser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dyana
    New Member
    • Feb 2009
    • 3

    display page on web browser

    hye,
    im new learner in linux here...
    im using putty command line to do my task.
    im runnig it on windows but acess to other network that run linux
    can you help me how can i write my php code an where should i save it so that i can view it on the web.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Originally posted by dyana
    where should i save it so that i can view it on the web.
    save it at the web server (either on your machine or at an ISP)

    Comment

    • dyana
      New Member
      • Feb 2009
      • 3

      #3
      how

      how was the command will look like on the putty terminal?
      can you show me the command?

      Comment

      • dyana
        New Member
        • Feb 2009
        • 3

        #4
        just this

        [root@localhost yana]#/sbin/service mysqld start
        Starting MySQL: [ OK ]

        i only can start the http,and i did type a coding on notepad,but i dont know how to make the codong run.
        i mean where should i paste it and where should i run it

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          usually you put all files that shall be processed by the server in the server root directory (or one of its subdirectories) . in many linux cases this is /var/www, to make sure have a look in the httpd.conf (somewhere in apache2/conf/) file.

          you run the code by "http://localhost/your_file" (via browser)

          PS: you're not seriously running linux as root...?

          Comment

          • numberwhun
            Recognized Expert Moderator Specialist
            • May 2007
            • 3467

            #6
            Originally posted by Dormilich
            PS: you're not seriously running linux as root...?
            Personally I would hope not. Although, they may have "su -" over to root in order to start the service.

            Recommendation would be to use the sudo command to run commands with root permission vice logging in as root directly. Just a suggestion. If you don't have sudo access, then you should talk to your system administrator (or talk to the mirror if you are he/she).

            Regards,

            Jeff

            Comment

            Working...