I want to configure my system with event + suEXEC + FPM on さくらの VPS.
For that I rebuilt php.rpms with ‘--enable-fpm’, but I got fed up with all the dependency things when I used ‘rpm -ivh’. So I decided to create a repository for my own, ha-ha.
sudo adduser --gid xxxx myrepo
sudo passwd myrepo
sudo chmod 710 /home/myrepo
sudo su - myrepo
mkdir public_html
cd public_html
mkdir x86_64
exit
I haven’t written it yet, but I already configure Apache httpd for suEXEC Support. So I have new User and Group on the httpd.conf. If you use the settings on this post for your repository, read my words about httpd configuration on the post as your words on your system.
I removed ‘Options Indexes’ from the httpd conf files, but want to show the indexes of the repository directory. For that I need to use ‘Options Indexes’ in the .htaccess file. So I did the following things.
UserDir enabled normuser1
—>> UserDir enabled normuser1 myrepo
AllowOverride FileInfo AuthConfig Limit Indexes
AllowOverride FileInfo AuthConfig Limit Indexes Options=Indexes
sudo systemctl restart httpd.service
sudo su - myrepo
cd public_html/x86_64
vi .htaccess
chmod 640 .htaccess
exit
rpm --addsign rpmbuild/RPMS/x86_64/*
sudo gpg --gen-key
sudo gpg --export -a 'o6asan' > RPM-GPG-KEY-o6asan
sudo gpg -o file.secret --export-secret-key o6asan
sudo mv /home/vmowner/file.secret /home/rpmbuilder/file.secret
gpg --import file.secret
vi .rpmmacros
%_signature gpg
%_gpg_name <Owner name>
sudo yum install createrepo
sudo createrepo /path to/x86_64
Now, I have a repository for my own and the URL is http://www17130ue.sakura.ne.jp/~myrepo/x86_64/.
I’ll write ‘How to use the repository for my own’ for the next post.
The recipe for sweet potato yōkan that I often made this fall. Ingredients Sweet potato…
After a long time, when I checked broken links and fixed them, I got an…
I made a box, so I prepare the contents. Theme and Plugins. The theme is…
Hehe, it's been almost a year since my last post. I received a notification email…
About a week ago, I finally started to renew my sites, which I had been…
This website uses cookies.