Results 1 to 4 of 4

Thread: how to recover php.ini

  1. #1
    Join Date
    Dec 2006
    Beans
    6

    how to recover php.ini

    Accidentally i deleted php.ini from /etc/php5/apache2. How to recover it?

    I tried to remove and install php5 without luck.

    Thanks,

  2. #2
    Join Date
    Dec 2008
    Location
    UK
    Beans
    434
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: how to recover php.ini


  3. #3
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 17.04 Zesty Zapus

    Re: how to recover php.ini

    Not a Forum Feedback & Help thread.

    Thread moved to General Help.
    Ubuntu 16.04 Desktop Guide - Ubuntu 14.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  4. #4
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    12,515
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: how to recover php.ini

    If this is a server, I strongly recommend using rsync to back up key directories like /etc, /var/spool, /var/log, and the like every night. /etc in particular is usually highly customized to each machine and needs a backup.

    Something as simple as

    Code:
    1 1 * * *  cd /; rsync -a etc var/spool var/log /path/to/backup/location/
    is a good start. Put this in root's crontab either by using "sudo crontab -e" or by creating the file /var/spool/cron/root directly with an editor and sudo.
    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
  •