A PCRE internal error occured. This might be caused by a faulty plugin

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
packages:amp:apache [2013/12/30 17:12]
admin [Install mod_fcgid]
packages:amp:apache [2014/05/03 05:50] (current)
admin [Compile Apache2 from Sources]
Line 7: Line 7:
 It will get cleaned up as soon as I get time to sort it all out :-\ It will get cleaned up as soon as I get time to sort it all out :-\
 </​WRAP>​ </​WRAP>​
 +-----
 ===== Remove the Existing Apache Installation ===== ===== Remove the Existing Apache Installation =====
 +-----
 In case you have a previous install of Apache, you can wipe it off your system using the following commands: In case you have a previous install of Apache, you can wipe it off your system using the following commands:
  
Line 45: Line 47:
 /​usr/​lib/​apache2 /​usr/​lib/​apache2
 </​code>​ </​code>​
 +-----
 ===== Install Latest Apache (updating it from sources) ===== ===== Install Latest Apache (updating it from sources) =====
 We'll need to compile apache from sources in order to make sure the required options for compatibility with Phpfarm are met. Note that this method also enables you to recompile apache, in a Linux Mint Debian compatible manner, with your own selection of options in case you need a specific configuration. We'll need to compile apache from sources in order to make sure the required options for compatibility with Phpfarm are met. Note that this method also enables you to recompile apache, in a Linux Mint Debian compatible manner, with your own selection of options in case you need a specific configuration.
Line 122: Line 125:
 </​code>​ </​code>​
  
-==== Install ​mod_fcgid ​==== +<WRAP important>​ 
-Find your [[http://httpd.apache.org/download.cgi#​mod_fcgid|download location here]]...+After a restart or issuing an apt-get instruction,​ it seems the symlink problem reappears... 
 +</​WRAP>​ 
 + 
 +==== Install ​apache suEXEC ​==== 
 +suEXEC can be a bit fiddly in that the document root (the parent folder for all web content) is generally set at compile-time. This has led to numerous guides giving instructions for retrieving the Apache source and reconfiguring and recompiling the suEXEC module to set /home as the document root instead of /var/wwwFortunately for us, Debian provides a custom suEXEC package, apache2-suexec-custom,​ which has been modified to permit post-compilation reconfiguration by way of a simple configuration file.
  
 <​code>​ <​code>​
-cd /​opt/​apache/​ +sudo apt-get install apache2-suexec-custom
-wget http://​apache.belnet.be//​httpd/​mod_fcgid/​mod_fcgid-2.3.9.tar.gz +
-tar zxf mod_fcgid.2.3.9.tgz +
-cd mod_fcgid.2.3.9+
 </​code>​ </​code>​
  
-Configure and Install +The default configuration file for apache2-suexec-custom is **/​etc/​apache2/​suexec/​www-data**. The first line of the file can be changed to use a non-default document root. 
 +==== Install mod_fcgid ====
 <​code>​ <​code>​
-./​configure.apxs +sudo apt-get install libapache2-mod-fcgid 
-make +sudo a2enmod rewrite 
-make install +sudo a2enmod suexec 
-service ​httpd restart+sudo a2enmod include 
 +sudo a2enmod fcgid 
 +sudo service ​apache2 ​restart
 </​code>​ </​code>​
-==== Differences With Fressh ​Install ===+ 
 +Please consult the [[packages:​amp:​php#​create php execution script|Phpfarm setup information]] for further configuration. 
 +==== Differences With Fresh Install ===
 Missing files: Missing files:
 <​code>​ <​code>​
Line 192: Line 200:
      + AllowOverride All      + AllowOverride All
 </​code>​ </​code>​
-==== Download the latest version ==== +----- 
-Then we need to download the latest version from [[http://​httpd.apache.org/​download.cgi]]\\+===== Download the latest version ​===== 
 +We need to download the latest version from [[http://​httpd.apache.org/​download.cgi]]\\
 [[http://​apache.cu.be//​httpd/​httpd-2.4.7.tar.gz]] for example being the latest stable as of this writing. [[http://​apache.cu.be//​httpd/​httpd-2.4.7.tar.gz]] for example being the latest stable as of this writing.
  
Line 308: Line 317:
 sudo /​etc/​init.d/​apache2 restart sudo /​etc/​init.d/​apache2 restart
 </​code>​ </​code>​
 +-----
 ===== Compile Apache2 from Sources ===== ===== Compile Apache2 from Sources =====
 +-----
 To have a fine control over the options that we need enabled in our apache2 server, we'll go for the compilation from source method. Here's how to proceed: To have a fine control over the options that we need enabled in our apache2 server, we'll go for the compilation from source method. Here's how to proceed: