Tag Info

New answers tagged

0

Doneee.... but i got the any problem now... when i type localhost in my browser look what happend: = $open and $now <= $close ) { require_once("index.m5.php"); exit(); } /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ ...


0

You can see what dpkg complaining about, sudo dpkg --configure -a sudo apt-get install -f try to run the following command sudo apt-get remove --purge apache2 apache2-utils then run, sudo apt-get install apache2


0

If you are able to access the main html page (ie, index.html or the like) or any other page, and the pictures are under the /var/www directory, then it would be a permissions problem. What kinds of errors are you getting? No permission? Not found? Login to your server via ssh (ssh USERNAME@SERVERIP or run PuTTY from Windows) and try the following in order ...


0

Using the provided information as a base, you don't have PHP installed to run with Apache. The common installation is to use PHP as a module of Apache, what can be easily be achieved using apt-get like this: $ sudo apt-get install php5 $ sudo apt-get install libapache2-mod-php5 $ sudo /etc/init.d/apache2 restart This should solve your problem.


0

mkdir will fail if any directory in the given path (except the last) doesn't exist. Use the -p option to tell it to make such directories automatically: sudo mkdir -p /var/www/magento-dev.local/public Be warned that this can create problems if you made a typo: sudo mkdir -p /var/www/magento-deva.local/public This will create a magento-deva.local ...


1

The libapache2-mod-ruby package is no longer available in Ubuntu 14.04. It was dropped in Ubuntu 13.10. From the changelog: Deleted in saucy-release (Reason: upstream project dead, requires substantial upstream port...) You should disable or remove the module if you don't needed it (or look for other options such as building from source). To disable ...


-1

Try reinstalling apache2-bin: sudo apt-get --reinstall install apache2-bin


0

What worked on my end: sudo chown -R www-data:www-data /path/to/ownCloud sudo chmod -R 775 /path/to/ownCloud sudo adduser YOURNAME www-data Voila! for ownCloud to work well, www-data must be the one that own all of that folders with both Read and Write. It's just that how it works. That application running so smoothly with that approach I used.


0

Make a file, call it phpinfo.php or whatever you wish, and put this code in it <? phpinfo(); ?> See also http://php.net/manual/en/function.phpinfo.php


0

In /etc/apache2/ports.conf, change the port as Listen 44400 Then go to /etc/apache2/sites-enabled/000-default.conf And change the first line as <VirtualHost *:44000> Now restart sudo service apache2 restart Apache will now listen on port 44000 and redirect to /var/www/html


0

It was indeed the PEM passphrase on my private SSL key that was causing the problem. Apache needs it entering on startup, so it was hanging, kind of half running. I've taken the encryption off of the key and now it boots up fine. Thank you very much!!!


0

This is because when you use 'sudo' in terminal, the permissions are being changed for 'root', but when you go into your file browser, you are no longer a 'root' user, you become regular user, and in terminal you changed permission for 'root'. So first change the ownership and then change the permission for new user. Or right click the file browser and ...


0

I ran into this same exact problem a while ago. After spending way too much time troubleshooting and trying to figure out why it wouldn't work, I found out it was not a problem with my configuration. Most of the time, your ISP (internet service provider) blocks calls to port 80. (Example: List of ports blocked by Cox) This means that although you are ...


0

To fix this you have to install all the packages depended upon. This can be done by; sudo apt-get install apache2-mpm-prefork apache2-mpm-event apache2-mpm-itk apache2.2-common. After all have been installed, run sudo apt-get install apache2. This should fix it for you.


1

apache2ctl -M will do the job and it's equivalent with: apache2ctl -t -D DUMP_MODULES You can see also apache2ctl -h.


0

ColdFusion 10 doesn't work with Apache 2.4.x so I had to upgrade to ColdFusion 11 and that solved the problem.


0

According to apache documentation: The Alias directive allows documents to be stored in the local filesystem other than under the DocumentRoot. Try to add this line inside VirtualHost definition: Alias /testfolder /testfolder <Directory /testfolder> Require all granted </Directory> And restart apache2 service. If this doesn't ...


1

Without wandering into the unknown territory of compiling packages yourself, the best solution here is to find and add a PPA (which is a "personal" repository) which hosts these packages. Luckily for you, there are PPAs for all your packages, maintained by debian packagers / maintainers: PHP 5.5: https://launchpad.net/~ondrej/+archive/ubuntu/php5 ...


0

This will set your apache2 ENV vars for the current session and allow you to use the apache2 binary without modifying your config: source /etc/apache2/envvars /etc/apache2/envvars Is simply a script that sets some environment variables. When you use apachectl it processes this before launching apache2 itself. If you want to invoke apache2 from the ...


2

Thanks for previous answers they got me most of the way, but to get things working I had to combine instructions from a few places, so thought I would write up a complete set of commands. FYI I'm running Ubuntu 14.04, Apache 2.4, and also had modphp running by default, previous instructions also left out the need to disable modphp. I also found ...


0

In Ubuntu 14.04 after doing the steps of the accepted answer, edit /etc/apache2/conf-available/php5-fpm.conf IfModule mod_fastcgi.c> AddHandler php5-fcgi .php Action php5-fcgi /php5-fcgi Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization ...


0

Try this, changing the directory if necessary. A symbolic link might need to be created. From the terminal: sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin


0

The apache package comes with a default config in /etc/apache2/sites-enabled/, I think it's called 000_default.conf or something like that, which by default responds to any request on port 80, regardless of the hostname. Use sudo a2dissite to disable it and restart apache.


-1

I had a same problem. I had the apache2 server installed. sudo apt-get remove apache2 I removed the apache2 server. Run the xammp


1

It solved : sudo apt-get install mysql-server sudo dpkg-reconfigure phpmyadmin sudo service apache2 restart


0

You need to change the permission with: sudo chown -R $USER:$USER /var/www/ sudo chmod -R 755 /var/www


0

I have no idea what you have said in the first two paragraphs, so I can't tell if there's a better solution (my instincts scream there should be). To run a command at X-second intervals, there are many options, discussed in this Stack Overflow question and this Unix & Linux question. Execution of command a second after the previous command finishes ...


1

"No". During the upgrade process you will likely need to update Apache and possibly related libraries and components, and this requires a restart. If you don't restart, you're essentially not upgrading at all. As P.-H. Lin suggested, if you need stability your best bet is to use an LTS release (currently 14.04 is the latest one). Though still, if security ...


0

make sure you have proper permissions to stop the service if you run service apache2 stop you will not get any error just: * Stopping web server apache2 try sudo service apache2 stop


0

You can do something like this #open suphp.conf file gksu "gedit /etc/suphp/suphp.conf #or like this sudo nano /etc/suphp/suphp.conf #change the document root folder docroot=/var/www/ #to docroot=/home/user/public_html/ #restart apache sudo service apache2 restart #or like this sudo /etc/init.d/apache2 restart #test your new location ...


1

Above problem was solved by doing following things. In order to run application,follow Run configuration 2.In main class tab, search for your project main class it should be something like package_name.main_class Now run, it will solve the above problem


0

It is easy to start xampp with : cd /opt/lampp then sudo ./manager-linux.run # or manager-linux-x64.run as a result you got graphical interface of server where you can also check the ports which are used.


0

Here's what i suggest. Install apache, php following the commands below in terminal #if you don't have apache and php installed sudo apt-get install apache2 php5 #create the info.php file either like this or using an editor sudo echo "<?php phpinfo(); ?>" >> /var/www/html/info.php #restart the apache web server sudo service apache2 restart ...


0

If you have virtual hosts defined in sites-available, probably hosted in distinct directories outside of /var/www/html, then you may have stumbled into the new configuration file naming convention. Make sure your virtual host configuration files end in .conf. Full explanation here: http://askubuntu.com/a/525120/1183


1

Symptoms and solution In many Q&A web sites or forums, people confuse symptoms and actual causes. I just upgraded a ubuntu server from 13.10 to 14.04.1 and ran into the exact same symptoms described by the OP, including: 1- apache apparently not working. 2- apache configuration variable undefined. 3- the syntax error mentioned by the OP. The problem is ...


1

After some time of working i did it myself. You can find the steps below. Check which MPM apache is currently running: apachectl -V | grep -i mpm Result: Server MPM: prefork List Available MPM Modules (Make sure mpm_worker is listed) ls /etc/apache2/mods-available/mpm* Result: /etc/apache2/mods-available/mpm_event.conf ...


2

The libapache2-mod-php5 Ubuntu package (which you're trying to install) expects the Ubuntu versions of the other PHP packages (e.g. php5-common). However, the ones you installed are those ~dotdeb ones (where did you get them?) and you seem to also have disabled the Ubuntu repositories (as otherwise I think libapache2-mod-php5 would try to downgrade all the ...


0

It should be running on port 10000 by default, IIRC: http://localhost:10000 And I think munin uses its own web server, not the system's webserver.


0

Start command: $ sudo /opt/lampp/lampp start If you want XAMPP to start automatically when you logon to the system: Open terminal and run following command sudo gedit /etc/init.d/lampp paste following code in open file #!/bin/bash /opt/lampp/lampp start save and close the file run following command to make this script executable sudo chmod +x ...


0

I suggest you to follow this workaround which work without problems in the majority of the cases. How to redirect apache /var/www to the home directory and access all the directories and files in my home directory? But have in consideration that if you make the changes for a reserved or protected directory you must give the proper permissions in order to ...


1

I too had this problem aster a good install of Apache 2.4 on Ubuntu 14.04. I eventually fixed when I realised I had entered a wrong name in /etc/hosts file my server name set in /etc/hostname was thissrv2 i.e. hosts was (after I changed it) ... 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ...


1

Problem Solved.It's a problem with CakePHP. .htaccess file of root directory was not getting copied alongside the cakePHP source. Create a .htaccess file in your CakePHP root directory with this content <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModule> ...


2

Check if mod_userdir is enabled: ls -l /etc/apache2/mods-enabled | grep userdir. If it isn't, enable it using a2enmod userdir. After restarting apache, files in /home/<user>/public_html are served.


0

Personally I didn't tried on NTFS, but this saved me: The only thing you need to do is : <Directory "/www/mywebdirectoryinapartitioneddisk"> Require all granted </Directory> this will solve the issue here the post in my blog explaining everything in detail. It could work on NTFS ...


1

Thanks for your reply and sorry for my late response. I couldn't find AllowOverride none in the configuration. However, your suggestion made me try to following by reversing the code from 'none' into 'all': < Directory "/webhosting/mywebsite/" > AllowOverride all < /Directory > And this works fine! Kind regards, Kevinx


0

From the comments, this was a permissions problem. Thanks I just did a chown -R www-data:www-data * current /var/www PWD and works now.


1

Apache server use Multi-Processing Module (MPM) prefork. According to this manual: A single control process is responsible for launching child processes which listen for connections and serve them when they arrive. Apache always tries to maintain several spare or idle server processes, which stand ready to serve incoming requests. In this way, ...


0

A third way is to configure your computer's hosts file: 127.0.0.1 localhost 127.0.1.1 servername.domain.com servername


0

You could use xampp which works pretty much in the same way as wampp, it even has an installer! https://www.apachefriends.org/index.html


1

Problem solved! I remove all Require all granted (it's only for Apacvhe 2.4+) and paste: Order allow,deny allow from all Also i move AddHandler cgi-script .cgi .pl to DocumentRoot directory description



Top 50 recent answers are included