Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi everybody,
i have installed php,mysql and apache manually,and i have checked it is installed properly or not,
[root@server ~]# rpm -q httpd
httpd-2.2.15-5.el6.x86_64
[root@server ~]# rpm -q mysql
mysql-5.1.47-4.el6.x86_64
[root@server ~]# rpm -q php
php-5.3.2-6.el6.x86_64
[root@server ~]#
i want to configure locally on my machine, i don't know about any configuration file and i don't know how to configure because iam newer to this rhel6 and after configure how to check php,mysql and apache is configured properly. if somebody guide me to right way i'll be greatful.
The webserver default folder is /var/www
Run you web file's from this folder ...You can reach there by typing localhost/filename
or by you server's IP address ..
The web server MAY be at /var/www, depending on the distro. Some are /srv/www, some are in different places. Without knowing what version/distro of Linux the OP has (they didn't say), it's dangerous to speculate. OP, look into your apache.conf file(s), and see where your DocumentRoot directive is set.
Quote:
Originally Posted by arun5002
paste phpinfo.php file in /var/www, go to url firefox http://ipaddress/phpinfo.php
it will display the php info then ur php conf is wright
Again, only IF the document root is /var/www, otherwise it won't work. And again, spell out your words.
Quote:
for apache got to firefox type http://localhost
apache page will appears the apache is conf
The default page for Apache will display "It works!", and Apache may NOT be configured to work with PHP correctly, if apache2-mod_php5 isn't installed.
Quote:
for mysql
create a root user for mysql and assign password to it
mysql -uroot -p
prompt for passwordassword
mysql>
then ur login wright
A root user for MySQL is created by default, and if you re-create it without granting privileges to the tables correctly, you'll be in a bad spot. The best way to see if MySQL is running is just to type in "sudo mysql". If it's up and running and configured with default values, you'll see a "mysql>" prompt. If you do, it's working...type quit to get back to a prompt.
Your server has the config files located at:
Apache (HTTP) : /etc/httpd/conf/httpd.conf
PHP : /etc/php.ini
MySQL : /etc/my.cnf (which isn't really that much to configure, more useful is to run it first with: service mysqld restart and then using TB0ne commands)
Remember: all services need to be started to have it checked if they work.
Apache can be easily misconfigured if you don't know what you're doing, so always check it first with: apachectl -t to see the output (must be: Syntax OK)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.