Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- adnez@www:~$ rm /etc/apache2/mods-enabled/php5.*
- rm: cannot remove `/etc/apache2/mods-enabled/php5.conf': Permission denied
- rm: cannot remove `/etc/apache2/mods-enabled/php5.load': Permission denied
- adnez@www:~$ sudo rm /etc/apache2/mods-enabled/php5.*
- [sudo] password for adnez:
- adnez@www:~$ sudo /etc/init.d/apache2 restart
- [ ok ] Restarting web server: apache2 ... waiting .
- adnez@www:~$ apt-get autoremove php5
- E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
- E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
- adnez@www:~$ sudo /etc/init.d/apache2 stop
- [ ok ] Stopping web server: apache2 ... waiting .
- adnez@www:~$ apt-get autoremove php5
- E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
- E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
- adnez@www:~$ sudo apt-get autoremove php5
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages will be REMOVED:
- php5
- 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
- After this operation, 21.5kB disk space will be freed.
- Do you want to continue [Y/n]? y
- dpkg: warning: 'ldconfig' not found in PATH or not executable.
- dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.
- dpkg: error: 2 expected programs not found in PATH or not executable.
- Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
- E: Sub-process /usr/bin/dpkg returned an error code (2)
- adnez@www:~$ apt-get install php5
- E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
- E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
- adnez@www:~$ sudo apt-get install php5
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- php5 is already the newest version.
- 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
- adnez@www:~$ sudo apt-get install php5.3
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- E: Couldn't find package php5.3
- adnez@www:~$ sudo /etc/init.d/apache2 restart
- [ ok ] Restarting web server: apache2.
- adnez@www:~$
Advertisement
Add Comment
Please, Sign In to add comment