Find the answer to your Linux question:
Results 1 to 3 of 3
Hello all, I am trying to install a php code application on a Apache web server on a local host 192....... IP address on a Centos Linux box. I logged ...
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    1

    Question Install PHP Application on Centos

    Hello all,
    I am trying to install a php code application on a Apache web server on a local host 192....... IP address on a Centos Linux box. I logged in as root and the application is located on a folder call php on the Desktop and it has several files and folders like upload, include, settings etc.. The requirments for the php code are mysqld php5 and httpd and they are all configured and running. I have to install this php code using a browser like firefox. Does anyone know how to do it? I want to be able to open the firefox, type in the address bar and alternatly go to the installation process. When I type localhost, 192......... IP and 127.0.0.1 in the address bar, it takes me to the apache webserver and the message is:
    Apache 2 Test Page
    powered by CentOS
    This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page it means that the Apache HTTP server installed at this site is working properly.

    Thank you all.

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    the default documents directory for apache on CentOS (or RHEL, which it is based on) is /var/www/html

    you can either move your application there, or you'll have to modify the apache configuration quite a bit.

    I would HIGHLY suggest you not put a website to be hosted from a user's home directory. It is an unnecessary security risk. If you have no other purpose for the webserver, it'll be easiest to just move the application to /var/www/html. Beyond that, you need to modify /etc/httpd/conf/httpd.conf to host a new location.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  3. #3
    Just Joined!
    Join Date
    Jan 2011
    Posts
    8
    I agree with meton, you need to move your application in to default directory[/var/www/html] . Apart from this you need to install one more package [httpd-php5] connector. I exactly did'nt remembered the package name but you need apache-php5 connector for deploying your php apps.

Posting Permissions

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