New answers tagged

0

The directory you are running the ant command from should have a build.xml. If that doesn't contain the build.xml then use ant -f . Please do a simple google search and post your questions in the right forums.


0

I had this problem consistently and it was the .pid file for the process before the reboot still being there. These are RedHat examples, but the concept is the same. A "service tomcat stop" both stops the apache process and the deletes the accompanying .pid file. A reboot was not removing the .pid file. What I ended up doing at first was manually stop ...


0

I also had this same problem with apache. apache2: Syntax error on line 220 of /etc/apache2/apache2.conf: Could not open file configuration /etc/apache2/sites-enabled/000-default.conf: No such file or directory Any consideration we are in the /etc/apache2 I solved this: 1- Knowing sites-enabled/000-default.conf is a link that points to ...


2

Looking at those errors, I assume you were trying to fix the ServerName warning by editing your /etc/hosts file which broke apache. apache2: apr_sockaddr_info_get() failed for majema-test For that I recommend the following answer: Could not reliably determine the server's fully qualified domain name? You also need to revert the modification you did to ...


1

Are you using lampp ? or fresh apache install with apt ? maybe you must type this command sudo chmod 755 -R /var/www/html && sudo chgrp www-data -R /var/www/html good luck .


1

PUT and DELETE methods are enabled by default and are only usable with handlers. Example > a2enmod actions ; service apache2 reload <Location /> Script PUT /handler.php Script DELETE /handler.php </Location>


0

May be you can try this su chmod +x xampp-linux-1.8.3-installer.run ./xampp-linux-1.8.3-installer.run or just use sudo sudo chmod +x xampp-linux-1.8.3-installer.run


3

Port 80 is already in use by lighttpd web server.(netstat -an | grep :80) Stop lighttpd: /etc/init.d/lighttpd stop or service lighttpd stop see if lighttpd process is running or not: ps -ef |grep "lighttpd" if yes, Kill manually kill -9 Process_ID start apache2 /etc/init.d/apache2 start or service apache2 start


3

Easy way: First, copy your 000-default.conf file to two new .conf files: sudo cp /etc/apache2/sites-available/000-default.conf site1.conf sudo cp /etc/apache2/sites-available/000-default.conf site2.conf Edit each of these files, changing the ServerName, ServerAlias and DocumentRoot directives according to which URLs should redirect to which directory. ...


1

I'll suppose that you install Apache on the virtual machine. So if you want to see the webpage of that Apache, you should do the following (easy way without having to configure routing stuff): 1.- With the VM halted, go to Settings (of the VM) > Network and in the adapter 1 choose Attached to "Bridged Adapter" Name: Let the default" Clic on "advanced" ...


0

I solved the issue by myself. The trick is to change the ciphersuits in /etc/nginx/ssl.conf to whatever you like. Note that this config file requires a ; at the end of each line. I think this is because of the way Plesk manages all services. Maybe this helps anybody with simillar problems.


1

You can check xampp. It will install all of them. It is also available for ubuntu. Download .run file and install it like this chmod 755 xampp-linux-*-installer.run sudo ./xampp-linux-*-installer.run After this, you can run this like this. sudo /opt/lampp/lampp start And to stop sudo /opt/lampp/lampp stop This will run its command line tool. It ...


0

Between making modifications based on this post: http://serverfault.com/questions/598202/make-nginx-to-pass-hostname-of-the-upstream-when-reverseproxying and re-reading my configuration I managed to get it working.


0

While nginx supports wildcards and regular expression in server_name, you still have to specify the subdomain while proxying. This can be done using the $host variable: server { server_name .mydomain.com; listen 80; location / { proxy_pass http://$host; } access_log /var/log/nginx/$host-access.log; error_log ...


0

There shouldn't be a compatibility issue with Ubuntu 14.04. If you upgrade, your server software will be updated too. (If you specifically don't want to upgrade the server software, then don't upgrade Ubuntu because trying to use an older version of software with a newer Ubuntu version is always a fight against the package manager.)


0

Based on your command you are most likely trying to find the html files. You can edit the html files by adding to the /var/www/html directory. Unless you add your own html files you will get the default index.html page. You can make your own personal changes by editing or changing the default index.html file. For instance: $ sudo -H gedit ...


0

Please check this URL it will tell you how to do it and use very easy way How To Setup Ubuntu 14.* Included Desktop(xUbuntu) / MySql / PHP (Apache 2 ) In VMware


2

The apache config is in : /etc/apache2 If you want to start apache, launch in a term : sudo service apache2 start If you want to restart apache, launch in a term : sudo service apache2 restart


0

After installation of apache2 package the server should be started as daemon on machine startup. Therefore, it should run. Just open a browser and check localhost for a running webserver. It should result in an "It work's" page of apache.


1

I have tried it many times and all software is work on VMware, hopefully it is a great way to help someone who has the same problems like me, please follow my steps , it will assist you to handle all processes Step1 Ubuntu 14. Please download Ubuntu and use it in VM http://www.ubuntu.com/download/server like as picture ...


0

It looks like you have a small home network behind DSL router, log in to your router settings 192.168.x.y and set up port forwarding on your router, you should set up port forwarding for port 80 from your router to the IP of machine hosting your LAMP server, this will forward all http requests on port 80 made to your router's public IP to your LAMP server ...


0

Typically sites on Apache are handled through *.conf files in the /etc/apache2/sites-available directory. Here is an example from my server, which is hosting www.brownvpn.tk, www.browntech.tk, www.techyteen.tk, and a couple of others. <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the ...


0

For some reason, phpmyadmin is not able to read Crypt/Random.php file, if placed in /usr/share/php folder. Moreover, I have tried also /usr/local/share/php5 with the same result. Finally I have copied whole Crypt folder from /usr/share/php into /usr/share/phpmyadmin/libraries/ cp -r /usr/share/php/Crypt /usr/share/phpmyadmin/libraries/ and modified ...


0

Try this: Place the DNS servers in /etc/network/interfaces, not in /etc/resolv.conf Add this line at the bottom of your static configurations dns-nameservers 208.67.222.222 208.67.220.220 #OpenDNS' servers as example Then run these commands in the terminal to restart the interface. sudo su ifdown eth0 && ifup eth0 Hope this works!


-2

After installing nginx my apache stopped working properly. Seems to in some cases apache confusing with nginx. Just remove nginx sudo apt-get purge nginx nginx-common sudo apt-get autoremove


0

This happened to me when i removed mysql-server and tried to reinstall. The way i solved this was by running the following sudo apt-get purge mysql-server mysql-client mysql-common mysql-client-5.5 mysql-server-5.5 mysql-client-5.6 mysql-server-5.6 sudo apt-get autoremove sudo apt-get autoclean sudo rm -rf /etc/mysql sudo apt-get install mysql-server ...


0

To resolve permissions related issues, with respect to Apache, giving 777 permission is not the way to do. The previous answers have explained the fact well. However, if you want your work to be done, you can change the owner of all the files in html directory to "www-data". This is because, Apache on installation, creates a user "www-data" and a group by ...


0

Follow these steps, it will solve your problem- 1. create a file drupalDev.conf in /etc/apache2/sites-available sudo gedit /etc/apache2/sites-available/drupalDev.conf 2. Paste following code in drupalDev.conf <VirtualHost *:80> DocumentRoot /var/www/drupal ServerName drupaltest ServerAlias drupaltest ServerAdmin ...


0

If you would like to access your APACHE from your local network (from network the machine running virtualbox is connected to) you can set the network configuration of the virtual instance to 'Bridged Adapter'. Doing this, your virtual machine will use the selected physical network card of your host. Having this in place the virtual instance can easily get an ...


1

You get you local IP of the currently used network card (the one used inside your local LAN network, assigned by your router) using the following command: ip route get 1 | awk '{print $NF; exit}' This command prints both IPv4 and IPv6 address of the currently active interface: hostname -I If you prefer a simple command, but are ok with reading through ...


2

There is NO difference what to use as a server. You can use either server or desktop Ubuntu version. The difference of the versions is in pre-installed packages. The most obvious difference is that the server version does not have a GUI.


0

user185719's answer helped me only partially, because the reported error persisted: session.inc.php was not able to include Random.php. Calling file_exists() on the Random.php always returnes false, while there are no permission issues, no safe_mode, so I don't really understand why this does not work as expected. I had to do the following workaround to get ...


0

This problem is not about virtual host configuration, because the site is loading a page. Also, it's not a php problem, otherwise any of the server sites would not be running. Verify the file wp-config.php for wordpress in site having connection problem. You also can try a command line connection to database, using root authentication credentials: $ ...


0

Finally got it working myself. I just had to add entry in guest's hosts file. So I added 10.0.2.2 site.local in the Windows 10's hosts file which is located at C:\Windows\System32\drivers\etc


1

It looks like the Random.php from the phpseclib has changed. I did a fast fix with changing: $_SESSION[' PMA_token '] = bin2hex(phpseclib\Crypt\Random::string(16)); on line 116 and 135 with $_SESSION[' PMA_token '] = bin2hex(crypt_random_string(16)); in the file /usr/share/phpmyadmin/libraries/session.inc.php This should fix it for now until the ...


2

Address already in use: AH00072: make_sock: could not bind to address [::]:80 As the error states, then You already have a service listening to port 80. Try: service apache2 restart It could be apache thats already running, thus you can try restart it. If you still have problems, check your system for for other processes that might use port 80.


0

That is a security measure, Any packet from a private address will be rejected by Your Router (Modem) external interface which hold your Public IP and has 80 open. Your PC Your Router (Modem) Internet Private IP <---+-> [Private IP -- Public IP:80] <--~ISP~--> Whatever IP's | ...


0

Unfortunately, solved by reinstalling Ubuntu completely, as (as seen on question comments) Ubuntu wasn't able to startup anymore due to missing Apache bug :-/


0

I know that you are looking to just connect and may just be getting started, but please stop using mysql_connect; I didn't even know it was still even supported at this point A quick reference point to start with PDO is http://php.net/manual/en/book.pdo.php A quick example of what I use for my PDO connection I have a file. We'll call it connection.php ...


0

sudo apt-get purge php5 sudo apt-get install php5 sudo service apache2 restart I recently had the same issue with a lamp stack. At the end of it all I had to do was reinstall php5 and restart apache and it all started working with no issues.


0

I'm not sure if this would really constitute as a fix or not, but it's what I did to make it so that the users could write to their directory. chown -R ftpuser:ftpgroup /var/www Afterwards within /etc/apache2/envvars # Since there is no sane way to get the parsed apache2 config in scripts, some # settings are defined via environment variables and then ...


0

Please refer to this link share between windows and linux


1

$ sudo service apache2 stop worked for me . I was getting error while starting tomcat7 in eclipse but it show error "Port already in use for 8080 and 8005" as the ports were already acquired by apache2 (i.e for php server).


0

Sorry, i don't have reputation for comment. Try change apache2.conf to: <Directory /> Options FollowSymLinks AllowOverride All Require all granted </Directory> <Directory /usr/share> AllowOverride None Require all granted </Directory> <IfModule mod_userdir.c> UserDir enable louisro ...


0

Here's what solved the problem: $ sudo chmod 745 /home/louisro/Documents ; sudo chmod 745 /home/louisro ; sudo chmod 745 /home


0

Remove the Include /etc/phpmyadmin/apache.conf from /etc/apache2/apache2.conf. The phpmyadmin package already created the symlink /etc/apache2/conf.d/phpmyadmin.conf to include /etc/phpmyadmin/apache.conf. You get this warning because you are including /etc/phpmyadmin/apache.conf twice now.


1

Have you tried to: 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


0

You should check the permissions of the folders used as Document Root in your configuration. Usually, apache uses the user www-data and you should ensure that this user has the required permissions. There is a very nice post about this topic here: ...


5

ImageMagick 6.7.7-10 is the current version for Trusty. There is nothing to upgrade as this version was extensively tested with Trusty. For available upgrades run sudo apt-get update sudo apt-get install --only-upgrade imagemagick Only if you run in into a bug that you desperately need to fix yourself, should you compile a newer version: mkdir -p ...


3

/var/ and /var/www/ are wrong. sudo chmod 755 /var/ sudo chmod 755 /var/www/ (sudo required). To fix directories and files inside /var/www/: sudo find /var/www/ -type d -exec chmod 755 {} \; sudo find /var/www/ -type f -exec chmod 644 {} \; (sudo probably not required but there might be "root" owned files in those directories) Directories need the ...



Top 50 recent answers are included