Linux: apache2 do not load php...

mariogamer

Well-Known Member
OP
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
Sorry for all these time...

I redirected error in file this give me these file...
 

Attachments

  • error.zip
    7.6 KB · Views: 102

Joom

 ❤❤❤
Member
Joined
Jan 8, 2016
Messages
6,067
Trophies
1
Location
US
Website
mogbox.net
XP
6,077
Country
United States
Because I'm lazy, do this.
Code:
sudo -s
apt-get install git
cd /usr/local/src
git clone https://github.com/i-MSCP/imscp.git
cd imscp
./imscp-autoinstall

Just follow the steps. It'll setup a simple LAMP server with PhpMyAdmin, a web admin panel, webmail (this is optional), an FTPd, and so on.
 
  • Like
Reactions: Deleted User

mariogamer

Well-Known Member
OP
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
Thank!

I already have git.I'll install it...

--------------------- MERGED ---------------------------

This is why it's really big... XD But not so big than linux kernel :P (I waited multiple hour before downloading)
 

mariogamer

Well-Known Member
OP
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
Postfix config failed,I think (sorry,lot of world are in french):

(note: I know,there is a smiley in the spoiler,but it was in the original error)

Paramétrage de libwww-perl (6.15-1) ...
Paramétrage de liblwp-protocol-https-perl (6.06-2) ...
Paramétrage de libxml-parser-perl (2.44-1build1) ...
Traitement des actions différées (« triggers ») pour systemd (229-4ubuntu4) ...
Traitement des actions différées (« triggers ») pour ureadahead (0.100.0-19) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.23-0ubuntu3) ...
Traitement des actions différées (« triggers ») pour ufw (0.35-0ubuntu2) ...
Traitement des actions différées (« triggers ») pour dovecot-core (1:2.2.22-1ubuntu2) ...
invoke-rc.d: policy-rc.d denied execution of restart.
Traitement des actions différées (« triggers ») pour dictionaries-common (1.26.3) ...
Traitement des actions différées (« triggers ») pour php7.0-fpm (7.0.4-7ubuntu2) ...
Des erreurs ont été rencontrées pendant l'exécution :
postfix
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Sub-process /usr/bin/dpkg returned an error code (1)

autoinstaller::Functions::build: An error occurred while performing build steps
root@*-pc:/usr/local/src/imscp# ./imscp-autoinstall

autoinstaller::Adapter::DebianAdapter::installPreRequiredPackages: Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'état…
binutils is already the newest version (2.26-8ubuntu2).
liblist-moreutils-perl is already the newest version (0.413-1build1).
libxml-simple-perl is already the newest version (2.22-1).
rsync is already the newest version (3.1.1-3ubuntu1).
wget is already the newest version (1.17.1-1ubuntu1).
debconf-utils is already the newest version (1.5.58ubuntu1).
dialog is already the newest version (1.3-20160209-1).
libbit-vector-perl is already the newest version (7.4-1build1).
libclass-insideout-perl is already the newest version (1.13-2).
libscalar-defer-perl is already the newest version (0.23-1).
libsort-versions-perl is already the newest version (1.62-1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Paramétrage de postfix (3.1.0-3) ...

Postfix configuration was not changed. If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
newaliases: warning: valid_hostname: misplaced delimiter: *-pc..name
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: *-pc..name
dpkg: erreur de traitement du paquet postfix (--configure) :
le sous-processus script post-installation installé a retourné une erreur de sortie d'état 75
Traitement des actions différées (« triggers ») pour libc-bin (2.23-0ubuntu3) ...
Des erreurs ont été rencontrées pendant l'exécution :
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)

 
Last edited by mariogamer,

FaTaL_ErRoR

AKA ŦƕƎ ƠṀƐƝ
Member
Joined
Mar 9, 2014
Messages
491
Trophies
0
XP
443
Country
United States
Ok, stop listening to people and read for yourself. Most linux stuff rarely works out of the box. There are many places to read on what you are trying to accomplish. And from a linux perspective simply giving you the answers will not help you later on when things go wrong.
https://help.ubuntu.com/lts/serverguide/httpd.html
https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/
Honestly I think something went wrong with setting up apache. Just take a few minutes and read.
 
  • Like
Reactions: Deleted User

mariogamer

Well-Known Member
OP
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.

● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Sun 2016-05-08 16:30:33 EDT; 1h 13min ago
Docs: man:systemd-sysv-generator(8)
Process: 1414 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

May 08 16:30:33 *-pc apache2[1414]: *
May 08 16:30:33 *-pc apache2[1414]: * The apache2 configtest failed.
May 08 16:30:33 *-pc apache2[1414]: Output of config test was:
May 08 16:30:33 *-pc apache2[1414]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apaces/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open sharhe2/modules/libphp5.so: cannot open shared object file: No such file or directory
May 08 16:30:33 *-pc apache2[1414]: Action 'configtest' failed.
May 08 16:30:33 *-pc apache2[1414]: The Apache error log may have more information.
May 08 16:30:33 *-pc systemd[1]: apache2.service: Control process exited, code=exited status=1
May 08 16:30:33 *-pc systemd[1]: Failed to start LSB: Apache2 web server.
May 08 16:30:33 *-pc systemd[1]: apache2.service: Unit entered failed state.
May 08 16:30:33 *-pc systemd[1]: apache2.service: Failed with result 'exit-code'.
~
~
~
~
~

Second command is too big...
 
Last edited by mariogamer,

Joom

 ❤❤❤
Member
Joined
Jan 8, 2016
Messages
6,067
Trophies
1
Location
US
Website
mogbox.net
XP
6,077
Country
United States
May 08 16:30:33 *-pc apache2[1414]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apaces/libphp5.so into server:/usr/lib/apache2/modules/libphp5.so: cannot open sharhe2/modules/libphp5.so: cannot open shared object file: No such file or directory
You either don't have PHP installed correctly, or your apache configuration file isn't correct seeing as the configtest spits out a syntax error.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Att did offer a $500gc tempting to use it for 6 months and cancel