Apache2 Syntax Error On Line 185
Contents |
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad
Could Not Open Configuration File /etc/apache2/conf.d/: No Such File Or Directory
Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter could not open configuration file /etc/apache2/httpd.conf: no such file or directory Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please
/etc/apache2/conf.d Does Not Exist
read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [SOLVED] Ubuntu 9.04 - Apache/PHP broken after recent updates Having an Issue With Posting could not open configuration file /etc/httpd/conf/httpd.conf permission denied ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 1 of 1 Thread: Ubuntu 9.04 - Apache/PHP broken after recent updates Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode March 26th, 2010 #1 ravingmad View Profile View could not open configuration file /etc/apache2/sites-enabled Forum Posts Private Message 5 Cups of Ubuntu Join Date Sep 2007 Beans 37 Ubuntu 9.04 - Apache/PHP broken after recent updates My PHP got broken after recent updates I applied. The error I was getting was: Starting web server apache2 apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory ...fail! When I checked libphp5.so was indeed missing. What I did to fix it was to simply reinstall the PHP Apache module and then start Apache. sudo aptitude install php5 libapache2-mod-php5 Hope this helps someone who also runs into this problem. I "think" the problem may have been caused by Webmin as I ran all the package updates from Webmin and not from the console as I normally do. I've never had aproblem with any package updates so I suspect Webmin did not do something correctly. Last edited by ravingmad; March 26th, 2010 at 01:44 PM. Adv Reply Quick Navigation Installation & Upgrades Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Foru
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers
The Apache2 Configtest Failed Ubuntu
to any questions you might have Meta Discuss the workings and no such file or directory action 'configtest' failed. policies of this site About Us Learn more about Stack Overflow the company Business Learn more
Could Not Open Config File. Zoneminder
about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site https://ubuntuforums.org/showthread.php?t=1439483 for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top The apache2 configtest failed (line 187) up vote 1 down vote favorite Hope someone might http://askubuntu.com/questions/700174/the-apache2-configtest-failed-line-187 be able to help me. So I wanted to install MediaWiki which requires magicquotes to be disabled, so I did the following: 463 apt-add-repository ppa:ondrej/php5-oldstable 464 sudo apt-add-repository ppa:ondrej/php5 465 sudo apt-add-repository ppa:ondrej/php5-5.6 466 apt-add-repository ppa:ondrej/php5-oldstable 467 apt-get update 468 apt-get install php5 484 nano /etc/php5/apache2/php.ini // went to turn off magicquotes. Didn't work. 485 apt-get purge libapache2-mod-php5 php5 && apt-get install libapache2- mod-php5 php5 488 service apache2 restart 489 service apache2 stop 490 pidof apache2 491 skill -9 pid 492 service apache2 start .............and I broke Apache. Website won't work now and I'm stuck. Here's what I've done so far: sudo add-apt-repository --remove ppa:ondrej/php5-oldstable sudo add-apt-repository --remove ppa:ondrej/php5 sudo add-apt-repository --remove ppa:ondrej/php5-5.6 apt-get update apt-get upgrade apt-get purge libapache2-mod-php5 php5 && apt-get install libapache2-mod-php5 php5 This did the following: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libt1-5 suphp-common Use '
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow http://serverfault.com/questions/91837/php-5-3-1-undefined-symbol-onupdatelong-error-on-apache-startup the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top PHP 5.3.1 Undefined Symbol: OnUpdateLong could not error on Apache Startup up vote 9 down vote favorite 2 I'm running Ubuntu 8.04 on this server. I had PHP 5.2 installed via the package manager. I removed it to install PHP 5.3.1 by hand. I built the packages like so ./configure --prefix=/opt/php --with-mysql --with-curl=/usr/bin --with-apxs2=/usr/bin/apxs2 make make install This installed PHP 5.3.1 in /opt/php/ $ php -v PHP 5.3.1 (cli) (built: Dec 7 2009 10:51:14) Copyright (c) 1997-2009 The PHP Group Zend could not open Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies However, when I try to start Apache I get this. # /etc/init.d/apache2 restart * Restarting web server apache2 apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: undefined symbol: OnUpdateLong [fail] Any ideas what's causing this error? All the references I can see have to do with building php5 packages for php4 or the like. PHP4 has never been installed on this machine. apache-2.2 php share|improve this question asked Dec 7 '09 at 20:27 baudtack 3251514 add a comment| 5 Answers 5 active oldest votes up vote 11 down vote actually, what James Hackett said was more or less what worked for me. My problem wasa that I built PHP before I installed Apache (I built PHP from latest trunk and installed Apache2 via APT). So when I encountered the error that apache encountered an undefined symbol (the module which is not found is arbitrary btw.), I did the following: make distclean on the php source ./configure --prefix=/usr/local/php-5.3-svn --with-apxs2=/usr/bin/apxs2 make && make install and everything worked just fine. Captain obvious was hiding from me, of course since if you just remake without make distclean && configure, make just compiles the new symbols which obviously is not enough ;-) share|impr