Hola
I compiled and installed the latest version of apache, mysql and php just the other day. I have just gotten around to testing to make sure that all 3 work with each other and I did this by creating:
Code:
<html>
<head>
<title></title>
</head>
<body>
<?php
$connection = mysql_connect("localhost","root","")
or die("sorry - unable to connect to MySQL");
echo("Congrats - it's working");
?>
</body>
</html>
Now if all was working fine I should have seen the "Congrats" message when viewing the file saved as php on apache. I know that the apache is working and that php is working... however when trying to view that partuicular file I get an error message:
Quote:
Warning: Unknown(/usr/local/apache2/htdocs/index.php): failed to open stream: Permission denied in Unknown on line 0
Warning: (null)(): Failed opening '/usr/local/apache2/htdocs/index.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
|
Now unfortunately, I'm a php / mysql "know nothing" at the moment (soon to change hopefully) but I'm not sure where to go from this error. I checked the php info file and something strange I noticed is the MySQL section:
Quote:
|
Client API version 3.23.49
|
Now I know 100% that I compiled in the latest mysql which happens to be 4.0.17: so could this be my problem?
Any help really appreciated and merry christmas too
