Results 1 to 5 of 5

Thread: how to make old php site work on ubuntu 18.04

  1. #1
    Join Date
    Aug 2019
    Beans
    3

    how to make old php site work on ubuntu 18.04

    I havent been using ubuntu and i'm tryng to run my old applications on ubuntu 18.04.

    Before, i would simply import my db onto mysql and paste my www folder to a new server and my browser based applications would run. Now i cant seem to make anything work.
    I am a very novice ubuntu user used to copy and pasting to the www folder. any help would be great. thanks!

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: how to make old php site work on ubuntu 18.04

    Did you install the apache2 package and the php and php-mysql packages? The mysql-server package?

    You need to give us a lot more detail than "it doesn't work."

    Have you looked at /var/log/apache2/error.log to see what might be failing?
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Aug 2019
    Beans
    3

    Re: how to make old php site work on ubuntu 18.04

    i get an error 404

    Not Found

    The requested URL /folder/subfolder/index.php was not found on this server.


    Apache/2.4.29 (Ubuntu) Server at localhost Port 80

  4. #4
    Join Date
    Aug 2019
    Beans
    3

    Re: how to make old php site work on ubuntu 18.04

    i copied the contents of the /www folder from my old backups and place it in the /www folder of the new server.

    i have installed apache2, mysql-server, php and phpmyadmin.

    normally when i do it before in several instances, it would work. the last time i did it was in 2015 in an ubuntu 14.04 instance and it worked. i have done it other times as well.

  5. #5
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: how to make old php site work on ubuntu 18.04

    Quote Originally Posted by mikesalazar View Post
    i get an error 404

    Not Found

    The requested URL /folder/subfolder/index.php was not found on this server.


    Apache/2.4.29 (Ubuntu) Server at localhost Port 80
    Well that's the problem, right? Check the DocumentRoot specification in the configuration file for this virtual host. If you're using a separate conf file in /etc/apache2/sites-available, you might try disabling 000-default.conf and see if that helps.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Bookmarks

Posting Permissions

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