Re: Apache Installation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Check your PHP error reporting level and/or error log for PHP errors.

- Y

On Wed, Apr 15, 2015 at 11:13 PM, Ethan Rosenberg <erosenberg@xxxxxxxxxxxxxxxxxxxx> wrote:
On 04/14/2015 10:18 PM, Yehuda Katz wrote:
On Tue, Apr 14, 2015 at 9:05 PM, Eric Covener <covener@xxxxxxxxx <mailto:covener@xxxxxxxxx>> wrote:

    On Tue, Apr 14, 2015 at 10:36 AM, Ethan Rosenberg
    <erosenberg@hygeiabiomedical.com <mailto:erosenberg@hygeiabiomedical.com>> wrote:
    > [Tue Apr 14 00:51:10.502172 2015] [:error] [pid 7610] [client ::1:53486]
    > script '/var/www/html/start.php' not found or unable to stat

    Something non-standard under /etc/apache2 or /.htaccess or
    /var/.htaccess or /var/www/.htaccess is mapping that request of
    /start.php to /var/www/html/start.php. I'd look at anything matching
    "html" or php in those configuration files and see what turns up.
    You should be familiar with grep -ri of configuration files.


That looks like the "standard" Debian/Ubuntu configuration starting with 2.4.
The DocumentRoot is probably in /etc/apache2/sites-enabled/000-default.conf

- Y
----

Yehuda -

Thank you.

Found it!

root@meow:/home/ethan# grep -i root  /etc/apache2/sites-enabled/000-default.conf
        DocumentRoot /var/www/html

Changed that and it finds the files.

But .....

This works perfectly

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
    <head>
        <title>Test Connect2</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <style>
                        body{
                                background-color: #89caeb;
                                width:100%;
                                height:100%;
                                position: relative;
                        font-family: "Helvetica", "Arial" , "Liberation Sans", "Free sans", sans-serif;
                                overflow-y: scroll;
                        }                       
                </style>               
       
    </head>
                <body>

                        <strong>
                        <div align='center'>
                          <h3>Handle Weight</h3>
                        </div>
                        </strong>



<?php


$hostname="localhost";
$database="Store";
$username="ethan";
$password="....";

global $i;


$link = mysqli_connect($hostname, $username, $password);
if (!$link) {
die('Connection failed: ' . mysql_error());
}
else{
     echo "Connection to MySQL server " .$hostname . " successful!
" . PHP_EOL;
}

$db_selected = mysqli_select_db($link, $database);
if (!$db_selected) {
    die ('Can\'t select database: ' . mysqli_error());
}
else {
    echo 'Database ' . $database . ' successfully selected!';
}

?>

                </body>
        </html>

This fails...It does not even change the background color or print the header

<?php
session_name("STORE");
session_set_cookie_params( '24000', '/' );
session_start();
echo 'hello world';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
    <head>
        <title>Handle Weight</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <style>
                        body{
                                background-color: #89caeb;
                                width:100%;
                                height:100%;
                                position: relative;
                        font-family: "Helvetica", "Arial" , "Liberation Sans", "Free sans", sans-serif;
                                overflow-y: scroll;
                        }                       
                </style>               
       
    </head>
                <body>

                        <strong>
                        <div align='center'>
                          <h3>Handle Weight</h3>
                        </div>
                        </strong>
<?php
<snip>

Totally Confused

TIA

Ethan





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux