How-to: mod_pagespeed for apache

scriptkitty

Verified User
Joined
Jul 10, 2019
Messages
224
How would I verify if mod_ruid2 is installed or not. And what is advantage of using it. As per my understanding it does not allow php scripts to modify the folder outside of its containing folder?

Code:
/usr/local/directadmin/directadmin c | grep -i ruid

OR

Code:
httpd -M | grep -i ruid
 

Amit

Verified User
Joined
Mar 24, 2020
Messages
106
Location
India
Hi issued the second command and I got some warnings along with output can you please explain why this warnings?
 

Attachments

  • Screenshot_20200413-075648_Mobile SSH.jpg
    Screenshot_20200413-075648_Mobile SSH.jpg
    308.8 KB · Views: 7

scriptkitty

Verified User
Joined
Jul 10, 2019
Messages
224
I get the same:

Code:
[root@host ~]# httpd -M | grep -i ruid
AH00112: Warning: DocumentRoot [/home/res1/domains/sharedip] does not exist
AH00112: Warning: DocumentRoot [/home/res1/domains/sharedip] does not exist
AH00112: Warning: DocumentRoot [/home/admin/subdomains/custom/custom] does not exist
AH00112: Warning: DocumentRoot [/home/admin/subdomains/custom/custom] does not exist
AH00112: Warning: DocumentRoot [/home/res1/customdocroot/] does not exist
AH00112: Warning: DocumentRoot [/home/res1/customdocroot/] does not exist
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using host.n3rd.ga. Set the 'ServerName' directive globally to suppress this message
[root@host ~]#

These warnings are warning you of docroots that are set in the apache configuration but don't exist.

For example, I just tested the sharedip docroot, which I found in file /etc/httpd/conf/ips.conf as the docroot for my secondary, shared ip (shared between resellers).

Since it didn't exist, loading my secondary shared ip in the browser didn't load anything other than a 404 Not Found. So tested further like this:
Code:
[root@host ~]# mkdir  -p /home/res1/domains/sharedip
[root@host ~]# nano /home/res1/domains/sharedip/index.html
[root@host ~]# cat /home/res1/domains/sharedip/index.html
<h1>docroot for shared ip</h1>
[root@host ~]#

I then entered my shared ip in the browser, and viola! It loaded 'docroot for shared ip'.


The other is because I have custom docroots set for testing at one point but the directory I set them do doesn't exist, just like with the secondary shared ip... it looks like I may have deleted the directory and its content but not the custom docroots from the apache conf:

Code:
[root@host ~]# grep -i docroot /usr/local/directadmin/data/users/*/httpd.conf
/usr/local/directadmin/data/users/res1/httpd.conf:    DocumentRoot /home/res1/customdocroot/
/usr/local/directadmin/data/users/res1/httpd.conf:    ScriptAlias /cgi-bin/ /home/res1/customdocroot//cgi-bin/
/usr/local/directadmin/data/users/res1/httpd.conf:    <Directory /home/res1/customdocroot/>
/usr/local/directadmin/data/users/res1/httpd.conf:    DocumentRoot /home/res1/customdocroot/
/usr/local/directadmin/data/users/res1/httpd.conf:    <Directory /home/res1/customdocroot/>
[root@host ~]#

Code:
[root@host ~]# ll /home/res1/customdocroot/
ls: cannot access /home/res1/customdocroot/: No such file or directory
[root@host ~]#
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
5,673
Location
Maastricht
If you want to disable mod_ruid2, don't forget to disable it in options.conf
mod_ruid2=yes
should become
mod_ruid2=no

Don't forget to do a ./build update and rebuild apache afterwards.
 

Amit

Verified User
Joined
Mar 24, 2020
Messages
106
Location
India
Hi,I think pagespeed is causing issues on apache shutting down and restart continuously please tell me how would i uninstall the pagespeed module?
 
Top