New answers tagged

0

I have a script for this task: lampi Usage: sudo lampi -i -s -n example.com.local -dr ~/example-site What does it do: Install the LAMP stack (-i flag) Setup and configure apache2, mysql, php, phpmyadmin Then set up a custom site named example.com.local (-n option) Set ~/example-site directory as it's document root (-dr option) Enable SSL (https) for ...


0

Steps that finally worked for me: 1.Install OpenSSL from sources, specifying -DOPENSSL_LOAD_CONF when running ./config 1.1.Create/build your OpenSSL engine and add it to your openssl.cnf file 2.Install httpd from sources, using these commands: CFLAGS='-DSSL_EXPERIMENTAL_ENGINE -DSSL_ENGINE -DOPENSSL_LOAD_CONF' ./configure --enable-ssl --with-ssl=/usr/...


1

The best way (my opinion) is to use a different user for apache (www-data, apache) and use the following method: create an FTP location that has the subdirectories of your website. Chroot this location. For traceability I would use different users if there is more than 1. setup a cronjob (/etc/crontab with the apache user as the one executing this) with a ...


0

If you are doing this so that you can create files in htdocs folder then Just navigate to opt/lampp and then open in terminal and write sudo chmod 777 htdocs/ Thats it!


0

I think your website is not compatible with php7, but if you are sure that your problem is with "php.ini" take a look at this: http://stackoverflow.com/questions/34350350/php-7-0-1-couldnt-load-ini-file Also please check your Apache log and Websait/Aplication log for what is happening when you open your page and paste the output. Edit: I've just installed ...


0

Giving the mount point of your SD card partition the correct ownership should do the trick. If you want the user who mounted the SD card to still have ownership permissions, you could change the group of /media/user/name/ and all of the files and folders it contains to www-data with: chgrp -R www-data /media/user1/Núbia Ensure that all of those files and ...


0

Waking the dead but with the answer. Do this: ln -s /etc/apache2/mods-available/cgid.load /etc/apache2/mods-enabled/ ln -s /etc/apache2/mods-available/cgid.conf /etc/apache2/mods-enabled/ and it works.


3

Three quick steps Add your user to the www-data group sudo usermod -a -G www-data username Change the owner of /var/www sudo chown -R username:www-data /var/www Change the permissions recursively on /var/www sudo chmod -R 644 /var/www NB: Replace username in the commands with your username.


0

sudo passwd -a username and set your password for your given username, use it when Windows asks for the name and password.


1

The d refers to directories (folders). Your index.php file is not a directory, it is a file. Therefore, you should not see the d.


0

There is a bug at the moment with php5-mcrypt module placing 'mcrypt.ini' in the wrong folder. Workaround is making symbolic links. So, one of my first attempts to do that - was incorrect. And I didn't notice, that others didn't pass. As far as I've figured that - I've removed symlinks with commands: sudo unlink /etc/php5/apache2/conf.d/20-mcrypt.ini sudo ...


0

For me it was just because I was not running this command from the /usr/bin folder where yum is located. For some reason the /usr/bin was not in the path variable.


0

It seems there is no FTP server running on the web server machine. Dreamweaver assumes there is one, because it is used in many commercial hosting environments, where a FTP server is usually provided. On your local server, however, there isn't one running yet. Install vsftpd (https://help.ubuntu.com/lts/serverguide/ftp-server.html) on the Apache machine. ...


0

You are most likely installing WordPress under the wrong path. You have the following options: Move the files: Copy all the WordPress files from where ever you installed it to /var/www/html. Change the path used by apache: change the DocumentRoot in the file /etc/apache2/sites-available/000-default.conf to the path where you installed WordPress. Create ...


0

Let's call your new user testapp: You have to remove read access for "other" of all files and folders. chmod -R o-r / then chown -R :testapp /var/www/html/testapp and finally chmod -R g+rwx /var/www/html/testapp Remove your new user from the www-data group, but remember when www-data cannot read files, it won't be readable on your website


0

If u have not given password for root and you are trying to fire command on spark or haddop like ./sbin/stop-all.sh or./sbin/start-all.sh . If you don't have a root password, you can setup one using sudo passwd and fire commands.


0

Then just stop apache service sudo service apache2 stop and remove it from autostart with sudo update-rc.d -f apache2 remove Not sure if that is, what you wanted... Also to list current processes listening on port 80 or 8000: lsof -i :80 or lsof -i :8000


0

Try this, If you remember the user created for your Wordpress.Remove the previous one and create a new user as wordpressuser.Follow the following commands. > mysql> ALTER USER 'wordpressuser'@'localhost' > -> IDENTIFIED WITH mysql_native_password > -> AS '*HIGHPOLICYPASSWORD123'; Query OK, 0 rows affected (0.01 sec) and try ...


2

This is an issue of indexing (and not permissions). This setting can be modified in the apache.conf file. To change, open the file /etc/apache2/apache2.conf. You will see this; <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> Remove the Indexes from the second ...


1

Please view this. Database Connection Error/Wordpress Hey if your problem is now with the password.You first have to check your current password policy.If it is set to high(default) set a password with minimum 8 characters,1 capital,1 small letter and at least 1 digit.Other two policies are medium and low but generally it is set to high. Hope it will help.


0

If i understood correctly, you want some delay time before restarting apache2. If so, add this to crontab: # On boot wait 20 seconds and restart apache2 service @reboot sleep 20 && service apache2 restart


0

Well you have the service running in port 5000, you want to show,proxy you service that is in 127.0.0.1:5000 or in mywebsite.com:5000 to a subdomain or domain like osrm.mywebsite.com or myosrmwebsite.com You'll need to enable mod_proxy in Apache2 first. So run these commands as root, or sudo: a2enmod proxy a2enmod proxy_http Edit your hosts file nano /...


0

Doug, thank you for making me double check my img files! that was the issue, when using tftp to transfer my image files over from windows machine i did not use the "-i" and for some reason it was not sending the complete file over to the server. I transfered the complete cat.jpg file of 68kb over to the server and it now works like a charm! thank you!


0

I have apache2 on Ubuntu 16.10. When you started apache, make sure to use the apache2ctl command as aposed to the apache2 command. Ubuntu customizes apache quite a bit, so try using sudo apache2ctl start


1

You can certainly disable apache and MySQL services on boot. They won't make a huge difference, but unless you are using them, they don't necessarily need to be running. Also, disabling virtualbox should not cause any errors.


0

if you are running XAMPP on 14.04 this must work sudo chmod 644 /opt/lampp/phpmyadmin/config.inc.php


2

I found the problem. I had replaced the default php.ini file with one from a different server, and that must have messed it up. I reinstalled LAMP & phpmyadmin, this time leaving php.ini alone, and it worked just fine.


1

Try this iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT And ofcourse need to save the rules. Iptables-persistent is nice tool for this: sudo apt-get install iptables-persistent After it's installed, you can save/reload iptables rules anytime: sudo /etc/init.d/iptables-persistent save sudo /etc/init.d/iptables-persistent ...


0

This just happened to me again, along with the php pages appearing as plain text, rather than processing. I had not use the webserver apache for some time on the computer and meanwhile ubuntu updated like two more versions. Now it is $ cat /etc/issue Ubuntu 16.04 LTS So the php worked after like so: $ sudo apt-get install lamp-server^ $ sudo a2enmod ...


0

You tagged 16.04. Assuming you're running 16.04, the php in the repository is v7. Try this instead. sudo apt-get -y build-dep php7.0 php7-mcrypt


1

Based on this blog article, if you specify INSTALL_ROOT the PHP apache module will try to install in that directory. INSTALL_ROOT=/the/dir/path/to/install/in make install The other thing you might want to try adding this option to your ./configure of php-src: --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-...


1

First you check your status using this command sudo service apache2 status then stop the running service sudo service apache2 stop then use this command: sudo /opt/lampp/lampp start this solution has worked for me.


1

If you really want to use symbolic links, yes, you will have to move or public_html to make it a link. You could do something like: - public_html → production - production - app/ - public/ - vendor/ - index.php - test / - app / - public/ - vendor/ - index.php production and test are both outside of public_html, and ...


0

you can fix the problem by installing this pure php apcu compatibility-file: from https://github.com/SegFaulty/php-apcu-bc this will emulate the apcu_* function with the apc_* function (and vice versa)


3

You can accomplish a bit of what you might want with FollowSymLinks and the correct permissions on files. This method will only create links to data where you specify, it will not give you the entire filesystem, unless you were to create symlinks for every path of course, and even then, you might run into problems with specific system paths. By default ...


1

Got it all fixed now! for those of you that are interested this is what I did to fix it! first off I reinstalled apache sudo add-apt-repository -y ppa:ondrej/apache2 Then I added python software properties sudo apt-get install python-software-properties Next i re-installed apache sudo apt-get --only-upgrade install apache2 -y and finally I Enabled ...


0

aptitude works for me.. install aptitude package first sudo apt-get install aptitude once aptitude is ready install apache2 sudo aptitude install apache2


0

You can start by editing /etc/apache2/apache2.conf and commenting out or deleting the reference to http2.load on line 140. sudo vi /etc/apache2/apache2.conf As why that file disappeared I don't know, at least you should be able to start apache from there.


0

I solved this problem putting my src folder in the same directory as the index.php


0

The problem was quite simple to solve. The project dir above the xampp dir had permissions of 700. After changing it to 755 everything worked fine.


6

I know this is one of the stupidest ideas you have heard of but my client. It is. And you can't with a normal install. Apache would be needed to be run as "root" and Apache has a built-in security check on it. Error notice you will see... Apache has not been designed to serve pages while running as root. There are known race conditions that will ...


0

If you use apt-mirror v.0.5.1-1 like me. This issue can be fixed by add DEP-11 index download into /usr/bin/apt-mirror after line 611 of the file. here is the code. ###################################################################################### ## DEP-11 index download %urls_to_download = (); sub find_dep11_files_in_release { # Look in the ...


0

Who does the folder /etc/www/html belong to? Group root and User www-data or both www-data ? In that case, you can add your user to both groups as you said and for that period you can change the permissions for 0775 and after which you can convert it to 0755 This should help.


0

Please use the below commands sudo mkdir /etc/apache2/conf.d Reinstall the packages. Create symbolic links ln -s /etc/websvn/apache.conf /etc/apache2/conf-available/websvn.conf Enable the websvn configuration using below command. sudo a2enconf websvn.conf Enable the dav and dav_svn modules sudo a2enmod dav sudo a2enmod dav_svn sudo service apache2 ...


1

The port 80 have been binded to the tomcat, so when you start apache, it can't bind to the port 80 which is the default port of apache. So you should change the apache default port in /etc/apache2/ports.conf file as Listen 8081 Then you can verify that Apache listing: sudo netstat -tulpn | grep :8081


0

To fix your problem you need to install the packages for php7.0 so your install command would be: sudo apt-get install php-pear php-dev php-json libpcre3-dev php-apcu


1

Remember that linux/unix is case-sensitive, so apache2 is not the same as Apache2 Try sudo apt-get install apache2 Then it should start right after you install it sudo service apache2 status If stopped sudo service apache2 start


0

The problem was in the beginning, My php version is 7 and php7 compatible joomla versions are 3.5 and laters that's why I was having these problems. So I just loaded the joomla 3.5.1 version and bingo. I discovered this in here https://docs.joomla.org/J3.x:Installing_Joomla in the references section.


0

Ubuntu 16.04 comes with php7. So unless you've gone out of the way to install php5, you're trying to add a module in the wrong version. Try... apt-get install php7.0-intl


0

If you want to access 192.168.0.21/10000MT in a web browser, you don't need to create a virtual host for that. Just move 10000MT folder inside /var/www/html. See default document root in /etc/apache2/sites-enabled/000-default.conf.



Top 50 recent answers are included