apache / incubator-pagespeed-cpanel

mod_pagespeed module for CPanel WHM
Other
144 stars 50 forks source link

Stuck from many days or how create the file #55

Open muhammad-adnan opened 7 years ago

muhammad-adnan commented 7 years ago

Hi

I am fresh and beginer using SSH command and from many days me stuck on this below error. I see the solution make the file and update but me not know how make the file using ssh command line and i tried pico and other things but not able to found proper guide on this topic. Anyone can help me in this regard how create file /etc/rpm/macros.apache2 and put the content inside. what is extension of this file. Thanks in advance, then i will able to proceed next step Also attach screenshot attach for review

RPM build errors: File must begin with "/": %{_httpdmoddir}/.so File must begin with "/": %{_httpdmodconfdir}/.conf

screenshot Thanks

ntorga commented 7 years ago

Create a file named "macros.apache2" on the directory "/etc/rpm/".

Insert into the file:

%_httpd_mmn 20120211x8664
%_httpd_apxs /usr/bin/apxs
%_httpd_dir /etc/apache2
%_httpd_bindir %{_httpd_dir}/bin
%_httpd_modconfdir %{_httpd_dir}/conf.modules.d
%_httpd_confdir %{_httpd_dir}/conf.d
%_httpd_contentdir /usr/share/apache2
%_httpd_moddir /usr/lib64/apache2/modules

Then, try to install again.