Friday, 27 April 2012

Strange PHP/Zend/Apache2 issue

Setting up a new laptop for development on a complex system hardly ever goes according to plan. The same thing happened with me and I ended up getting my entire office involved in figuring out the problem.

I ensure I back up every single thing when I switch systems. I did the same here. I've even contemplated writing a small shell script that can install everything I'll need. But anyway, all that happened perfectly. Everything was installed and we were ready to go.

I fired a browser, hit the URL and lo, the scary 403. At commonfloor.com, we use a pretty cool .htaccess file. And for some reason, apache2 was looking for the file four directory levels above where it was pointing to. It had to look for it at /path_to_home/prog/php/commonfloor.com/another_dir/another_dir/ but it was looking for the file here /path_to_home/prog/. That wasn't even the DocumentRoot inside apache, and the errors being thrown were:

(
13)Permission denied: /home/ashesh/prog/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
Gwibberish. The error message wasn't going to lead us anywhere.

What fixed the problem:


  • Set AllowOverride None
  • Ensure libapache2-mod-php5 is installed/loaded [install it using your package manager if not, enable it using sudo a2enmod php5 if your package manager didn't do it already
  • Restart apache2. Hit the URL and groove away in joy!


[I know that the fix is simple but the point is that it's pretty easy to overlook these problems when faced with the task of setting up a new computer.]

The king of fixes: A really cool systems guy like ours. All credits to Goutham ji.



76 comments:

  1. Thanks For Your valuable posting, it was very informative

    Guest posting sites
    Education

    ReplyDelete
    Replies
    1. Great Article
      Cyber Security Projects

      projects for cse

      Networking Security Projects

      JavaScript Training in Chennai

      JavaScript Training in Chennai

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. Thanks For Your valuable posting, it was very informative

    Guest posting sites
    Education

    ReplyDelete
  3. Good job! Fruitful article. I like this very much. It is very useful for my research. It shows your interest in this topic very well. I hope you will post some more information about the software. Please keep sharing!!
    German Classes in Chennai
    German Language Classes in Chennai
    German Courses in Chennai
    Java Training in Chennai
    Advanced Java Training in Chennai
    Hadoop Course in Chennai
    German Language Course in Chennai
    German classes in Adyar

    ReplyDelete
  4. Bahkan juga ada juga juga bacaan mantra dengan istimewa untuk memenangkan permainan judi kartu poker online dengan mudah sekali
    asikqq
    dewaqq
    sumoqq
    interqq
    pionpoker
    bandar ceme terpercaya
    hobiqq
    paito warna
    forum prediksi

    ReplyDelete
  5. You have provided a nice article, Thank you very much for this one. And I hope this will be useful for many people. And I am waiting for your next post keep on updating these kinds of knowledgeable things
    Great info. The content you wrote is very interesting to read. This will be loved by all age groups.
    DevOps Training in Chennai
    Best DevOps Training in Chennai
    DevOps Training institute in Chennai
    Azure Training in Chennai
    VMware Training in Chennai
    RPA Training in Chennai
    DevOps Training in Velachery
    DevOps Training in Tambaram
    DevOps Training in Adyar
    DevOps Training in Vadapalani

    ReplyDelete
  6. A IEEE project is an interrelated arrangement of exercises, having a positive beginning and end point and bringing about an interesting result in Engineering Colleges for a particular asset assignment working under a triple limitation - time, cost and execution. Final Year Project Domains for CSE In Engineering Colleges, final year IEEE Project Management requires the utilization of abilities and information to arrange, plan, plan, direct, control, screen, and assess a final year project for cse. The utilization of Project Management to accomplish authoritative objectives has expanded quickly and many engineering colleges have reacted with final year IEEE projects Project Centers in Chennai for CSE to help students in learning these remarkable abilities.



    Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining the authors explore the idea of using Java in Big Data platforms.
    Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai

    ReplyDelete
  7. This is most informative and also this post most user-friendly and super navigation to all posts.
    Online Data Science Classes
    Selenium Training in Pune
    AWS Online Classes
    Python Online Classes

    ReplyDelete
  8. Great stuff!

    Ace Infoway is a global web development company with 20+ years of experience that helps you build flexible, secure, scalable, and advanced PHP based web applications. Having expertise in the latest version as well as trends of PHP frameworks like Lumen, Laravel, Symphony, etc, our PHP web developers offer incomparable UI/UX development services for your mobile/web apps that promote your brand to the most.

    ReplyDelete
  9. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    Offshore Engineering Services India
    3D Scanning Reverse Engineering

    ReplyDelete
  10. Our Data Science course in Hyderabad will also help in seeking the highest paid job as we assist individuals for career advancement and transformation. We carefully curate the course curriculum to ensure that the individual is taught the advanced concepts of data science. This helps them in solving any challenge that occurs. Along with that, we also make students work on real case studies and use-cases derived. data science course in hyderabad

    ReplyDelete
  11. Air hostess Escorts in Chanakyapuriare educated and bold as well.
    They belong to a Dating Call Girls in Gujarat and they will choose this profession as their choice.
    So, you don’t need to think about their Hot and Sexy Call Girls in Gujarat.
    They are interested so they are in this profession always remember that! If you are looking for the educated
    Real Call Girls Photo in Ahmedabad and bold girl,
    just try Real Call Girls Photo in Ahmedabad.
    You will love this service and want to hire again and again. Our Real Call Girls Photo in Agra
    are fully trained and they will offer you unforgettable moments. Try to grab the best deal and enjoy unlimited.
    Visit our website and check our details and grab the best deal.

    ReplyDelete
  12. I was trying to capture the solution related to Apache2 issues and then luckily I found your post. I got to know how can I use Cheap Dissertation Writing Services and eliminate my problems.

    ReplyDelete

  13. Awesome article. I enjoyed reading your articles. this can be really a good scan for me. wanting forward to reading new articles. maintain the nice work!
    Data Science Courses in Bangalore

    ReplyDelete
  14. I bookmarked your website because this site contains valuable information. I am very satisfied with the quality and the presentation of the articles. Thank you so much for saving great things. I am very grateful for this site.

    Data Science Training in Bangalore

    ReplyDelete
  15. I have voiced some of the posts on your website now, and I really like your blogging style. I added it to my list of favorite blogging sites and will be back soon ...

    Digital Marketing Training in Bangalore

    ReplyDelete
  16. I found Habit to be a transparent site, a social hub that is a conglomerate of buyers and sellers willing to offer digital advice online at a decent cost.

    Artificial Intelligence Training in Bangalore

    ReplyDelete
  17. The Extraordinary blog went amazed by the content that they have developed in a very descriptive manner. This type of content surely ensures the participants explore themselves. Hope you deliver the same near the future as well. Gratitude to the blogger for the efforts.

    Machine Learning Course in Bangalore

    ReplyDelete
  18. I am sure it will help many people. Keep up the good work. It's very compelling and I enjoyed browsing the entire blog.
    Business Analytics Course in Bangalore

    ReplyDelete
  19. Excellent Blog! I would like to thank you for the efforts you have made in writing this post. Gained lots of knowledge.
    Data Analytics Course

    ReplyDelete
  20. What an incredible message this is. Truly one of the best posts I have ever seen in my life. Wow, keep it up.
    AI Courses in Bangalore

    ReplyDelete
  21. This Is Most Useful And Give More Knowledge For Me And Let Me Share It For A lot Of People. And Don't Forget To Visit Me Back
    Python classes in Ahmednagar
    Python course in Ahmednagar
    Python training in Ahmednagar

    ReplyDelete
  22. This comment has been removed by the author.

    ReplyDelete
  23. I wonder how you became so capable to write such interesting and informative articles, anyway you are one of the best blogger in my eyes, Keep it up. Recommend every students who need programming help online

    ReplyDelete
  24. CRS Info Solutions have been shaping bright professionals in the field of salesforce by providing software training. It helps individuals train and become experts by developing their salesforce skills. The training can go from beginner level to advance while providing different certifications. Their website allows users to enroll in any of their salesforce online training programs and receive all the relevant study and practice materials to help you clear your salesforce examination. salesforce training for beginners

    ReplyDelete
  25. Awesome! Its genuinely awesome paragraph, I have got much clear idea on the
    topic of from this paragraph. 카지노사이트

    ReplyDelete
  26. 카지노 I used to suggest this web site through
    my cousin. I am no longer sure if this will publish written
    by means of it as no one else realizes such distinct about my problem.

    You are awesome! Thank you !

    ReplyDelete
  27. 스포츠토토 Good day very cool web site!! Man .. Beautiful
    .. Wonderful .. I'll bookmark your website and take the feeds also?
    I am satisfied to find so many helpful info here in the put up, we want
    work out more strategies on this regard, thank you for sharing.

    ReplyDelete
  28. 토토사이트 It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks.



    Really a great post, thanks

    ReplyDelete
  29. High quality Indica marijuana weed is found near Afghanistan, Pakistan, India, and Turkey. It is cultivated for many purposes; some of them are seeds and leaves.
    Hybrid Cannabis
    Indica marijuana weed
    Shatter Extracts
    Magic Mushrooms
    Sativa marijuana weed

    ReplyDelete
  30. Some of the primary factors driving the growth of the precision-guided munitions market are the increasing need for extremely accurate strike ammunition, rising asymmetric warfare, international disputes, and growing military modernization programs. Many countries are increasing their R&D spending and launching programs to develop next-generation precision weapons that are lightweight, compact, and reliable. The market for precision-guided munitions are being fueled by the use of satellite networks, navigation aids, and drones to kill high-value, long-range targets, as well as the demand for miniaturized weapons. Autonomous precision-guided warheads are equipped with electro-optical and high-resolution cameras to help locate and direct the vehicle to its intended destination. Growing demand for a multi-target precision strike, multi-mission weapons is expected to drive market growth over the forecast period.

    ReplyDelete
  31. The predictive maintenance market is expected to expand due to the integration of predictive maintenance with IIoT and the use of machine learning. The machine-learning algorithm can learn the normal behavior of the data and detect deviations in real-time. Sensors gather and interpret data from a range of sources, including CMMS and vital equipment sensors, in predictive maintenance. Equipment faults can be detected in advance when predictive maintenance and the IIoT are combined. As a result of the introduction of ‘Industry 4.0’ into the manufacturing world, companies are keen to introduce IIoT to obtain deeper insights into their operations. The COVID-19 pandemic has driven people all over the world to work from home. Industries suffered from a shortage of on-site staff during the pandemic, which decreased productivity.

    ReplyDelete
  32. Are you ready to start 123.hp.com/setup? Let me suggest an article to read.
    Read the post a few days back. I could find 123.hp.com/setup steps,
    software installation procedure, troubleshooting guide to fix setup issues. It will be useful if you can suggest the latest Printer models available in the market today.

    ReplyDelete
  33. Nice Article.

    The Global Blockchain Technology Market is expected to grow by US$ 32.58 billion

    ReplyDelete
  34. Thank you for sharing useful information with us. please keep sharing like this. Know about some such things related to

    history and health that you have rarely read.


    Nuclear war in ancient history

    Harald Bluetooth

    Ignaz Semmelweis

    Who was Typhoid Mary

    Worst Serial Killers in History

    ReplyDelete
  35. What's up friends, how is the whole thing, and what you want to say on the topic of this post,
    in my view its truly remarkable for me. 스포츠토토

    ReplyDelete
  36. 스포츠토토 Impressive web site, Distinguished feedback that I can tackle. Im moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards.

    ReplyDelete
  37. Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. 카지노사이트

    ReplyDelete
  38. Hi there, I check your blogs like every week. Your writing style is witty, keep up the good work! 온라인카지노사이트

    ReplyDelete
  39. Our company has a team of assignment helpers in Saudi Arabia who have been writing content for students all across the world. Our professionals hold relevant qualifications and skills that are necessary for writing homework according to college guidelines. We will never compromise on the quality in any case!

    ReplyDelete
  40. Hey Nice Blog!!! Thank you for sharing information.lifestyle coach

    ReplyDelete

  41. I am really very happy to visit your blog. Now I am found which I actually want. I check your blog every day and try to learn something from your blog. Please keep us up to date like this. Thanks for sharing.

    Best hair transplant surgeon in Meerut
    Best plastic surgeon in Meerut

    ReplyDelete
  42. Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me 카지노사이트

    ReplyDelete
  43. 바카라사이트 Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here.

    ReplyDelete
  44. 먹튀검증 I was very hapρy to discover thiѕ site. I need tօ
    to tһank you for oneѕ time jᥙst foг this fantastic гead!!
    I definiteⅼy loved eѵery рart оf it and i also
    hɑve you book marked tօ look ɑt new stuff on ʏour site.

    ReplyDelete
  45. 먹튀검증 Extremely intriguing online journal. A lot of web journals I see nowadays don't generally give anything that I'm keen on, however I'm most definitely inspired by this one. Recently felt that I would post and let you know.

    ReplyDelete
  46. A good blog always contains new and exciting information and as I read it I felt that this blog really has all of these qualities that make a blog.

    Data Science Training in Bangalore

    ReplyDelete
  47. I am more curious to take an interest in some of them. I hope you will provide more information on these topics in your next articles.

    Machine Learning Course in Bangalore

    ReplyDelete
  48. You have done excellent job Thanks a lot and I enjoyed your blog. Great Post.
    Data Science Certification in Hyderabad

    ReplyDelete
  49. Really impressed! Everything is a very open and very clear clarification of the issues. It contains true facts. Your website is very valuable. Thanks for sharing.

    Digital Marketing Training in Bangalore

    ReplyDelete
  50. Great post happy to see this. I thought this was a pretty interesting read when it comes to this topic Information. Thanks..
    Artificial Intelligence Course

    ReplyDelete
  51. A good blog always contains new and exciting information, and reading it I feel like this blog really has all of these qualities that make it a blog.

    Artificial Intelligence Training in Bangalore

    ReplyDelete
  52. Nice Post thank you very much for sharing such a useful information and will definitely saved and revisit your site and i have bookmarked to check out new things frm your post.
    Data Science Course

    ReplyDelete
  53. Thanks Your post is so cool and this is an extraordinary moving article and If it's not too much trouble share more like that.
    Digital Marketing Course in Hyderabad

    ReplyDelete
  54. I am sure it will help many people. Keep up the good work. It's very compelling and I enjoyed browsing the entire blog.
    Business Analytics Course in Bangalore

    ReplyDelete
  55. What an incredible message this is. Truly one of the best posts I have ever seen in my life. Wow, keep it up.
    AI Courses in Bangalore

    ReplyDelete
  56. You need to be a part of a contest for one of the finest websites on the net.
    I’m going to recommend this web site!
    토토사이트
    온라인경마
    경마사이트

    ReplyDelete
  57. Spot on with this write-up, I absolutely believe that this website needs a lot more attention. I’ll probably be returning to read more, thanks for the advice!
    바카라
    토토사이트

    ReplyDelete
  58. Informative Post. The information you have posted is very useful and sites you have referred was good. Thanks for sharing.
    Data Science Course with Placement

    ReplyDelete
  59. Excellent effort to make this blog more wonderful and informative. The information shared was very useful.
    Cloud Computing Course Fees in Bangalore

    ReplyDelete
  60. Actually I read it yesterday but I had some ideas about it and today I wanted to read it again because it is so well written.
    Data Science Course in India

    ReplyDelete
  61. Thank you for sharing this wonderful blog, I read that Post and got it fine and informative. Please share more like that...
    Ethical Hacking Institute in Bangalore

    ReplyDelete
  62. Everyone, welcome. Alex Poter, working as a technical assistant for a company. QuickBooks File Doctor is a popular topic of interest for many people. It's an application that aids in the restoration of broken or damaged QuickBooks files. The QuickBooks File Doctor may help with network difficulties.

    ReplyDelete
  63. Superb blog I must say. All your information is very unique and relatable. I am your regular visitor and I am really inspired by your blogs. Like you I am also here to provide information about php assignment, so if you or your colleagues need any types of information related to Java, then you can take it from us.
    Thank you!

    ReplyDelete
  64. You have done a great job and will definitely dig it and personally recommend to my friends. Thank You.
    Data Science Online Training

    ReplyDelete
  65. Very informative blog! There is so much information here that can help thank you for sharing.
    Data Science Syllabus

    ReplyDelete