I have a pc as a server on my wlan (running Kubuntu 14.04)
What do I need to do to use PHP in my html code?
What do I need to do to use PHP in my html code?
sudo a2enmod php5
sudo service apache2 reload
<?php header("HTTP/1.0 403 Forbidden"); ?>
sudo service apache2 reload
* Reloading web server apache2 * * The apache2 configtest failed. Not doing anything. Output of config test was: 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/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory Action 'configtest' failed. The Apache error log may have more information.
[Mon Jan 05 11:13:54.134240 2015] [mpm_event:notice] [pid 8390:tid 140039361808256] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations [Mon Jan 05 11:13:54.134348 2015] [core:notice] [pid 8390:tid 140039361808256] AH00094: Command line: '/usr/sbin/apache2' [Mon Jan 05 11:14:15.331472 2015] [mpm_event:notice] [pid 8390:tid 140039361808256] AH00491: caught SIGTERM, shutting down [Mon Jan 05 11:14:16.409399 2015] [mpm_prefork:notice] [pid 11113] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations [Mon Jan 05 11:14:16.409490 2015] [core:notice] [pid 11113] AH00094: Command line: '/usr/sbin/apache2' [Mon Jan 05 11:14:17.710319 2015] [mpm_prefork:notice] [pid 11113] AH00169: caught SIGTERM, shutting down [Mon Jan 05 11:14:18.819164 2015] [mpm_prefork:notice] [pid 11199] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Mon Jan 05 11:14:18.819216 2015] [core:notice] [pid 11199] AH00094: Command line: '/usr/sbin/apache2' [Mon Jan 05 11:43:45.262819 2015] [mpm_prefork:notice] [pid 11199] AH00169: caught SIGTERM, shutting down [Mon Jan 05 11:44:56.957256 2015] [mpm_prefork:notice] [pid 1592] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Mon Jan 05 11:44:57.003378 2015] [core:notice] [pid 1592] AH00094: Command line: '/usr/sbin/apache2' [Mon Jan 05 23:08:45.637172 2015] [mpm_prefork:notice] [pid 1592] AH00169: caught SIGTERM, shutting down [Tue Jan 06 08:26:34.349759 2015] [mpm_prefork:notice] [pid 1557] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Tue Jan 06 08:26:34.438573 2015] [core:notice] [pid 1557] AH00094: Command line: '/usr/sbin/apache2' [Wed Jan 07 08:29:07.317681 2015] [mpm_prefork:notice] [pid 1549] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Wed Jan 07 08:29:07.355220 2015] [core:notice] [pid 1549] AH00094: Command line: '/usr/sbin/apache2' [Wed Jan 07 22:39:18.509575 2015] [mpm_prefork:notice] [pid 1549] AH00169: caught SIGTERM, shutting down [Thu Jan 08 08:03:45.218083 2015] [mpm_prefork:notice] [pid 1505] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Thu Jan 08 08:03:45.255629 2015] [core:notice] [pid 1505] AH00094: Command line: '/usr/sbin/apache2' [Thu Jan 08 22:35:56.659683 2015] [mpm_prefork:notice] [pid 1505] AH00169: caught SIGTERM, shutting down [Fri Jan 09 08:18:13.741797 2015] [mpm_prefork:notice] [pid 1560] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Fri Jan 09 08:18:13.779259 2015] [core:notice] [pid 1560] AH00094: Command line: '/usr/sbin/apache2' [Fri Jan 09 23:07:01.783832 2015] [mpm_prefork:notice] [pid 1560] AH00169: caught SIGTERM, shutting down [Sat Jan 10 07:15:03.797330 2015] [mpm_prefork:notice] [pid 1556] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Sat Jan 10 07:15:03.870833 2015] [core:notice] [pid 1556] AH00094: Command line: '/usr/sbin/apache2' [Sat Jan 10 23:17:39.425729 2015] [mpm_prefork:notice] [pid 1556] AH00169: caught SIGTERM, shutting down [Sun Jan 11 07:49:15.241789 2015] [mpm_prefork:notice] [pid 1546] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 configured -- resuming normal operations [Sun Jan 11 07:49:15.291222 2015] [core:notice] [pid 1546] AH00094: Command line: '/usr/sbin/apache2' [Sun Jan 11 08:13:02.945006 2015] [mpm_prefork:notice] [pid 1546] AH00171: Graceful restart requested, doing restart AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Comment