Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vps:~# sudo /etc/init.d/apache2 stop
- Stopping web server: apache2.
- vps:~# sudo apt-get remove --purge apache2 php5
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages will be REMOVED:
- apache2* php5*
- 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
- After this operation, 123kB disk space will be freed.
- Do you want to continue [Y/n]? y
- (Reading database ... 58556 files and directories currently installed.)
- Removing apache2 ...
- Removing php5 ...
- vps:~# sudo apt-get remove --purge libapache2-mod-php5
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages will be REMOVED:
- libapache2-mod-php5*
- 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
- After this operation, 5562kB disk space will be freed.
- Do you want to continue [Y/n]? y
- (Reading database ... 58547 files and directories currently installed.)
- Removing libapache2-mod-php5 ...
- ERROR: Module php5 does not exist!
- Purging configuration files for libapache2-mod-php5 ...
- dpkg - warning: while removing libapache2-mod-php5, directory `/etc/php5/apache2' not empty so not removed.
- vps:~# sudo apt-get install php5 apache2 libapache2-mod-php5
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following NEW packages will be installed:
- apache2 libapache2-mod-php5 php5
- 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
- Need to get 0B/2531kB of archives.
- After this operation, 5685kB of additional disk space will be used.
- Selecting previously deselected package apache2.
- (Reading database ... 58542 files and directories currently installed.)
- Unpacking apache2 (from .../apache2_2.2.9-10+lenny9_all.deb) ...
- Selecting previously deselected package libapache2-mod-php5.
- Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.2.6.dfsg.1-1+lenny9_i386.deb) ...
- Selecting previously deselected package php5.
- Unpacking php5 (from .../php5_5.2.6.dfsg.1-1+lenny9_all.deb) ...
- Setting up apache2 (2.2.9-10+lenny9) ...
- Setting up libapache2-mod-php5 (5.2.6.dfsg.1-1+lenny9) ...
- Creating config file /etc/php5/apache2/php.ini with new version
- Reloading web server config: apache2Setting up php5 (5.2.6.dfsg.1-1+lenny9) ...
- vps:~# sudo /etc/init.d/apache2 start
- Starting web server: apache2(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
- no listening sockets available, shutting down
- Unable to open logs
- failed!
- vps:~#
- vps:~# sudo a2enmod php5
- Module php5 already enabled
- vps:~# sudo /etc/init.d/apache2 force-reload
- Reloading web server config: apache2vps:~#
- vps:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement