Apache2 Syntax Error
Contents |
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 to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow
Apache2 Syntax Error On Line 207
the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu apache2 bugs Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join
Apache2 Servertype Standalone
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 apache2 error Could not open configuration could not open configuration file /etc/apache2/conf.d/: no such file or directory file /etc/apache2/conf.d/: No such file or directory up vote 10 down vote favorite I have just upgraded my Ubuntu 13.10 and apache2 is not working. When I try to start the apache2 server it is printing following errors: * Starting web server apache2 * The apache2 configtest failed. Output of config test was: apache2: Syntax error on line 263 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/: No such file or directory Action 'configtest' failed. could not open configuration file /etc/apache2/httpd.conf: no such file or directory apache2 share|improve this question edited Oct 25 '13 at 9:24 minerz029 12.8k84479 asked Oct 25 '13 at 6:54 Sundar Elumalai 51113 add a comment| 7 Answers 7 active oldest votes up vote 9 down vote It was the same for me. After I created the conf.d folder still apache2 won't start. I was able to solve with this solution: http://askubuntu.com/a/368542/212040 Basically replacing this line LockFile ${APACHE_LOCK_DIR}/accept.lock with this one Mutex file:${APACHE_LOCK_DIR} default in the apache2.conf file. share|improve this answer answered Nov 6 '13 at 15:42 reloj 912 Same problem, but not sure it was after the update or adding Xfce environment, also worked for me. Thanks. –mins Apr 2 '14 at 19:34 add a comment| Did you find this question interesting? Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example). Subscribed! Success! Please click the link in the confirmation email to activate your subscription. up vote 4 down vote When creating symbolic links make sure to use absolute paths Instead of: ln -s ./conf-available/mysite.conf ./conf-enabled/mysite.conf You should use : ln -s /etc/apache2/conf-available/mysite.conf /etc/apache2/conf-enabled/mysite.conf share|improve this answer edited Oct 21 '14 at 7:31 Luís de Sousa 5,999143566 answered Oct 21 '14 at 7:03 Bram Verstraten 862 A relative path from the available directory does it a
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 to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow
/etc/apache2/conf.d Does Not Exist
the company Business Learn more about hiring developers or posting ads with us Ask the apache2 configtest failed ubuntu Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join
Could Not Open Configuration File /etc/httpd/conf/httpd.conf Permission Denied
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 Unable to start my apache http://askubuntu.com/questions/365454/apache2-error-could-not-open-configuration-file-etc-apache2-conf-d-no-such-fi up vote 1 down vote favorite After I downgraded my php5.5 to php5.3.10, I no longer able to start my apache2. Here is what I get: sudo service apache2 start [sudo] password for fcasili: * Starting web server apache2 apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/mods-enabled/access_compat.load: No such file or directory Action 'start' failed. The Apache error log may have more information. I already tried purging my http://askubuntu.com/questions/432757/unable-to-start-my-apache apache2 and re-install it again. Please help server apache2 php share|improve this question edited Mar 11 '14 at 14:26 Ross 75037 asked Mar 11 '14 at 14:16 Dean 612 When you purged apache2, did you erase the configuration directory (/etc/apache2)? An old configuration file might be causing issues. –Ross Mar 11 '14 at 14:27 @Ross, no. do i have to delete all modules/files under /etc/apache2? –Dean Mar 11 '14 at 14:30 did you try enabling the access_compat module by adding an Include line to the apache2.conf file? –Dan Mar 11 '14 at 14:52 1 Add the contents of /etc/apache2/apache2.conf to Ubuntu Pastebin, and add the link in your question. –Mitch♦ Mar 11 '14 at 16:35 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote You've made a downgrade, I suppose by removing and re-installing packages. This probably not removed all the configuration done previously. The way the configuration of Apache is made in Ubuntu is no more to link every module load and configuration file separately and explicitely in the main config file but just by pointing to the site-enabled/, mods-enabled/ and conf-enabled/ directories for files ending by .conf and .load. The content of these directories is in turn symbolic links towards a file in the site-available/, mods-availab
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 to any questions you might have http://askubuntu.com/questions/536128/apache2-start-error-when-using-php5-module-ubuntu-server Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more 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 for Ubuntu users and developers. Join them; it only takes could not 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 Apache2 start error when using php5 module ( Ubuntu Server) up vote 8 down vote favorite 3 I am using Ubuntu Server. When I start apache2 everything is fine, but when could not open enabling php5 module and restarting apache2 I get this error: ERROR: *** Restarting web server apache2 [fail] * The apache2 configtest failed. Output of config test was: apache2: Syntax error on line 140 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 Action 'configtest' failed. The Apache error log may have more information.** Thanks in advance, Joserex65. EDIT: /etc/apache2/apache2.conf: shows ... # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See http://httpd.apache.org/docs/2.4/ for detailed information about # the directives and /usr/share/doc/apache2/README.Debian about Debian specific # hints. # # # Summary of how the Apache 2 configuration works in Debian: # The Apache 2 web server configuration in Debian is quite different to # upstream's suggested way to configure the web server. This is because Debian's # default Apache2 installation attempts to make adding and removing modules, # virtual hosts, and extra