Apache server restart error - apache

I am getting the following error while trying to restart apache
enter image description here
https://gyazo.com/830dad54ebe54d16600eefeb4e17650d
The error says something about an invalid command "Listed" not sure where that is.

The answer is in the error message:
Syntax error on line 6 of /etc/apach2/ports.conf;
Invalid command 'Listed' (...)

Related

Why do I see an error in the picture when I start the VM

Why do I see an error in the picture when I start the VM
How do I get rid of this error

module file name error in sql developer

I'm trying to install sql developer on windows7 but I got this message "unable to set the current directory based on the module file name". how to fix this error?

Unable to start Apache on Ubuntu 14.04

After years of giving no trouble, my connection to localhost has stopped working. When I enter:-
http://localhost/phpinfo.php
the error message
This webpage is not available ERR_CONNECTION_REFUSED
is returned. I then attempt to restart apache, thus:-
sudo service apache2 restart
This produces the following error message:-
apache2: Syntax error on line 210 of /etc/apache2/apache2.conf:
Syntax error on line 1 of /etc/apache2/mods-enabled/log_sql.load:
Cannot load /usr/lib/apache2/modules/mod_log_sql.so into server: /usr/lib/apache2/modules/mod_log_sql.so:
undefined symbol: ap_log_error_
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
The line of apache2.conf causing the issue is here:-
Include mods-enabled/*.load
and in log_sql.load:-
LoadModule log_sql_module /usr/lib/apache2/modules/mod_log_sql.so
The file mod_log_sql.so exists.
I have check the error log and it doesn't contain anything (i.e. has no bytes in it). Does anyone know what the matter is, and how I can fix it?
The apache configuration is a LAMP stack straight out of the tin. I haven't (to the best of my knowledge) done anything to even tweak it, and it has been going nicely for some years.
This question is related but has a different error message. This fellow here appears to have a related problem.
My guess: the module mod_log_sql.so has been compiled for a different version of Apache, so it can't be loaded.
Are any of mod_log_sql.so or Apache installed manually (i.e., not from the Ubuntu repository)? You can search if mod_log_sql.so has been installed from a package using:
dpkg -S /usr/lib/apache2/modules/mod_log_sql.so
It is not clear why this has to be a "syntax error" though...

ORA-12154: TNS:could not resolve the connect identifier specified with TeamCity

Presently, I am attempting to setup TeamCity. In TeamCity Parameters, I have set the following values:
env.DeployConnectionString: Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SID=mySID)));User ID=sys;Password=mySysPassword;
env.Rdbms: Oracle
env.SqlPlusLogon: #mySID
When I run the TeamCity project, it produces this error:
C:\TeamCity\buildAgent\work\4832a5599bdcf4b9\myProject\myProject.proj(51, 7): error MSB3073: The command "sqlplus "sys/mySysPassword#mySID as sysdba" #KillSessions.sql C:\Database\Oracle" exited with code -1.
Also, when I try to login to sqlplus from the command line, with the same arguments, it fails with the error in the above subject line. When I attempt to login to sqlplus from the command line using this string, it works with no problem:
sqlplus sys/mySysPassword#(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SID=mySID))) AS SYSDBA #KillSessions.sql
So my question is, how can I configure TeamCity to use the bottom connection string instead of the top one? I had thought that is what I was doing in setting env.DeployConnectionString. Does anyone have any suggestions? TIA.
I think it's not reading the SID at this command: sys/mySysPassword#mySID.
Why not store the SID in the tnsnames.ora, and replace the mySID part in your command line?
Thank you everyone for your help. Resolved the above problem by changing env.SqlPlusLogon to:
env.SqlPlusLogon: #(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SID=mySID)))

SeleniumException: ERROR: Command execution failure. Permission denied

SeleniumException: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: Permission denied.
Although my test runs perfectly in Firefox and also in IE when running in Debug mode, in IE in Run mode it fails with the error message above. selenium.waitForPageToLoad("20000"); doesn't seem to be a solution.
Any other ideas?
What command is failing with the Permission Denied? It may be when trying to access something that doesn't exist yet. I would recommend using the waitForCondition command to ensure the target element is present/visible before attempting to interact with it.
I used Thread.currentThread().sleep(1000); after the action that requires time to reload parts of the page. It seems to work, but not in all of the cases.