Apache2 breaks after creating symlink in his subfolders - apache2

After installing apache2 im trying to create symlink from folder site-available to site-enabled. After it had been done apache2 just stops working. While trying to reload it it says "job for apache2.service failed". systemtlc in photos. What am I doing wrong?
Commend for symlink im using:
ln -s ../sites-available/010-dev.conf 010-dev.conf
I should also add that after creating the symlink, removing it doesnt fix apache. Even apache default site is still not loading, I have to reinstall apache.
systemtlc

Look at the apache's error log file (usually it is located under /var/log/httpd/error.log or /var/log/apache/error.log or something like that). It will have more info about the error.

Related

How to uninstall kite for jupyterlab?

I have installed kite for jupyterlab to use on a remote server, and seems that they don't support it. It shows a fix message every minute, and I want to get rid of it.
Here, it says that in Linux you can uninstall it by running the file in ~/.local/share/kite/uninstall, but there's no kite directory there. I couldn't find such a file. How should I remove it?
If you use pip as your package manager, you can do this:
python -m pip uninstall jupyterlab_kite
I just did it, and that was the missing piece in finally uninstalling kite from JupyterLab to get rid of the message at the bottom saying "kite not found"

Can't access .well-known/acme-challenge folder

I'm trying to install an SSL certificate on my shared hosting by Plesk.
It worked before, but the renewal went wrong.
I finally uninstalled the certificate, but when I try to get a new one, I can't access the .well-known/acme-challenge folder.
I tried to put a test file inside but ends up with a 404 error.
If I place the file inside .well-known, I can access it.
If I rename the acme-challenge folder to acme2-challenge, I can access it.
What makes this specific acme-challenge file so protected, and where can I unprotect it?
There may be an Apache module or config that controls the directory. Search a config acmetool and the module md in the Apache board or in command line with grep -rinF acme /etc/apache2.
There are two common modules that manages acme, so to fix it, you may run sudo a2disconf acmetool or sudo a2dismod md, then regenerate certificate (you may have to wait one hour or one day if you reach the limit of Let's Encrypt).
To avoid a future issue, search for the package that modified the apache config too.

Cannot deploy to with gh-pages with specific project due to error: cannot spawn sh: No such file or directory

Keep getting the error:
error: cannot spawn sh: No such file or directory
fatal: unable to fork
The project builds correctly but when trying to deploy my website it fails.
Website was created with "create-react-app" on my windows 8 pc with the command "gh-pages -d build"
This issue only occurs in this specific project on my pc as when I create a new project with "create-react-app" on my pc it'll deploy fine. This specific project can also be deployed fine with "gh-pages -d build" on my mac but not my pc.
Error of failing to deploy on console
Error log console references
Repository
Somewhere along the line I must've messed up something. I've looked over the web, tried reinstalling git, editor, dependencies and am super confused as to what's causing this. It must be an operating system difference? Thanks!
It's trying to spawn sh.exe but can't find it.
You need to add the git directory that contains sh.exe to your system variables.
(go start and type: 'path'. This should provide you with a shortcut to 'system environment variables'. If not look up how to edit environment variables on your version of windows.)
Once you have the environment variables dialogue box open, have a look in the System variables > 'path' list. There may be a git directory there that doesn't contain sh.exe. You need to replace it with one that does (ensure this also contains git.exe).
On my pc sh.exe was found in:
C:\Program Files\Git\bin
Once this is done restart the terminal and attempt to deploy again.

SuiteCrm Install error

I´m installing suiteCrm version 7.10.2, license agree works fine, system check works fine but when i´m done with the database and sdmin config and hit next don´t appen anything. I check the console and get the ReferenceError: YAHOO is not defined
I´m installing in my domain and not locally.
In chrome console i get this error
install.php:14 GET https://www.digitalinput.pt/SuiteCRM-7.10.2/cache/include/javascript/sugar_grp1_yui.js?s=6.5.25&c= 404 (Not Found)
but the file exists and i add a 777 permission just to try and nothing changes!
Check your .htaccess file. I can see you are using a subdirectory so make sure you have
rewriteBase /SuiteCRM-7.10.2
That should fix the 404.
you need to give the 'cache' folder write access (Recursively)
if you have access to ssh, you can run this commmand on you terminal :
Note : you need to be in the crm folder path
chmod 0777 -R cache/
then you refresh the page back

Figure out which .conf file apache2 is using

I am running a website at http://203.101.226.32:7000/
where it shows some error. This was done by another colleague but I couldn't figure out where did he configure apache2 to run this app. Is there any way that I can trace it ?
Your configuration file should be here.
/etc/apache2/sites-enabled/your_config_file
You can edit that file by using nano or your favorite editor.
sudo nano /etc/apache2/sites-enabled/your_config_file

Resources