Tag Info

New answers tagged

0

You should symlink your /etc/apache2/sites-available/RecipeCenter to /etc/apache2/sites-enabled/100-RecipeCenter.conf. (The number doesn't matter too much, though the files are included in alphabetical order, so whatever name you choose for the symlink, it should alphabetically come after 000-default.conf. Apache actually includes vhost config files from ...


0

I usually use the following permissions under /var/www/virtualhost: chown -R www-data:www-data * chmod -R 640 * This ensures that only the HTTP server can see the files. No execute permission is needed for .js and .php files. Shell scripts (.sh files) probably need them if you want to run them as CGI scripts (I've never tried it, so I don't know how to ...


0

Is possible to grant only some root actions to users? Yes with visudo, or file events, or with the s bit on a script, or withe root crontab. how to run apache etc as non-root user? That is default for Apache and you can use su, sudo, or runuser for apps that don't already do this. How to create root cronjobs? Every user has a crontab, just put your ...


0

This is because, the XAMPP test page is not accessible from the remote clients. To solve this edit the file /opt/lampp/etc/extra/httpd-xampp.conf. Note that xampp is installed in /opt/lampp execute this to edit: sudo nano /opt/lampp/etc/extra/httpd-xampp.conf find the line: require local then comment it by adding a # at the beginning #require local ...


2

There is an ultimate fallback DocumentRoot location. From the Apache docs: Default: DocumentRoot /usr/local/apache/htdocs However, for packaging, the default is changed to /var/www (since packages aren't supposed to reside in or use /usr/local). The particular patch that does this is fhs_compliance.patch: --- a/include/httpd.h +++ b/include/httpd.h @@ ...


2

Yes, if you don't have a DocumentRoot directive in your configuration a compiled in default value is used. In Ubuntu before 14.10 it's /var/www, in 14.10 this has been changed to /var/www/html.


1

You might have selinux enabled. Try getenforce If it shows "Enforcing", try setenforce 0 and try if this fixes your issue.


1

The simplest way to install all three is to run the lamp-server task: sudo apt-get install lamp-server^ The caret at the end means that this is running a task, not installing a package. There is no lamp-server package, so if you leave off the caret, apt-get will return the error message, Unable to locate package lamp-server. The task will install ...


0

Now I found out what was the problem. It was not any configuration problem with apache or php. It seems, that the Value short_open_tag in default php.ini changed from On to Off. All my php sources starts with <? I did not come up with the idea that this could be the problem and I always tried out various configurations about apache. I could not ...


0

An old question I know, but I recently had the same problem. Accessing the phpmyadmin url produced a blank white page. The apache logs showed nothing wrong. All response headers were "200 OK". The problem was simple, I had disabled javascript in the browser. To fix in firefox, enter the url 'about:config', find the key named 'javascript.enabled' and toggle ...


1

If you want to run nginx and not apache2 you have two option either uninstall apache2 or stop apache2 To uninstall Apache2 sudo apt-get purge apache2* sudo apt-get autoremove sudo apt-get autoclean rm -rfv apache2* or you can simply stop apache2 service sudo service apache2 stop OR sudo service apache2ctl stop default nginx root folder is ...


0

Just add AuthMySQL_Authoritative Off to .htaccess


0

My bad I forgot to remove dummy virtual hosts from httpd-vhosts.config, which was giving error because DocumentRoot is not a Directory in dummy virtual hosts. I noticed the error in manager-linux-x64.run's console tab. Its restarting and my virtual hosts running fine.


0

I am going to get laughed off the planet. I was getting this error also; I had forgotten the all important sudo sudo service apache2 restart


0

Your ServerName and ServerAlias do not match the URLs you tried to open: http://tasdikr-1081310234.com and http://tasdikr-1081310234. Try opening http://www.tasdikr-1081310234.com.


0

Try to use synaptic package manager https://apps.ubuntu.com/cat/applications/synaptic/ Search for apache2 package and choose the option "complete uninstallation". It should purge all the dirs and packages that apache2 have configured. Then install Apache2 package either using console, or just from spm.


0

My problem was that I was trying to use /var/www/ in my 000-default.conf file which actually utilizes /var/www/html, and I essentially replicated that error to each subdomain I tried this on (would just tell it to use /var/www/ not the actual subdomain's folder).


0

Run sudo a2enmod userdir on the command line to enable the Apache module mod_userdir and make sure /home/<username>/public_html is accessible for the webserver.


1

I'm not sure if having virtual hosts in separate files is a necessity, but it's definitely recommended. That said, you can test if things are being loaded correctly with your current configuration. Virtual hosts are loaded in the order you have them when using a file, so if you just swap the two round (so have the subdomain.dyndns-prov.eu virtual host at ...


0

Have you tried changing ownership recursively? chown -R www-data:www-data /opt/communique/dispatcher/cache/content/geometrixx


1

The issue is fixed. First I removed apache2 $ sudo apt-get remove apache2 then I installed libapache2-mod-svn $ sudo apt-get install libapache2-mod-svn This is how the problem is solved. Thanks for your support guys.


0

The two most common tools for this are the Apache and nginx servers. Notes: You'll need to edit a few system configuration files. If you're uncomfortable with vim, replace vim with nano, or gedit in the following commands. For example, sudo vim will become sudo -H gedit or sudo nano. Once you're done setting it up, have a look at How to avoid using ...


0

To use Use you need to have the macro module enabled, provided by libapache2-mod-macro: sudo apt-get install libapache2-mod-macro sudo a2enmod macro sudo service apache2 restart


0

Try to force remove packages installed with unmet dependencies before running apt-get -f install. In your specific case, you may try: sudo apt-get -f remove libreoffice-core libreoffice-help-en-us libreoffice-java-common libreoffice-l10n-en-gb libreoffice-l10n-en-za libreoffice-l10n-it Be sure to look at installed packages and add to command above any ...


0

Apache usually complains of "no listening sockets available, shutting down", when another process is listening on said socket. Make sure that your apache instance is down or you don't have something else listening on said port. Use this command to find out who ( what pid) is bound to the port: sudo netstat -anltp | grep 443 where a (all) l (listening) -t ...


0

Some time it happens that in php.ini, there is some syntax error on some line number for example error_reporting = E_ALL && ~E_DEPRECATED && ~E_STRICT In this case the apache does not load configuration after that line number. So this is bit complex to figure out syntax error in php.ini therefore you should try other ways to fix and you ...


0

It is my little inattention. To change my permissions on hard drive I unmounted it and mounted to another place, but forgot to change the destination of alias. Thanks for trying to help!


3

You've got 2 possibilities: Restore your System Back-up (you're definitely user type 4) Reinstall and start making System Back-ups There that's it. Those are the 2 quick fixes for your system. Anything else will lead to a lot of headaches, problems cropping up in a few days, weeks, months and even years!


0

Maybe you could try moving or deleting "/etc/apt/sources.list.d/getdeb.list.bck". It probably won't do any damage since it's a backup file.


0

AllowOverride None is now the default for Apache 2.4, so you need to explicitly allow overrides if you plan to use .htaccess files. If you intend to use mod_rewrite or other settings in .htaccess files, you can allow which directives declared in that file can override server configuration. After the updates, AllowOverride None was added to my apache2.conf ...


0

It seems that using the /srv/www directory caused problems for some reason. The following procedure eventually did the trick (on Ubuntu 14.04): Install packages sudo apt-get install wordpress mysql-server (mysql-server is not automatically installed as a dependency of wordpress, so it has to be installed explicitly.) Set up virtual host Say I want to ...


0

Ok, so I followed the instructions in a forum (sorry, lost the url) for running apache2 WITH Nginx. I changed the apache listening ports from 80 to 81 in /etc/apache2/ports.conf and /etc/apache2/sites-enabled/000-default.conf Apache2 is now working, tested by typing localhost:81 into the browser! Woohoo!


1

I had the same problem. With lots of Google-ing and trying I figured it out. You need to match what you setup in your virtual host with whats configured in the fastcgi.conf (of php-fpm.conf). Furthermore its beter to use '/fpm-status' and '/fpm-ping' in the /etc/php5/fpm/pool.d/www.conf config. Then you should not have conflicts with Apache's own 'status' ...


0

You need to have all the parent directory permissions set correctly (at least 755). An error entry in /var/log/apache2/error.log similar to this: [Fri Jan 30 16:31:37.879239 2015] [authz_core:error] [pid 2900] [client 192.168.111.101:56597] AH01630: client denied by server configuration: /media/newhd/test_web/ Should indicate that your only problem is ...


0

I guess you should use this ppa instead, which doesn't upgrade apache, but only upgrades php to 5.4: https://launchpad.net/~ondrej/+archive/ubuntu/php5-oldstable


0

A way around: I do not know why but if I type as url example.net/phpmyadmin I will be redirected to https://example.netphpmyadmin/ but if I write https://example.net/phpmyadmin/ (with the /)I go to php my admin. No idea why but I hope it will be of help to others. to force https:// on pyp myadmin I added: $cfg['ForceSSL'] = true; at the end of phpMyAdmin’s ...


0

When debugging PHP code that executes external scripts (R, bash, ...) the easiest thing to do is to install php-cli sudo apt-get install php-google-api-php-client php-cli means "PHP Command Line Interface". As the name suggests, it's is a way of using PHP from the terminal. then execute the script using /usr/bin/php -q <?php YourPHPCodeHere; ?> ...


0

Just edit the path at /etc/apache2/sites-available/000-default.conf Change DocumentRoot to the path of cacti; mine was /usr/share/cacti/site service apache2 restart


1

Solution By MadHatter, http://serverfault.com/questions/666696/ubuntu-apache2-cannot-open-port-443/666713?noredirect=1#comment814308_666713 don't know much about ufw, but in this case I think it will be completely ineffective on INPUT traffic, because the rules that implement it come after a blanket DROP (the fifth rule in the INPUT chain). You can see ...


1

Remove the IP Address from NameVirtualHost 92.243.16.14:443 (you practically have binded all VirtualHosts on that IP Address) in order to listen on port 443 on all network interfaces (IPs): NameVirtualHost *:443 Then you can differentiate domain by binding the VirtualHost on a specific IP address like so: VirtualHost 1.2.3.4:443 VirtualHost 1.2.3.5:443 ...


0

Apache is running and port 443 is also open, here you need to check for the IP 92.243.16.14 is configured or not using ifconfig command. because 443 is running on default interface.


0

I've created a script that you can use in order to generate and automatically install Self-Signed Certificates for Virtual Hosts configuration files already created. You can find the script by consulting this tutorial http://www.bytelinux.com/create-self-signed-certificates-enable-apache-ssl-ubuntu-14-10/ and create the a2sslcert bash script on your own ...


0

Does the server responds on https protocol over its IP Address or you get an browser error? Try to use the following statement for virtual host: VirtualHost *:80 (remove _defult string) and, also, comment (or remove) the line: SSLCertificateChainFile /path_/mydomain_com.ca-bundle Did you generate a Self-Signed Certificate for your Virtual Host or you use ...


0

I ended up figuring this out. It wasn't directly a firewall issue. I have two NICs, one for the LAN and another for the DMZ, to which the WAN IP is NAT'ed. The default route was over the LAN. When receiving packets from the internet, the server tried to respond via the default route on the LAN. Disconnecting from the LAN enabled the services to communicate ...


0

Simply add this line in /etc/apache2/apache2.conf ServerName yourhostname or just copy this line and paste in your terminal and execute: sudo sh -c "echo \"ServerName $( hostname )\" >> /etc/apache2/apache2.conf" it'll do the job for you instead of manually editing your apache2.conf. Secondly, this line will fix the module issue: sudo ln -s ...


0

I had the same problem, but I realised that you can't start and use MySQL from XAMPP while it is running. I think you have to stop it first (not using XAMPP command)


1

apt-get install apache2* Should just be apt-get install apache2 Apt will suggest some extra packages to install at that point. Read through them and decide if want/need, but I usually only install sudo apt-get install apache2 apache2-utils


0

Solved! Solution: in the Soap Webservice we were using PHP classes, PHP casted the webservice request (stdClass Object) to our custom classes. We never thought that might be a problem, course there where no errors thrown. But anyway, after we manually converted the stdClass objects in our custom objects, everything seems to work as expected. ...


0

Apache2 is working in my system so try follow this: Please remove already you installed apache2 and php5. Now try to a fresh installation. You add source code to apt sources list. gedit /etc/apt/sources.list to add following codes: deb http://ppa.launchpad.net/ondrej/php5/ubuntu precise main deb-src http://ppa.launchpad.net/ondrej/php5/ubuntu ...


0

sudo apt-get --purge remove nginx If that says that it not installed, try ps -ef |grep www-data And see if you see any of the workers present. If so, you could try to stop sudo service nginx stop If I had to guess, when you uninstalled the service didn't shut down the way it should have. You may need to install again sudo apt-get install ...



Top 50 recent answers are included