New answers tagged

0

I just had the same problem, and found this link very helpful: https://ubuntuforums.org/showthread.php?t=1610270 In a nutshell, open the /etc/sudoers file in your favorite editor and find this line: root ALL=(ALL) ALL Add a new line just below it like so: root ALL=(ALL) ALL user.name ALL=NOPASSWD: /path_to_your_program_bin_file So to run ...


0

You have to add the Apache Alias and Directory directives inside both VirtualHost sections that you have in your facebook.****.in.conf config file so it is enabled for both HTTP and HTTPS connections. The snippet of configuration that you should add must be something like Alias /apis "/var/www/html/apis" # Now set directory permission <Directory "/var/...


1

Finally, it works! :) After install php, i typed in terminal: gksu gedit /etc/apache2/apache2.conf Then add the following line to the end of the file. Include /etc/phpmyadmin/apache.conf Then restart apache /etc/init.d/apache2 restart Thanks for help @Hellas and i hope this command helps somebody!


0

Notice that the 404 responses are when the GET URL includes a sub-directory and that the 200 responses are when the GET URL does not include a sub-directory. For the 200 responses, the web page that is delivered is actually the document root web page from your site and not the GET URL.


0

Those have nothing to do with proxies. The web browsers that submitted those GET requests think that your server's IP address is just fine for the domain they're trying to reach. This could be for any number of reasons. Perhaps their DNS server is broken. How to handle domain names that don't belong to your server According to the Apache web server ...


1

Your problem may have its root in various causes, here are the solutions for two of them: Folder and File Permissions Not only the site.com folder, but also all parent folders need to have their permissions set so apache can traverse them. Please check if /home, /home/ihab, /home/ihab/Workspace and /home/ihab/Workspace/Webdev do have proper settings. They ...


1

It happened to me as well and I fixed it by: uninstalling the package $ whereis apache2 manually remove anything related to it fresh package reinstall


-2

You will need to give permission to WWW folder using the command sudo chmod -R 777 /var/www/html Then follow the below tutorial for installing and configuring phpmyadmin https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04


0

Everything works fine now with the described settings. The behaviour might be because of firefox cache loading nonsense.


3

php5-mcrypt (MCrypt module for php5) has been updated to php7.0-mcrypt (libmcrypt module for PHP) in Ubuntu 16.04. The command sudo apt-get install lamp-server^ in Ubuntu 16.04 searches the package list files for all Task: fields and gets all with lamp-server, among them is php7.0. Then it installs those packages the standard way with sudo apt-get install ...


1

The principle behind the www-data user is that it is an unprivileged user. When you run a daemon (background program like a web server), for security purposes it is good for it to drop privileges after starting, so that it spends the rest of its time with the lowest privileges possible. In the past the nobody account was often used for this purpose. The ...


2

Under no circumstances permit your web server to run commands with sudo. Not even hyper-specific commands. This is a huge security risk. A web server should not be given permissions to access sudo commands, which then permit root access for commands. Especially when given nopasswd form of sudo, should your web server be breached, any command run by a ...


0

There are actually two mechanisms set up in Ubuntu for performing administrative tasks. sudo is one of them, and it and its graphical frontends (like gksu and gksudo) are not going to work until you fix the permissions problem. The other mechanism is PolicyKit. Depending on exactly what you have done to your file permissions, it's likely that you can still ...


1

The first line of .htaccess should be RewriteEngine on and not RewriteEnergie on. :)


0

Installing libapache2-mod-php should fix it. Then, you can purge your installation and, if you want a simple installer which rarely fails, use the script provided by apachefriends. https://www.apachefriends.org/index.html


0

Fixed! Long story short I created another simple API running on a different port. I used: POST method on API#1 with a simple submit button (json) and config to send it to the IP/PORT of the API#2 GET method on API#2 (result can only be see in the terminal, but that's all I needed)


0

I ran into this once and this worked for me: source /etc/apache2/envvars apache2 -V sudo service apache2 restart I haven't had the problem since.


0

First things first, SSL is just a protocol and you can use any port that you want. So answering your question: How can you bind ssl to it? Well you pretty much need to buy an ssl and set it up for that site with that port (so basically you would have an SSL for each url and port combination you want (obviously there are SSL certificates that you can use ...


0

That looks like you tried to start Apache by running something like apache2 That doesn't work. Use sudo service apache2 start instead.


2

I would suggest you change your vhost to name based: Replace the IP address with *:443 and add ssl certificates set the server name to your alias minus the www. add a second vhost for http which only redirects to https This should allow you to use vtiger from the local network and from the outside world and has added security through https. Now let's ...


0

If you are having problems in setting up a proper CGI environment with vanilla apache , try using XAMPP , it sets everything for you , just put all your python scripts in /opt/lampp/cgi-bin/ and then open the browser and enter 'localhost/cgi-bin/script_name.py' Remember to include the shebang line which is #!/usr/bin/python For python 2 #!/usr/bin/...


-2

I really liked this video instruction https://www.youtube.com/watch?v=AmT6UktocEM on how to enable .htaccess on Ubuntu.


0

AuthMySQL_Authoritative Off also worked for me (as a line in the Virtualhost config). I believe it allows mod_auth_mysql to pass the credentials on to mod_auth for authentication.


2

As it stands, you can't. Your certificate (I'm assuming) is for www.example.com; not for js.example.com, css.example.com or anything else.example.com. A certificate that is for anything.example.com is a wildcard certificate and they cost more. An alternative would be adding Subject Alternate Names (SAN) to your certificate to cover js.example.com and css....


0

I also had this doubt while following the instructions on this page. I used my internal IP address and the ServerName that I set on the .conf file created and it worked. In my case before I added this to /etc/hosts the browser displayed "DNS address could not be found." as my ServerName domain didn't existed. In your case, example.com is an real domain. ...


1

I figured out the problem: For some reason the JRE_HOME was not getting any value- defaulted to 'user/'. I tried the export command as well as bashrc, none of them worked. I manually added a line to set the value of this environment variable within the setclasspath.sh .


0

Not sure, but I guess you are searching for a "reverse proxy" - have a look at the apache2 mod proxy: ProxyPass "/foo" "http://foo.example.com/bar" ProxyPassReverse "/foo" "http://foo.example.com/bar" (https://httpd.apache.org/docs/current/mod/mod_proxy.html)


1

Permissions are generally not propagated by the directory that files are being copied into, rather new permissions are controlled by the user's umask. However when you copy a file from one location to another it's a bit of a special case where the user's umask is essentially ignored and the existing permissions on the file are preserved. Understanding this ...


2

I have found a solution with help from "steeldriver" Problem: My problem was that i run forever start myscript.js with user root, forever save all logs in folder of the user that run the script, that is why i have no space in /dev/md1 Solution: move all files that was in /root/.forever to my new user, /home/user/.forever and run forever start myscript.js ...


0

Fixed running to instance of mysql or apache by default is not possible because the first one will use the default ports and the second one can't run properly because the ports are in use. – Mic0 find out How do I start/stop mysql server? stop it via terminal and restart via ampps worked fine for me. sudo /etc/init.d/mysql stop [sudo] password di ...


1

Firstly, I would not run CGI from your /home/ directory. Permissions are not set up for that, for web servers, and can lead to some headaches at times, both with permissions configurations and other issues. Secondly, I would suggest *creating a dedicated directory within /var/www/ (such as cgi-bin) where your CGI scripts get put, and use that in the Apache ...


0

This is what I used, check out the comments as well! https://www.digitalocean.com/community/questions/how-do-i-change-phpmyadmin-access-url


2

i think you know that you will have to keep track of security fixes and bugs for your LAMP Setup then. Apt would kind of do this for you implicitly. Well how far did you get then? There should be documentation for each part of your setup like here for php: http://php.net/manual/en/install.unix.php Learning how to gain knowledge by yourself is imo the most ...


0

You can check all ips connected on port 80 with this bash netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head Note: if you want to see other port, change 80


1

I looked up what the the static state of is-enabled means, and found that: In this context, static means that the unit file does not contain an "install" section, which is used to enable a unit. As such, these units cannot be enabled. Also, I found that the Apache2 package contains only a systemd include file, not a complete file: # /lib/systemd/...


0

I FINALLY managed to get things working as they should(!). I added the two client ip addresses to the /etc/hosts file (of the Ubuntu server) as follows: 192.168.2.228 192.168.2.228 192.168.2.229 192.168.2.229 This completely solves the 10 second delay of the network interface trying to resolve the ip address with the router, and instead ...


1

You also have to install libapache2-mod-php (or libapache2-mod-php7.0 if you have PHP7) and restart Apache if this doesn't happen during the module install.


0

I was able to solve my error changing default.conf file in /etc/apache2/sites-available folder and creating directories to hold 'Access.log' file. So I created VirtualHost last line CustomLog combined changed as CustomLog /var/log/access/website/access.log combined Then default.conf file was as follows... <VirtualHost 192.168.1.100> ServerAdmin ...


0

The issue stemmed from verizon using ipv6. I had to add my ipv6 to my vhost and that solved the problem.


0

Ok I found the answer: 1- Leave DocumentRoot pointing at /var/www/html 2- Move your mybb forum from /var/www/html/yourforum to /var/www/html 3- Open settings.php file vi /var/www/html/inc/settings.php 4- find $settings['bburl'] line and set it to your website new url: $settings['bburl'] = "http://www.mywebsite.com/"; 5-find $settings['cookiedomain']...


1

This answer assumes you did not change the default settings of the apache server before. First change the /etc/apache2/apache2.conf, edit the following lines: <Directory /var/www/html/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> to <Directory /var/www/html/mywebsite/> Options ...


1

It is not recommended run a webserver on root user. If you want advice move to services like amazon ecs, google cloud, where you can easily start again a new server and get support, or online help. Or at least a provider that has cpanel. This is not a thing to do by hand, contact your provider support and ask how to reset an account. (backup your database ...


0

Since you didn't choose an answer, maybe the problem is still open and it is similar to mine (PHP is not working - therefore phpmyadmin doesn't work). I upgraded from 15.10 to 16.04 yesterday and also got PHP7 (instead of 5) in the process. localhost worked for me, but the public_html directory in my home directory didn't. Problem was the upgrade of PHP (...


1

Oops! You've fallen afoul of the fact that Ubuntu (Debian?) handles root crontab not via /var/spool/cron/crontabs/root (which is the file you create, with crontab -e), but through /etc/crontab, which offers the system more flexibility, and, via a slightly different format, the ability to run periodic jobs as any user. From /etc/crontab: # /etc/crontab: ...


0

You need to install php dom extension. sudo apt-get install php-xml But since you are still using php5.6... sudo apt-get install php5.6-xml ..will do the trick.


1

First from clientPc check if the port 80 is open nmap -p 80 -PN 192.168.0.21 If it's not open and you're using ufw firewall, allow connections from inside your lan with sudo ufw allow from 192.168.0.0/24 to any port 80 Test again the port is open nmap -p 80 -PN 192.168.0.21 Then edit the <Directory> part as follow (it works for me) <...


0

Hm this is a bit hacky. You COULD Pin the Version of PHP tp php5.3 in /etc/apt/preferences.d/myphppinningfile (the name does not matter) like (putting in the file) Package: php Pin: version php5.3 # take the one from apt Pin-Priority: 1000 EDIT: see here for apt pinning https://wiki.ubuntuusers.de/Apt-Pinning/ And add an older Repo to the apt sources....


0

Instead of using xampp i would recommend to install the ApachePHPMySql thingy in ubuntu. https://help.ubuntu.com/community/ApacheMySQLPHP EDIT: The ubuntu phpmyadmin documentation is found here: https://help.ubuntu.com/lts/serverguide/phpmyadmin.html


1

The error output is really rather explicit. There is an error on line 140 of the apache2.conf file. If you do not know what is wrong with the syntax on that particular line of apache configuration, you can post it in your question for us to comment on.


0

There is another thing to look at - /etc/nsswitch.conf. You can specify the priority of hostname lookups. I have in my nsswitch.conf file the following line: hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 This is how to interpret it: The hosts: line specifies the order in which various name resolution services will be tried. The default ...



Top 50 recent answers are included