I have 2 servers one running on cenotos 5.9 and centos 6.3.i am trying to configure centos 6.3 as a static file server.when i installed lighttpd on centos 6.3 with server document root in /srv/www/lighttpd.i am able to run index.html file and and other html file within the same directory.if put html file in new directory as new/s.html i am getting 403 forbidden error
/srv/www/lighttpd/s.html -- works fine
/srv/www/lighttpd/new/s.html --403 error
all the file have 777 permission
PS if I replicate the procss in centos 5.9 everything works fine
Related
I've got problem with completing pgadmin4 installation thru sudo /usr/pgadmin4/bin/setup-web.sh command.
During this process instalator does not recognizing that Apache is running and asks me if I want to start it:
The Apache web server is not running. We can enable and start the web server for you to finish pgAdmin 4 installation. Continue (y/n)? y
Then it just spits some errors:
Too few arguments.
Error enabling . Please check the systemd logs
Too few arguments.
Error starting . Please check the systemd logs
So far I havn't found where the logs are stored.
About my apache, I am quite sure that my server is running, because I can connect to it through browser, phpmyadmin is working properly, and service apache2 status returns * apache2 is running. By my understanding apache2 is just fancy word for httpd service, and there is no other service called simply apache.
PostgreSQL seems to work properly from command line, haven't tested if I can connect to it yet, but this shouldn't be the case right?
I am using
**PostgreSQL:** 12.5 (Ubuntu 12.5-0ubuntu0.20.04.1)
**Ubuntu:** Ubuntu 20.04 LTS
**Server:** Apache/2.4.41 (Ubuntu)
I had the same issue for Debian 10 and Ubuntu 20. The /usr/pgadmin4/bin/setup-web.sh script is using 'uname -a' which doesn't contain "Debian" identifier in the return string. Updating this to read /proc/version will allow APACHE to be specified as the Debian variant of apache2.
Change:
UNAME=$(uname -a)
To:
UNAME=$(cat /proc/version)
I had a similar problem with Ubuntu running inside WSL 2. Managed to resolve it by modifying the /usr/pgadmin4/bin/setup-web.sh script. I moved these lines outside of the conditional:
IS_DEBIAN=1
APACHE=apache2
This allowed the installation to progress beyond the Too few arguments. error. There was still an error however:
System has not been booted with systemd as init system (PID 1). Can't operate.
Error restarting apache2. Please check the systemd logs
I resolved this by running:
sudo service apache2 restart
After this I tried bringing up the admin page by visiting http://127.0.0.1/pgadmin4 from the Windows host. This still didn't work, and had to connect using the Ubuntu machine's ip address (you can find it out via ifconfig) which finally allowed me to see the login page.
I get the following error when connecting to a remote host to setup remote SSH connection.
Server did not start successfully. Full server log >>>
[09:58:46.599] > bash: line 212: /u/kasula/.vscode-server/bin/036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8/server.sh: No such file or directory
<<< End of server log
Not sure how to proceed, and no more information in the log file or terminal.
Please help.
I had the same issue too.
My local OS is macOS 10.15.4, and the remote OS is CentOS 8.
It turns out that CentOS 8 doesn't installed tar as default. So I just install it (sudo yum install tar), and then connect to remote again in VSCode and it works.
I have the same issue.
The server.sh file is nowhere to be found.
[18:10:19.668] > Server did not start successfully. Full server log >>>
> bash: line 302: /root/.vscode-server/bin/26076a4de974ead31f97692a0d32f90d735645c
> 0/**server.sh: No such file or directory**
> <<< End of server log
Update after solving the issue:
In my case, VSCODE couldn't download the server.sh file. I gave the linux server permission to download from these two sites and the problem was solved.
update.code.visualstudio.com or (https://visualstudio.com with all prefixes)
vo.msecnd.net or (https://msecnd.net with all prefixes)
I have a wget inside a php script. (wget connects to the another server to retrieve a data).
from command line php works fine, but when I try to access it in the browser from another computer, php fails because of wget.
All this was working on Centos 5.2 but on Centos 7.2 no way. any idea?
chmod is set 755.
setsebool -P httpd_can_network_connect on
did the trick
On Centos6.2 I am trying to get mod_wsgi (with Django) running. I serve two sites from one directory, and on Centos 5.2 everything works fine. In the logs I got "access denied errors" for the second domain.
To find out were the problem is I created a test directory in the home dir of user A with permission 777, and tried to access this as user B. On Centos 5.2 I can access the test directory, in Centos 6.2 not.
My first thought was that Selinux was active, but Selinux is disabled.
[root#server sysconfig]# sestatus
SELinux status: disabled
Any idea?
New directories in the home directory are created with permission 710. In the old Centos they were created with 711. Changing a directory to 711 does the trick.
I setup weblogic to run on my Mac. I am trying to start weblogic from eclipse on port 80 but it doesn't start. I can start the server using sudo on a terminal. I am not able to figure out which script gets called when I start the server from eclipse?
The error that I am getting is:
There are 1 nested errors:
weblogic.management.ManagementException: Unable to obtain File lock on /local/bea/user_projects/domains/base_domain/servers/AdminServer/tmp/AdminServer.lok : java.io.FileNotFoundException: /local/bea/user_projects/domains/base_domain/servers/AdminServer/tmp/AdminServer.lok (Permission denied)
at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:151)
at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:58)
at weblogic.management.internal.DomainDirectoryService.start(DomainDirectoryService.java:73)
at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)
at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)
at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:749)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:488)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:446)
at weblogic.Server.main(Server.java:67)
Eclipse uses the startWeblogic.sh and setDomainEnv.sh from your domain's bin folder. Make sure that these are executable. Maybe you need to execute chmod +x *sh in the bin folder.