{"id":1905,"date":"2024-06-28T23:58:21","date_gmt":"2024-06-28T23:58:21","guid":{"rendered":"https:\/\/www.nicktailor.com\/?p=1905"},"modified":"2024-06-29T00:00:23","modified_gmt":"2024-06-29T00:00:23","slug":"how-to-renable-the-tempurl-in-latest-cpanel","status":"publish","type":"post","link":"https:\/\/nicktailor.com\/tech-blog\/how-to-renable-the-tempurl-in-latest-cpanel\/","title":{"rendered":"How to renable the tempurl in latest Cpanel"},"content":{"rendered":"<p style=\"margin-top:0pt;padding-top:0;margin-bottom:8pt;padding-bottom:0;line-height:1.3;\"><span style=\"display:inline-block;height:1em;\"><span style=\"display:none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top:0pt;padding-top:0;margin-bottom:8pt;padding-bottom:0;line-height:1.3;\">As some of you have noticed the new cpanel by default has a bunch of new default settings that nobody likes. <\/p>\n<p style=\"margin-top:0pt;padding-top:0;margin-bottom:8pt;padding-bottom:0;line-height:1.3;\">FTPserver is not configured out of the box.<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><strong>TempURL is disabled for security reasons.<\/strong> <span style=\"color: #000000; background-color: #f2dede;\">Under certain conditions, a user can attack another user\u2019s account if they access a malicious script through a\u00a0<\/span><span style=\"color: #1166c5; background-color: #f2dede;\">mod_userdir<\/span><span style=\"color: #000000; background-color: #f2dede;\">\u00a0URL.<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">So they removed it by default.<\/p>\n<p style=\"margin-top:0pt;padding-top:0;margin-bottom:8pt;padding-bottom:0;line-height:1.3;\"><span style=\"display:inline-block;height:1em;\"><span style=\"display:none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">They did not provide instructions for people who need it. You can easily enable it<strong> BUT php wont work on the temp url unless you do the following<\/strong><\/p>\n<p style=\"margin-top: 5pt; padding-top: 0; margin-bottom: 5pt; padding-bottom: 0; line-height: 1.2; font-size: 12pt;\"><span style=\"color: #162129;\">remove below: and by remove I mean you need to recompile easyapache 4 the following changes.<\/span><\/p>\n<p style=\"margin-top: 5pt; padding-top: 0; margin-bottom: 5pt; padding-bottom: 0; line-height: 1.2; font-size: 12pt;\"><strong><span style=\"color: #162129;\">mod_ruid2<\/span><\/strong><br \/><strong><span style=\"color: #162129;\">mod_passenger<\/span><\/strong><br \/><strong><span style=\"color: #162129;\">mod_mpm_itk<\/span><\/strong><br \/><strong><span style=\"color: #162129;\">mod_proxy_fcgi<\/span><\/strong><br \/><strong><span style=\"color: #162129;\">mod_fcgid<\/span><\/strong><\/p>\n<p><span style=\"color: #162129;\">Install<\/span><\/p>\n<p style=\"margin-top: 5pt; padding-top: 0; margin-bottom: 5pt; padding-bottom: 0; line-height: 1.2; font-size: 12pt;\"><strong><span style=\"color: #162129;\">Mod_suexec<\/span><\/strong><br \/><strong><span style=\"color: #162129;\">mod_suphp<\/span><\/strong><\/p>\n<p style=\"margin-top: 5pt; padding-top: 0; margin-bottom: 5pt; padding-bottom: 0; line-height: 1.2; font-size: 12pt;\"><span style=\"color: #162129;\">Then go into <strong>Apache_mode_user <\/strong><\/span><strong><span style=\"color: #162129;\">dir<\/span><\/strong><span style=\"color: #162129;\"><strong> tweak<\/strong> and enable it and exclude default host only.<\/span><span style=\"color: #162129;\"><br \/>It <\/span><span style=\"color: #162129;\">wont<\/span><span style=\"color: #162129;\"> save the setting in the portal, but the configuration is updated. If you go back and look it will look like the settings didnt take. Looks like a bug in cpanel they need to fix on their front end.<\/span><\/p>\n<p style=\"margin-top: 5pt; padding-top: 0; margin-bottom: 5pt; padding-bottom: 0; line-height: 1.2; font-size: 12pt;\"><span style=\"color: #162129;\">Then PHP will work again on the <\/span><span style=\"color: #162129;\">tempurl<\/span><span style=\"color: #162129;\">.\u00a0<\/span><\/p>\n<p style=\"margin-top:0pt;padding-top:0;margin-bottom:8pt;padding-bottom:0;line-height:1.3;\"><span style=\"display:inline-block;height:1em;\"><span style=\"display:none;\">.<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>. As some of you have noticed the new cpanel by default has a bunch of new default settings that nobody likes. FTPserver is not configured out of the box. TempURL is disabled for security reasons. Under certain conditions, a user can attack another user\u2019s account if they access a malicious script through a\u00a0mod_userdir\u00a0URL. So they removed it by default.<a href=\"https:\/\/nicktailor.com\/tech-blog\/how-to-renable-the-tempurl-in-latest-cpanel\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1905","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts\/1905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=1905"}],"version-history":[{"count":1,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts\/1905\/revisions"}],"predecessor-version":[{"id":1907,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts\/1905\/revisions\/1907"}],"wp:attachment":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=1905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=1905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=1905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}