what does the message mean? when I start apache service
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
what does the message mean? when I start apache service
Hello everybody in this forum!!!!!
I have never installed or configured these three programs before, so I'll thank you a lot for your help ... What happens is that I want to configure the Apache + PHP + MySQL on Mandriva 2008, I have already set my repositories and with urpmi I've installed these programs through the console and apparently without any problems.
when I wrote the following to start the apache service it showed me a message:
[root@localhost etc]# service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
[root@localhost etc]#
Can anybody tell what it means?: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName.
Looks like apache is reading your /etc/hosts file to determine your ipaddress and name for DNS.
If I remember, make sure you have something in your /etc/hosts file like, for example your ipaddress of the web server is 192.168.1.100 try:
Well, thanks for the help, first of all I want to work locally in my computer to test programs in PHP, however, when I want to try to test them inside the /var/www/html, those programs only work if they are called "index".
Does anybody could tell me why this happens ..?
If you don't pass a specific webpage in the URL (e.g. http://yoursite or http://yoursite/sub1; both are directories)), apache will try to serve a file that's specified using the DirectoryIndex. If you want a specific page, you have to specify that page in the URL (like http://yoursite/myfirstpage.html).
Below 2 examples of DirectorIndex; the first one is the default that comes with my Slackware12
I have already tested programs sending data in a form in HTML and receiving data in a PHP file, without any problems. I wanted to keep such data in a table of a database, and so I created a MySQL database (empleados) and a table (trabajadores) in which I inserted a record.
mysql> select * from trabajadores;
+--------+----------+-------------+
| nombre | apellido | domicilio |
+--------+----------+-------------+
| Luis | Vidrio | Conocido 77 |
+--------+----------+-------------+
1 row in set (0.00 sec)
I'm running locally without password.
When I want to consult on a PHP file (muestrareg.php) , It doesn't show anything at all.
Code:
http://localhost/Nuevo/muestrareg.php
PHP Code:
<?php //Variables del host y mysql $numip='127.0.0.1'; $usuario='root'; $contra='';
//Conexion a la Base de Datos $conexion=mysql_connect($numip,$usuario,$contra); //Selecciona una Base de Datos mysql_select_db('empleados',$conexion); $registros=mysql_query('SELECT * FROM trabajadores',$conexion);
//Conexion a la Base de Datos
$conexion=mysql_connect($numip,$usuario,$contra);
and make sure that you can do that as the user that the webserver runs as on the command line. Usually a failure to connect to a mysql db that's on the same server as apache is a mysql login/permissions issue
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.