Tag Info

New answers tagged

0

Did you check the apache2 error log? There is a typo in your php code. You are missing the &. Correct is: // Report all errors except E_NOTICE error_reporting(E_ALL & ~E_NOTICE); I highly suggest for development systems to set display_errors = On display_startup_errors = On error_reporting = E_ALL in your php.ini as I mentioned in the ...


0

You need three redirects to do what you want: http://example.com to https://www.example.com http://www.example.com to https://www.example.com https://example.com to https://www.example.com The first two are from port 80 plain HTTP so you have a VirtualHost for them. You can make a VirtualHost section apply to more than one hostname (www.example.com and ...


0

This worked for me, you can test it on my domain if you like. <VirtualHost *:80> ServerName freesoftwareservers.com ServerAlias *.freesoftwareservers.com Redirect / https://www.freesoftwareservers.com/ </VirtualHost> <VirtualHost *:443> ServerName freesoftwareservers.com ServerAlias *.freesoftwareservers.com ...


0

I don't quite understand your question. To run PHP code, you need a program that can understand understand PHP. This is either Zend Engine (the branch by Dmitry called PHPNG has been merged on v7.0), Websphere sMash, Phalanger, HipHop VM, HippyVM, Parrot, Quercus, or some other program. (Note: Every engine is saying that they are faster than every other ...


0

You don't need separate .conf for each site. You simply put them all in your default and you'll be good to go. Also check for spelling mistakes.


1

As a commenter said: Just put them both in default.conf you should also check over your default.conf for spelling mistakes...


1

try: DocumentRoot /var/www/mysite ServerName another.domain.de ServerAlias another.domain.de <Directory /var/www/mysite> AllowOverride all Options -MultiViews Order allow,deny allow from all </Directory> DocumentRoot /var/www/myrailsapp/public ServerName rails.domain.de ServerAlias rails.domain.de <Directory ...


0

Changing my Apache config file to the below resolved the issue. <VirtualHost *:80> ServerName somehost DocumentRoot /var/www/html/public CustomLog /var/www/html/access.log common ErrorLog /var/www/html/error.log <Directory /var/www/html/public> <IfModule mod_rewrite.c> Options ...


2

If it's idling it's probably irrelevant, even tough as any process Apache will consume some resources in order to keep running; an idling Apache should never be a big deal, however you can check this for yourself by running top -p $(pgrep -o apache). Here's the output of the command on a Debian Jessie machine running Apache (it showcases the average load of ...


0

You might also want to look at setting up a VirtualBox environment for PHP development. This way you keep your host OS free from server packages but you can still do all development on your own PC with the shared folder functionality. :)


1

1. Installing and setting up the LAMP stack Open Terminal by hitting Ctrl+Alt+T Update the apt cache and install lamp-server^ by running sudo apt-get update && sudo apt-get install lamp-server^ (you should be able to go through the on-screen setup; it's just a matter of setting up the mysql root password) 2. Installing and setting up PHPMyAdmin ...


1

To install these packages in the command-line you can type sudo apt-get install lamp-server^ phpmyadmin There is also extensive documentation how to set up a LAMP environment with phpmyadmin at https://help.ubuntu.com/community/ApacheMySQLPHP | https://help.ubuntu.com/14.04/serverguide/lamp-applications.html Feel free to ask more specific questions if ...


0

Run those commands: sudo apt-get update Install apache: sudo apt-get install apache2 You can test apache2 is working by directing your browser to http://localhost , you should see "it works" output. Install PHP: sudo apt-get install php5 libapache2-mod-php5 Restart apache2 now: sudo service apache2 restart To test PHP now create a file ...


0

This is now under /etc/apache2/conf-available/security.conf which is then symlinked by a2enconf to /etc/apache2/conf-enabled/security.conf


0

Different solution for those still having issues. Hopefully I can help those trying to reinstall Mysql. Note, It's a seek and destroy mission. So be weary. Assuming your root: apt-get purge mysql* apt-get purge dbconfig-common #the screen used for mysql password find / -name *mysql* #delete any traces of mysql #insert apt-get cleanups, ...


1

An application called sslh and described as an "Applicative protocol multiplexer" was designed to do exactly what you want. The application functionality is described at ssl/ssh multiplexer and it is available through links at that site.


2

Ubuntu doesn't use httpd.conf as standard, instead global configuration stuff for apache is found in /etc/apache2/apache2.conf. You can create a httpd.conf in the apache2 directory, and load any further configuration from it by including the following line in /etc/apache2/apche2.conf. Include /etc/apache2/httpd.conf You don't need that file to configure ...


2

httpd.conf will be in /etc/apache2/. /etc/apache2$ ls apache2.conf envvars mods-available ports.conf sites-enabled conf.d httpd.conf mods-enabled sites-available :/etc/apache2$ more httpd.conf :/etc/apache2$ I need to change it No, you do not. The documentation states: httpd.conf: historically the main Apache2 ...


0

For this versions you need a PPA or you need to compile the desired version. The latest version in Vivid for this packages is $ apt-cache policy openssh-server openssh-server: Installed: 1:6.7p1-5ubuntu1 Candidate: 1:6.7p1-5ubuntu1 Version table: *** 1:6.7p1-5ubuntu1 0 500 http://de.archive.ubuntu.com/ubuntu/ vivid/main i386 Packages ...


0

Yes, run the following commands to upgrade those packages to the newest versions available for 15.04: sudo apt-get update that command updates the list of packages available from the ubuntu server sudo apt-get install openssh-server apache2 that command will upgrade those packages to the newest versions You may want to upgrade all packages to get all ...


1

Those errors are saying: there is already a web server running on port 80, so you can't start another one Apache can't find its PID or lock files, because it's missing some configuration and doesn't know where to look What I think is happening: The other web server already running on port 80 is Apache itself. The reason it can't recognise itself is ...


0

All those variables are defined in /etc/apache2/envvars in my server. Check for the existence of that file and that it is set up properly. I had to make some minor changes to it, I think, but pretty much use it as-downloaded.


0

According to your logfile there are several things wrong. It is important to tackle them one by one. There are a lot of messages concerning AH01630, meaning the client has no access. This has usually to do with a difference between Apache 2.2 and 2.4. The directive of importance is Require: In 2.2 configuration you should have: Order allow,deny Allow from ...


0

Run those commands: sudo dpkg --configure -a sudo apt-get install -f Then now try to purge apache sudo apt-get purge apache2 apache2-data apache2-utils


0

Do you know if the services you installed are running, apache and MySQL need to be running for this to work. open a terminal and type: sudo service apache2 status sudo /etc/init.d/mysql status


1

Not all routers "reflect" requests from the LAN back in through the port forwarding mechanism, and some of those that do it require you to set an option to choose it. Telling us the type of router might help you get a more specific answer, but in any case, you can look in your router config for that type of option. The other way of handling it is to add a ...


1

There was nothing wrong with the webserver's configuration. Instead, it was user error -- I was trying to visit https:// instead of http://.


0

As per comments: xampp is complaining that you changed the config file and made its permissions 777. (world readable and writeable) Remove it and install the Ubuntu native LAMP stack with: sudo apt-get install lamp-server Less hassle, more secure and made to work out of the box.


0

I needed to delete the firefox profile, and then create a new one. Open up terminal and enter: firefox -profilemanager Then you can just delete default profile and press create new. It will make a new default profile :)


0

Here are some things you can do to troubleshoot the problem: Restart apache2: sudo apache2ctl restart Is the php5 module enabled? Look for php5.conf and php5.load in your mods-enabled directory. If they're not there, check to be sure they're in your mods-available directory, and enable the module with sudo a2enmod php5 sudo apache2ctl restart Put a ...


2

Plan A: Running: sudo apt-get update Then: sudo apt-get install -f Installing any unmet dependencies, and possibly then doing a restart should fix it. Plan B: Otherwise you should edit the file with: sudo nano /etc/apt/sources.list.d/passenger.list Once more and remove the line you added, then save the file and run: sudo apt-get update And the ...


1

I've developed some steps to install php 5.3 + Apache on Ubuntu 14. First, write the following repositories to the file /etc/apt/sources.list.d/ubuntu-old.list deb http://55.archive.ubuntu.com/ubuntu/ trusty main deb http://security.ubuntu.com/ubuntu precise-security main universe deb http://cz.archive.ubuntu.com/ubuntu precise main universe run apt-get ...


1

The WAN and LAN Ethernet ports are on different "sides" of the router. WAN is usually a dhcp client and LAN has dhcp server. Plug web server into LAN side and plug client into LAN side then it should work. In other words all you need is a switch, not a router. If this is WiFi, there is a security setting that prevents wifi clients from communicating with ...


1

I found my own solution finally. In case someone else comes here looking... I had to edit the virtual host setting in the virtualhost.conf file. Options Indexes FollowSymLinks MultiViews remove last "MultiViews" and it worked. Changed from: <Directory /var/www/html/elim/public/> Options Indexes FollowSymLinks MultiViews ...


1

Your private network is for example 192.168.0.XXX (or another range ) you connect your server (wifi or ethernet) to that network, and assign a static ip address (one that won't change when router or machine is rebooted ), like 192.168.0.151. you need to create a virtualhost for that ip listening on port 80, and/or if you want to use a domain name, you must ...


0

The easiest way to install LAMP is: sudo apt-get update sudo apt-get install tasksel sudo tasksel in the terminal you should now see the option to install lamp and ssh use the spacebar to select and install the necessary components you will be opted to configure a password for MySQL remember your password we will need it for the next part. 2)now that ...


0

Remove PHPMyAdmin sudo apt-get purge phpmyadmin sudo apt-get autoremove sudo apt-get clean Reinstall it sudo apt-get install phpmyadmin


0

Since you tell us that you've made a virtualhost and the domain links to it this means there's not much wrong. Assuming you've only one domain your virtualhost is supposed to look like this: ServerName www.test.com ServerAlias test.com DocumentRoot "/var/www/html/test.com"


0

This guy deserves a medal: http://serverfault.com/questions/6895/whats-the-best-way-of-handling-permissions-for-apache2s-user-www-data-in-var Setting group ID the way he explains made it work!


0

sounds like your uploading to www folder? the FTP site administrator decides which folders have read / write permissions, try using "filezilla" ftp client in ubuntu software center, your password decides what user rights you have, contact the webmaster of the site and log a support call for him / her to change the directory permissions, lastly www-data?? is ...


0

Apache now needs Require all granted under <Directory>, so edit like this : .... <Directory /home/cock/phpmyadmin> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny # add here your IP addresses allow from all Require all granted </Directory> ... Then reload config apache with sudo ...


1

You can add an .htaccess file on webroot dir order deny,allow Options -Indexes deny from all allow from 127.0.0.1


1

This is so easy. Using it in Ubuntu 14.04 LTS and it's working without a hitch: Create a new file via terminal by running the command below gedit ~/.local/share/applications/lamp.desktop Copy and paste this text inside [Desktop Entry] Name=LAMP GenericName=LAMP X-GNOME-FullName=LAMP Comment=Open services of your LAMP server Exec=gksu service apache2 ...


0

A few questions : is svn host reachable from the vm on the same host?, are you using a DNS server or the hosts file?. Ping or nmap will give you this info. is the SSL cert (custom i guess) installed on all vms, or did you installed a certificate authority on your lan?


0

Read man lsof. This lsof invocation will show you which process has IPv4 TCP port 80 open: sudo lsof -i4TCP@localhost:80 or sudo netstat -nape --inet Read man netstat


0

The following is the report of significant progresses made regarding my problem. First troubleshooting step taken was: take time to read the code of the a2dissite script found in /usr/sbin. Realize that I usually troubleshoot well by modifying code. Second troubleshooting step: make a copy with a diffrent name, and execute for testing purposes. Repeat ...


0

Well, I have been trying all these solutions offered..but sadly nothing worked! Alas i edited /etc/hosts to make entry 127.0.1.1 example.com test.com and it worked!! (Sorry if I'm not talking much technically!)


0

Well, I have been trying all these solutions offered..but sadly nothing worked! Alas i edited /etc/hosts to make entry 127.0.1.1 example.com test.com and it worked!! (Sorry if I'm not talking much technically!)


0

I have same problem Like : Starting web server apache2 * The apache2 configtest failed. Output of config test was: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/mods-enabled/mpm_itk.load: Cannot load /usr/lib/apache2/modules/mpm_itk.so into server: /usr/lib/apache2/modules/mpm_itk.so: cannot open ...


2

I think you're asking too many questions at once. I'd recommend using nginx, as it is much, much easier to configure, especially when dealing with multiple Virtual Hosts. RewriteRule ^/(.*) http://127.0.0.1:5050/$1 This is a Regular Expression (regex) rule that matches against url the user has visited. This rule says 'Take all of the characters after ...



Top 50 recent answers are included