[SOLVED] FC28 localhost:8080 doesn't work any more
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2006
    Posts
    217
    Linux (Fedora) Firefox 61.0

    FC28 localhost:8080 doesn't work any more

    Hello,
    After a crash I had to install Fedora again.
    Because I had a FC25 ISO-Image DVD for i386 I could install FC25 from scratch and so I could make a upgrade to FC28.
    After that I saw that that all packages were for x86_64 , indeed I have a 64 Bit Computer:
    Code:
    [gastonv@localhost ~]$ uname -a
    Linux localhost.localdomain 4.17.9-200.fc28.x86_64 #1 SMP Mon Jul 23 21:41:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
    In the past I had made a PHP-Mysql Wine program with access to a mariadb/mysql database.
    In could run that with:
    Code:
    http://localhost:8080/Wijnen/WijnKelder.php
    but from now, for that I receive a message:
    Code:
    Firefox cannot make a connection with the server on localhost:8080
    I have a test php file:
    Code:
    [gastonv@localhost ~]$ cat /var/www/html/test.php
    <html>
    <head>
    <title>PHP test</title>
    </head>
    <body>
    <p>This is an HTML line
    <p>
    <?php
    	echo "This is a PHP line";
    	phpinfo();
    ?>
    </body>
    </html>
    When I run it as:
    Code:
    http://localhost/test.php
    Then I can see it.
    But when I run a test php program with database connection, I only see a blanco window.
    Code:
    http://localhost/mariadb.php
    
    [gastonv@localhost ~]$ cat /var/www/html/mariadb.php
    <html>
       <head>
          <title>Connect to MariaDB Server</title>
       </head>
       <body>
          <?php
             $dbhost = 'localhost';
             $dbuser = 'root';
             $dbpass = 'password';       > here is my own database password
             $conn = mysql_connect($dbhost, $dbuser, $dbpass);
              if(! $conn ) {
                die('Could not connect: ' . mysql_error());
             }
             echo 'Connected successfully';
             mysql_close($conn);
          ?>
       </body>
    </html>
    Please, what can be a reason why it doesn't work any more?

    Many thanks in advance for each answer.
    Kind regards,
    Gaston Verhulst.

  2. #2
    Join Date
    Jul 2005
    Posts
    897
    Windows NT 10.0 Firefox 61.0

    Re: FC28 localhost:8080 doesn't work any more

    One possible reason, fedora 28 installs php7 by default, and the mysql_ functions are not available. You should convert your php code to use pdo or mysqli
    ======
    Doug G
    ======

  3. #3
    Join Date
    Nov 2006
    Posts
    217
    Linux (Fedora) Firefox 61.0

    Re: FC28 localhost:8080 doesn't work any more

    Hello,
    Many thanks for your hint!
    I found this website:
    http://https://nestify.io/blog/apache-php-mariadb-phpmyadmin-fedora-27/
    And i could all do what they recommend to do in order to install Apache and PHP7.1/7.2 and PHPMyAdmin
    So, I could see the Fedora Test Page and PHP Version 7.2.8 and phpMyAdmin for my localhost and 127.0.0.1, without any portnumber.
    Code:
    http://localhost
    http://127.0.0.1
    http://localhost/test.php
    http://127.0.0.1/test.php
    http://localhost/phpmyadmin/index.php
    http://127.0.0.1/phpmyadmin/index.php
    From now, I can test my PHP-MySQL Wine-page.
    Kind regards,
    Gaston Verhulst

  4. #4
    Join Date
    Nov 2006
    Posts
    217
    Linux (Fedora) Firefox 61.0

    Re: FC28 localhost:8080 doesn't work any more

    Hello,
    I have made a new Wine-Database and from now I can use my old PHP-MySQL Wine-page again.
    So, this problem is solved with your great hint!
    Thank you very much.
    Kind regards,
    Gaston Verhulst.

Similar Threads

  1. Replies: 2
    Last Post: 10th May 2018, 03:48 PM
  2. Replies: 1
    Last Post: 20th April 2011, 10:17 AM
  3. Replies: 2
    Last Post: 29th May 2006, 06:52 PM
  4. Replies: 2
    Last Post: 10th April 2006, 06:53 PM
  5. Can't get this to work. Localhost Login
    By yuiol in forum Installation, Upgrades and Live Media
    Replies: 10
    Last Post: 10th August 2004, 09:40 AM

Posting Permissions

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